| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  
oracle.javatools.data.HashStructureAdapter
      
oracle.javatools.editor.print.PrintOptions
public class PrintOptions
The PrintOptions defines various printing options supported currenting by the EditorPageable implementation.
| Field Summary | |
|---|---|
static int | 
LINE_NUMBERS_EVERYConstant indicating we should print out line numbers for every buffer line (but not for subsequent lines of a wrapped buffer line.)  | 
static int | 
LINE_NUMBERS_NONEConstant indicating we should not print out line numbers.  | 
static int | 
WRAP_FILL_WIDTHConstant indicating we should do basic wrapping - long lines will be wrapped when it reaches the page edge.  | 
static int | 
WRAP_NONEConstant indicating that we should not perform any line wrappings.  | 
| Fields inherited from class oracle.javatools.data.HashStructureAdapter | 
|---|
_hash | 
| Constructor Summary | |
|---|---|
PrintOptions()Construct a new PrintOptions with default option values. | 
|
PrintOptions(HashStructure hash)Construct a new PrintOptions with default option values using the specified HashStructure for storage. | 
|
| Method Summary | |
|---|---|
 java.lang.Object | 
clone()Creates a duplicate copy of this option class.  | 
 java.lang.String | 
getFontFamily()Retrieve the font family of the font to use for printing.  | 
 int | 
getFontSize()Fetches the font size to use for printing.  | 
 boolean | 
getPrintColors()Fetch whether we are printing foreground colors in the output.  | 
 boolean | 
getPrintFileHeader()Fetch whether we should print out a file header on the top displaying the name of the file.  | 
 boolean | 
getPrintFontStyles()Fetch whether we are printing the font styles in the output.  | 
 int | 
getPrintLineNumbers()Fetch whether we are printing line numbers in the output.  | 
 boolean | 
getPrintPageNumbers()Gets whether we are printing out page numbers in the upper right-hand of the output.  | 
 int | 
getWrapBehavior()Fetch the current wrapping behavior.  | 
 java.lang.String | 
getWrapSymbol()Fetch the wrap symbol to print in the right margin for wrapped lines.  | 
 void | 
setFontFamily(java.lang.String fontFamily)Sets the font family that we should use for printing.  | 
 void | 
setFontSize(int fontSize)Sets the font size to use for printing.  | 
 void | 
setPrintColors(boolean printColors)Sets whether to print foreground colors in the output.  | 
 void | 
setPrintFileHeader(boolean printFileHeader)Sets whether we should print out a file header on the top displaying the name of the file.  | 
 void | 
setPrintFontStyles(boolean printFontStyles)Sets whether to print font styles in the output.  | 
 void | 
setPrintLineNumbers(int printLineNumbers)Sets whether we are printing line numbers in the output - we currently support only LINE_NUMBERS_NONE and LINE_NUMBERS_EVERY.  | 
 void | 
setPrintPageNumbers(boolean printPageNumbers)Sets whether we are printing out page numbers in the output.  | 
 void | 
setWrapBehavior(int wrapBehavior)Sets the wrapping behavior.  | 
 void | 
setWrapSymbol(java.lang.String wrapSymbol)Sets the new wrap symbol to print in the right margin for wrapped lines.  | 
| Methods inherited from class oracle.javatools.data.HashStructureAdapter | 
|---|
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals | 
| Methods inherited from class java.lang.Object | 
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface oracle.javatools.util.Copyable | 
|---|
copyTo | 
| Field Detail | 
|---|
public static final int WRAP_NONE
public static final int WRAP_FILL_WIDTH
public static final int LINE_NUMBERS_NONE
public static final int LINE_NUMBERS_EVERY
| Constructor Detail | 
|---|
public PrintOptions()
PrintOptions with default option values.public PrintOptions(HashStructure hash)
PrintOptions with default option values using the specified HashStructure for storage.| Method Detail | 
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean getPrintColors()
public void setPrintColors(boolean printColors)
printColors - whether to print foreground colors in the outputpublic boolean getPrintFontStyles()
public void setPrintFontStyles(boolean printFontStyles)
printFontStyles - whether to print font styles in the outputpublic int getWrapBehavior()
public void setWrapBehavior(int wrapBehavior)
wrapBehavior - the new wrapping behaviorpublic java.lang.String getWrapSymbol()
public void setWrapSymbol(java.lang.String wrapSymbol)
wrapSymbol - the wrap symbol to printpublic int getPrintLineNumbers()
public void setPrintLineNumbers(int printLineNumbers)
printLineNumbers - whether we should print line numbers in the outputpublic boolean getPrintPageNumbers()
public void setPrintPageNumbers(boolean printPageNumbers)
printPageNumbers - whether we should print out page numberspublic boolean getPrintFileHeader()
public void setPrintFileHeader(boolean printFileHeader)
printFileHeader - whether we should print out a file headerpublic java.lang.String getFontFamily()
public void setFontFamily(java.lang.String fontFamily)
fontFamily - the font family to use for printingpublic int getFontSize()
public void setFontSize(int fontSize)
fontSize - the font size to use for printing
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||