|
org.openide.options 6.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.util.SharedClassObject
org.openide.options.SystemOption
org.openide.options.ContextSystemOption
org.openide.text.PrintSettings
public final class 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)
Read all properties of this object (or subclasses) from an object input. |
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)
Write all properties of this object (or subclasses) to an object output. |
| 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 String displayName()
SystemOption
displayName in class SystemOptionpublic HelpCtx getHelpCtx()
SystemOption
getHelpCtx in interface HelpCtx.ProvidergetHelpCtx in class SystemOptionpublic 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.public void writeExternal(ObjectOutput obtos) throws IOException
SystemOption
writeExternal in interface ExternalizablewriteExternal in class ContextSystemOptionobtos - the output stream
IOException - on errorpublic void readExternal(ObjectInput obtis) throws IOException, ClassNotFoundException
SystemOption
readExternal in interface ExternalizablereadExternal in class ContextSystemOptionobtis - the input stream
IOException - on error
ClassNotFoundException
|
org.openide.options 6.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||