org.openide.text
Class PrintSettings

java.lang.Object
  |
  +--org.openide.util.SharedClassObject
        |
        +--org.openide.options.SystemOption
              |
              +--org.openide.options.ContextSystemOption
                    |
                    +--org.openide.text.PrintSettings
All Implemented Interfaces:
BeanContextProxy, Externalizable, Serializable

public final class PrintSettings
extends ContextSystemOption

Settings for output window.

See Also:
Serialized Form

Inner Class Summary
static class PrintSettings.AlignmentEditor
          Property editor for alignment properties
static class PrintSettings.PageFormatEditor
          Property editor for PageFormat instances
 
Field Summary
static int CENTER
          Constant for center position of page header.
static int LEFT
          Constant for left position of page header.
static String PROP_FOOTER_ALIGNMENT
          Property name of the footer alignment property
static String PROP_FOOTER_FONT
          Property name of the footer font property
static String PROP_FOOTER_FORMAT
          Property name of the footer format property
static String PROP_HEADER_ALIGNMENT
          Property name of the header alignment property
static String PROP_HEADER_FONT
          Property name of the header font property
static String PROP_HEADER_FORMAT
          Property name of the header format property
static String PROP_LINE_ASCENT_CORRECTION
          Property name of the line ascent correction property
static String PROP_PAGE_FORMAT
          Property name of the wrap property
static String PROP_WRAP
          Property name of the wrap property
static int RIGHT
          Constant for right position of page header.
 
Fields inherited from class org.openide.options.ContextSystemOption
beanContext
 
Constructor Summary
PrintSettings()
           
 
Method Summary
 String displayName()
          Get the display name of this system option.
 int getFooterAlignment()
           
 Font getFooterFont()
           
 String getFooterFormat()
           
 int getHeaderAlignment()
           
 Font getHeaderFont()
           
 String getHeaderFormat()
           
 HelpCtx getHelpCtx()
          Get context help for this system option.
 float getLineAscentCorrection()
          Getter for lineAscentCorrection property.
 PageFormat getPageFormat()
          Deprecated. Use getPageFormat(PrinterJob) instead.
static PageFormat getPageFormat(PrinterJob pj)
           
 boolean getWrap()
           
 void readExternal(ObjectInput obtis)
          Deexetrnalizes this SystemOption
 void setFooterAlignment(int alignment)
           
 void setFooterFont(Font f)
           
 void setFooterFormat(String s)
           
 void setHeaderAlignment(int alignment)
           
 void setHeaderFont(Font f)
           
 void setHeaderFormat(String s)
           
 void setLineAscentCorrection(float correction)
          Setter for lineAscentCorrection property.
 void setPageFormat(PageFormat pf)
          sets page format
 void setWrap(boolean b)
           
 void writeExternal(ObjectOutput obtos)
          Externalizes this SystemOption
 
Methods inherited from class org.openide.options.ContextSystemOption
addOption, getBeanContextProxy, getOptions, initialize, removeOption
 
Methods inherited from class org.openide.options.SystemOption
clearSharedData, firePropertyChange, getName, isReadExternal, isWriteExternal
 
Methods inherited from class org.openide.util.SharedClassObject
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, getLock, getProperty, hashCode, putProperty, putProperty, removeNotify, removePropertyChangeListener, writeReplace
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CENTER

public static final int CENTER
Constant for center position of page header.

RIGHT

public static final int RIGHT
Constant for right position of page header.

LEFT

public static final int LEFT
Constant for left position of page header.

PROP_PAGE_FORMAT

public static final String PROP_PAGE_FORMAT
Property name of the wrap property

PROP_WRAP

public static final String PROP_WRAP
Property name of the wrap property

PROP_HEADER_FORMAT

public static final String PROP_HEADER_FORMAT
Property name of the header format property

PROP_FOOTER_FORMAT

public static final String PROP_FOOTER_FORMAT
Property name of the footer format property

PROP_HEADER_FONT

public static final String PROP_HEADER_FONT
Property name of the header font property

PROP_FOOTER_FONT

public static final String PROP_FOOTER_FONT
Property name of the footer font property

PROP_HEADER_ALIGNMENT

public static final String PROP_HEADER_ALIGNMENT
Property name of the header alignment property

PROP_FOOTER_ALIGNMENT

public static final String PROP_FOOTER_ALIGNMENT
Property name of the footer alignment property

PROP_LINE_ASCENT_CORRECTION

public static final String PROP_LINE_ASCENT_CORRECTION
Property name of the line ascent correction property
Constructor Detail

PrintSettings

public PrintSettings()
Method Detail

writeExternal

public void writeExternal(ObjectOutput obtos)
                   throws IOException
Externalizes this SystemOption
Overrides:
writeExternal in class ContextSystemOption
Parameters:
obtos -  
Throws:
IOException -  

readExternal

public void readExternal(ObjectInput obtis)
                  throws IOException,
                         ClassNotFoundException
Deexetrnalizes this SystemOption
Overrides:
readExternal in class ContextSystemOption
Parameters:
obtis -  
Throws:
IOException -  
ClassNotFoundException -  

displayName

public String displayName()
Description copied from class: SystemOption
Get the display name of this system option.
Overrides:
displayName in class SystemOption
Following copied from class: org.openide.options.SystemOption
Returns:
the display name

getHelpCtx

public HelpCtx getHelpCtx()
Description copied from class: SystemOption
Get context help for this system option.
Overrides:
getHelpCtx in class SystemOption
Following copied from class: org.openide.options.SystemOption
Returns:
context help

getPageFormat

public static PageFormat getPageFormat(PrinterJob pj)
Returns:
an instance of PageFormat The returned page format is either previously set by PageSetupAction or is acquired as a default PageFormat from supported PrinterJob

getPageFormat

public PageFormat getPageFormat()
Deprecated. Use getPageFormat(PrinterJob) instead.


setPageFormat

public void setPageFormat(PageFormat pf)
sets page format

getWrap

public boolean getWrap()

setWrap

public void setWrap(boolean b)

getHeaderFormat

public String getHeaderFormat()

setHeaderFormat

public void setHeaderFormat(String s)

getFooterFormat

public String getFooterFormat()

setFooterFormat

public void setFooterFormat(String s)

getHeaderFont

public Font getHeaderFont()

setHeaderFont

public void setHeaderFont(Font f)

getFooterFont

public Font getFooterFont()

setFooterFont

public void setFooterFont(Font f)

getHeaderAlignment

public int getHeaderAlignment()

setHeaderAlignment

public void setHeaderAlignment(int alignment)

getFooterAlignment

public int getFooterAlignment()

setFooterAlignment

public void setFooterAlignment(int alignment)

getLineAscentCorrection

public float getLineAscentCorrection()
Getter for lineAscentCorrection property.

setLineAscentCorrection

public void setLineAscentCorrection(float correction)
Setter for lineAscentCorrection property.
Parameters:
correction -  
Throws:
IllegalArgumentException - if correction is less than 0.


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.