|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.SharedClassObject org.openide.options.SystemOption org.openide.options.ContextSystemOption org.openide.text.PrintSettings
Settings for output window.
Nested 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, reset |
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 |
public static final int CENTER
public static final int RIGHT
public static final int LEFT
public static final String PROP_PAGE_FORMAT
public static final String PROP_WRAP
public static final String PROP_HEADER_FORMAT
public static final String PROP_FOOTER_FORMAT
public static final String PROP_HEADER_FONT
public static final String PROP_FOOTER_FONT
public static final String PROP_HEADER_ALIGNMENT
public static final String PROP_FOOTER_ALIGNMENT
public static final String PROP_LINE_ASCENT_CORRECTION
Constructor Detail |
public PrintSettings()
Method Detail |
public void writeExternal(ObjectOutput obtos) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class ContextSystemOption
obtos
-
IOException
public void readExternal(ObjectInput obtis) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class ContextSystemOption
obtis
-
IOException
ClassNotFoundException
public String displayName()
SystemOption
displayName
in class SystemOption
public HelpCtx getHelpCtx()
SystemOption
getHelpCtx
in interface HelpCtx.Provider
getHelpCtx
in class SystemOption
public static PageFormat getPageFormat(PrinterJob pj)
public PageFormat getPageFormat()
getPageFormat(PrinterJob)
instead.
public void setPageFormat(PageFormat pf)
public boolean getWrap()
public void setWrap(boolean b)
public String getHeaderFormat()
public void setHeaderFormat(String s)
public String getFooterFormat()
public void setFooterFormat(String s)
public Font getHeaderFont()
public void setHeaderFont(Font f)
public Font getFooterFont()
public void setFooterFont(Font f)
public int getHeaderAlignment()
public void setHeaderAlignment(int alignment)
public int getFooterAlignment()
public void setFooterAlignment(int alignment)
public float getLineAscentCorrection()
public void setLineAscentCorrection(float correction)
correction
- the correction
IllegalArgumentException
- if correction is less than 0.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |