|
ReportMill 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.reportmill.foundation.RMObject
com.reportmill.text.RMParagraph
This class represents attributes of a paragraph in an RMXString (all of the characters up to and including each newline in an RMXString make up a paragraph). Paragraphs can have their own alignment, indentation, min/max line height, etc. You might use this class like this:
RMParagraph pgraph = RMParagraph.defaultParagraph.deriveAligned(RMParagraph.ALIGN_RIGHT); RMXString xstring = new RMXString("Hello World", pgraph);
Field Summary static float[]_defaultTabs
static byteALIGN_CENTER
static byteALIGN_LEFT
static byteALIGN_RIGHT
static RMParagraphdefaultParagraph
Constructor Summary RMParagraph()
Creates a new paragraph object initialized to defaultParagraph.RMParagraph(int anAlign, float leftIndent, float leftIndentFirst, float rightIndent)
Creates a new paragraph with the given alignment and indentation.
Method Summary RMParagraphderiveAligned(int anAlign)
Returns a paragraph identical to the receiver, but with the given alignment.RMParagraphderiveIndent(float leftIndent, float leftIndentFirst, float rightIndent)
Returns a paragraph identical to the receiver, but with the given indentation values.RMParagraphderiveMaxLineHeight(float aHeight)
Returns a paragraph identical to the receiver, but with the given max line height.RMParagraphderiveMinLineHeight(float aHeight)
Returns a paragraph identical to the receiver, but with the given min line height.RMParagraphderiveTabs(float[] newTabs)
Returns a paragraph identical to the receiver, but with the given tabs.booleanequals(java.lang.Object anObj)
Standard equals implementation.java.lang.ObjectfromXML(com.ribs.RXArchiver anArchiver, com.ribs.RXElement anElement)
XML unarchival.bytegetAlign()
Returns the alignment associated with this paragraph.java.lang.StringgetAlignString()
Returns a string representation of the alignment associated with this paragraph, "left", "center" or "right".floatgetLeftIndent()
Returns the left side indentation of this paragraph.floatgetLeftIndentFirst()
Returns the left side indentation of the first line in this paragraph (this can be set different than successive lines).floatgetLineSpacing()
Returns the spacing between lines in printer points associated with this paragraph.floatgetMaxLineHeight()
Returns the maximum line height in printer points associated with this paragraph.floatgetMinLineHeight()
Returns the minimum line height in printer points associated with this paragraph.floatgetParagraphSpacing()
Returns the spacing between paragraphs in printer points associated with this paragraph.floatgetRightIndent()
Returns the right side indentation of this paragraph.floatgetTab(int anIndex)
Returns the specific tab value for the given index in printer points.intgetTabCount()
Returns the number of tabs associated with this paragraph.java.lang.StringgetTabsString()
Returns the values of all the tabs associated with this paragraph as a comma separated string.java.lang.ObjectinitWithArchiver(com.reportmill.foundation.RMArchiver archive)
Legacy unarchival.com.ribs.RXElementtoXML(com.ribs.RXArchiver anArchiver)
XML archival.
Methods inherited from class com.reportmill.foundation.RMObject archiverClassName, clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
Methods inherited from class java.lang.Object getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail ALIGN_LEFT
public static final byte ALIGN_LEFT
- See Also:
- Constant Field Values
ALIGN_RIGHT
public static final byte ALIGN_RIGHT
- See Also:
- Constant Field Values
ALIGN_CENTER
public static final byte ALIGN_CENTER
- See Also:
- Constant Field Values
_defaultTabs
public static float[] _defaultTabs
defaultParagraph
public static final RMParagraph defaultParagraph
Constructor Detail RMParagraph
public RMParagraph()
- Creates a new paragraph object initialized to defaultParagraph. You should probably use RMParagraph.defaultParagraph instead.
RMParagraph
public RMParagraph(int anAlign, float leftIndent, float leftIndentFirst, float rightIndent)
- Creates a new paragraph with the given alignment and indentation.
Method Detail getAlign
public byte getAlign()
- Returns the alignment associated with this paragraph.
getAlignString
public java.lang.String getAlignString()
- Returns a string representation of the alignment associated with this paragraph, "left", "center" or "right".
getLeftIndent
public float getLeftIndent()
- Returns the left side indentation of this paragraph.
getLeftIndentFirst
public float getLeftIndentFirst()
- Returns the left side indentation of the first line in this paragraph (this can be set different than successive lines).
getRightIndent
public float getRightIndent()
- Returns the right side indentation of this paragraph.
getMinLineHeight
public float getMinLineHeight()
- Returns the minimum line height in printer points associated with this paragraph.
getMaxLineHeight
public float getMaxLineHeight()
- Returns the maximum line height in printer points associated with this paragraph.
getLineSpacing
public float getLineSpacing()
- Returns the spacing between lines in printer points associated with this paragraph.
getParagraphSpacing
public float getParagraphSpacing()
- Returns the spacing between paragraphs in printer points associated with this paragraph.
getTabCount
public int getTabCount()
- Returns the number of tabs associated with this paragraph.
getTab
public float getTab(int anIndex)
- Returns the specific tab value for the given index in printer points.
getTabsString
public java.lang.String getTabsString()
- Returns the values of all the tabs associated with this paragraph as a comma separated string.
deriveAligned
public RMParagraph deriveAligned(int anAlign)
- Returns a paragraph identical to the receiver, but with the given alignment.
deriveIndent
public RMParagraph deriveIndent(float leftIndent, float leftIndentFirst, float rightIndent)
- Returns a paragraph identical to the receiver, but with the given indentation values.
deriveMinLineHeight
public RMParagraph deriveMinLineHeight(float aHeight)
- Returns a paragraph identical to the receiver, but with the given min line height.
deriveMaxLineHeight
public RMParagraph deriveMaxLineHeight(float aHeight)
- Returns a paragraph identical to the receiver, but with the given max line height.
deriveTabs
public RMParagraph deriveTabs(float[] newTabs)
- Returns a paragraph identical to the receiver, but with the given tabs.
equals
public boolean equals(java.lang.Object anObj)
- Standard equals implementation.
initWithArchiver
public java.lang.Object initWithArchiver(com.reportmill.foundation.RMArchiver archive)
- Legacy unarchival.
toXML
public com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
- XML archival.
fromXML
public java.lang.Object fromXML(com.ribs.RXArchiver anArchiver, com.ribs.RXElement anElement)
- XML unarchival.
Overview Package Class Tree Deprecated Index Help ReportMill 7.0 API PREV CLASS NEXT CLASS FRAMES NO FRAMES SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD