public class PrintSettings extends java.lang.Object implements PersistentStateComponent<PrintSettings>
Modifier and Type | Class and Description |
---|---|
static class |
PrintSettings.Alignment |
static class |
PrintSettings.Placement |
Modifier and Type | Field and Description |
---|---|
float |
BOTTOM_MARGIN |
boolean |
COLOR_PRINTING |
boolean |
DRAW_BORDER |
boolean |
EVEN_NUMBER_OF_PAGES |
java.lang.String |
FONT_NAME |
int |
FONT_SIZE |
PrintSettings.Alignment |
FOOTER_HEADER_ALIGNMENT1 |
PrintSettings.Alignment |
FOOTER_HEADER_ALIGNMENT2 |
java.lang.String |
FOOTER_HEADER_FONT_NAME |
int |
FOOTER_HEADER_FONT_SIZE |
PrintSettings.Placement |
FOOTER_HEADER_PLACEMENT1 |
PrintSettings.Placement |
FOOTER_HEADER_PLACEMENT2 |
java.lang.String |
FOOTER_HEADER_TEXT1 |
java.lang.String |
FOOTER_HEADER_TEXT2 |
float |
LEFT_MARGIN |
java.lang.String |
PAPER_SIZE |
boolean |
PORTRAIT_LAYOUT |
boolean |
PRINT_AS_GRAPHICS |
static int |
PRINT_DIRECTORY |
static int |
PRINT_FILE |
boolean |
PRINT_LINE_NUMBERS |
static int |
PRINT_SELECTED_TEXT |
float |
RIGHT_MARGIN |
boolean |
SYNTAX_PRINTING |
float |
TOP_MARGIN |
boolean |
WRAP |
Constructor and Description |
---|
PrintSettings() |
Modifier and Type | Method and Description |
---|---|
static PrintSettings |
getInstance() |
int |
getPrintScope() |
PrintSettings |
getState() |
boolean |
isIncludeSubdirectories() |
void |
loadState(PrintSettings state)
This method is called when new component state is loaded.
|
void |
setIncludeSubdirectories(boolean includeSubdirectories) |
void |
setPrintScope(int printScope) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public java.lang.String PAPER_SIZE
public boolean COLOR_PRINTING
public boolean SYNTAX_PRINTING
public boolean PRINT_AS_GRAPHICS
public boolean PORTRAIT_LAYOUT
public java.lang.String FONT_NAME
public int FONT_SIZE
public boolean PRINT_LINE_NUMBERS
public boolean WRAP
public float TOP_MARGIN
public float BOTTOM_MARGIN
public float LEFT_MARGIN
public float RIGHT_MARGIN
public boolean DRAW_BORDER
public boolean EVEN_NUMBER_OF_PAGES
public java.lang.String FOOTER_HEADER_TEXT1
public PrintSettings.Placement FOOTER_HEADER_PLACEMENT1
public PrintSettings.Alignment FOOTER_HEADER_ALIGNMENT1
public java.lang.String FOOTER_HEADER_TEXT2
public PrintSettings.Placement FOOTER_HEADER_PLACEMENT2
public PrintSettings.Alignment FOOTER_HEADER_ALIGNMENT2
public int FOOTER_HEADER_FONT_SIZE
public java.lang.String FOOTER_HEADER_FONT_NAME
public static final int PRINT_FILE
public static final int PRINT_SELECTED_TEXT
public static final int PRINT_DIRECTORY
public static PrintSettings getInstance()
public int getPrintScope()
public void setPrintScope(int printScope)
public boolean isIncludeSubdirectories()
public void setIncludeSubdirectories(boolean includeSubdirectories)
public PrintSettings getState()
getState
in interface PersistentStateComponent<PrintSettings>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(PrintSettings state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<PrintSettings>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)