|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.powerml.structures.text.Ruler
Instances of this class contain ruler properties, e.g. default tab width, user tabs, offsets etc. Rulers are assigned to texts.
| Field Summary | |
static int |
DEFAULT_DEFAULT_TAB
Default value for the default tab width |
static int[] |
DEFAULT_FIRST_LINE_OFFSETS
Default values for the first line's offsets (per indentation level) |
static int[] |
DEFAULT_HANGING_OFFSETS
Default values for hanging offsets (per indentation level) |
static int[] |
DEFAULT_HEADER_FIRST_LINE_OFFSETS
Default value for first line offset of header (0) |
static int[] |
DEFAULT_HEADER_HANGING_OFFSETS
Default value for hanging offset of header (0) |
static int[] |
DEFAULT_SHAPE_FIRST_LINE_OFFSETS
Default value for first line offset of text within shape |
static int[] |
DEFAULT_SHAPE_HANGING_OFFSETS
Default value for hanging offset of text within shape |
static int[] |
DEFAULT_TITLE_BODY_FIRST_LINE_OFFSETS
Default value for first line offset of text within title body |
static int[] |
DEFAULT_TITLE_BODY_HANGING_OFFSETS
Default value for hanging offset of text within title body |
| Method Summary | |
void |
addXml(org.dom4j.Element parent,
int textType)
Transforms current instance to XML and adds it to a parent element. |
short |
getDefaultTab()
Returns the default tab width, i.e. the indentation caused by a tab character if no user tab is defined. |
short[] |
getFirstLineOffsets()
Returns an array containing the first line's offsets per indentation level. |
short[] |
getHangingOffsets()
Returns an array containing the hanging offsets (i.e. the offsets of all lines in a paragraph except the first) per indentation level. |
java.util.ArrayList |
getTabs()
Returns a list containing user defined tabs. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_DEFAULT_TAB
public static final int[] DEFAULT_FIRST_LINE_OFFSETS
public static final int[] DEFAULT_HANGING_OFFSETS
public static final int[] DEFAULT_HEADER_FIRST_LINE_OFFSETS
public static final int[] DEFAULT_HEADER_HANGING_OFFSETS
public static final int[] DEFAULT_SHAPE_FIRST_LINE_OFFSETS
public static final int[] DEFAULT_SHAPE_HANGING_OFFSETS
public static final int[] DEFAULT_TITLE_BODY_FIRST_LINE_OFFSETS
public static final int[] DEFAULT_TITLE_BODY_HANGING_OFFSETS
| Method Detail |
public void addXml(org.dom4j.Element parent,
int textType)
parent - parent elementtextType - clean strings of control characterspublic short getDefaultTab()
public short[] getFirstLineOffsets()
public short[] getHangingOffsets()
public java.util.ArrayList getTabs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||