public class RMParagraph
extends com.reportmill.base.RMObject
RMParagraph pgraph = RMParagraph.defaultParagraph.deriveAligned(RMParagraph.ALIGN_RIGHT); RMXString xstring = new RMXString("Hello World", pgraph);
Modifier and Type | Field and Description |
---|---|
static byte |
ALIGN_CENTER |
static byte |
ALIGN_FULL |
static byte |
ALIGN_LEFT |
static byte |
ALIGN_RIGHT |
static RMParagraph |
DEFAULT |
static char |
TAB_CENTER |
static char |
TAB_DECIMAL |
static char |
TAB_LEFT |
static char |
TAB_RIGHT |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
RMParagraph |
deriveAligned(int anAlign)
Returns a paragraph identical to the receiver, but with the given alignment.
|
RMParagraph |
deriveIndent(float leftIndent,
float leftIndentFirst,
float rightIndent)
Returns a paragraph identical to the receiver, but with the given indentation values.
|
RMParagraph |
deriveLineGap(float aHeight)
Returns a paragraph identical to the receiver, but with the given line gap.
|
RMParagraph |
deriveLineHeightMax(float aHeight)
Returns a paragraph identical to the receiver, but with the given max line height.
|
RMParagraph |
deriveLineHeightMin(float aHeight)
Returns a paragraph identical to the receiver, but with the given min line height.
|
RMParagraph |
deriveLineSpacing(float aHeight)
Returns a paragraph identical to the receiver, but with the given line spacing.
|
RMParagraph |
deriveTab(int anIndex,
float tabValue,
char tabType)
Returns a paragraph identical to the receiver, but with new value for tab at given index.
|
RMParagraph |
deriveTabs(float[] newTabs,
char[] newTypes)
Returns a paragraph identical to the receiver, but with the given tabs.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
byte |
getAlign()
Returns the alignment associated with this paragraph.
|
byte |
getAlign(java.lang.String aString)
Returns an alignment for the given string, "left", "center", "right" or "full".
|
java.lang.String |
getAlignString()
Returns a string representation of the alignment associated with this paragraph, "left", "center" or "right".
|
float |
getLeftIndent()
Returns the left side indentation of this paragraph.
|
float |
getLeftIndentFirst()
Returns the left side indentation of the first line in this paragraph (this can be set different than successive
lines).
|
float |
getLineGap()
Returns additional line spacing expressed as a constant amount in points.
|
float |
getLineHeightMax()
Returns the maximum line height in printer points associated with this paragraph.
|
float |
getLineHeightMin()
Returns the minimum line height in printer points associated with this paragraph.
|
float |
getLineSpacing()
Returns the spacing of lines expressed as a factor of a given line's height.
|
float |
getParagraphSpacing()
Returns the spacing between paragraphs in printer points associated with this paragraph.
|
float |
getRightIndent()
Returns the right side indentation of this paragraph.
|
float |
getTab(int anIndex)
Returns the specific tab value for the given index in printer points.
|
int |
getTabCount()
Returns the number of tabs associated with this paragraph.
|
int |
getTabIndex(float aLocation)
Returns the tab index for the given location.
|
float[] |
getTabs()
Returns the raw tab array
|
java.lang.String |
getTabsString()
Returns the values of all the tabs associated with this paragraph as a comma separated string.
|
char |
getTabType(int anIndex)
Returns the type of tab at the given index.
|
char[] |
getTabTypes()
Returns the raw tab type array
|
void |
setTabs(float[] newTabs,
char[] newTypes)
Sets the tab stops.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival.
|
addListener, addPropertyChangeListener, animUpdate, clone, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing, toString
public static final RMParagraph DEFAULT
public static final byte ALIGN_LEFT
public static final byte ALIGN_RIGHT
public static final byte ALIGN_CENTER
public static final byte ALIGN_FULL
public static final char TAB_LEFT
public static final char TAB_RIGHT
public static final char TAB_CENTER
public static final char TAB_DECIMAL
public RMParagraph()
public RMParagraph(int anAlign, float leftIndent, float leftIndentFirst, float rightIndent)
public byte getAlign()
public java.lang.String getAlignString()
public byte getAlign(java.lang.String aString)
public float getLeftIndent()
public float getLeftIndentFirst()
public float getRightIndent()
public float getLineSpacing()
public float getLineGap()
public float getLineHeightMin()
public float getLineHeightMax()
public float getParagraphSpacing()
public int getTabCount()
public float getTab(int anIndex)
public char getTabType(int anIndex)
public float[] getTabs()
public char[] getTabTypes()
public int getTabIndex(float aLocation)
public java.lang.String getTabsString()
public RMParagraph deriveAligned(int anAlign)
public RMParagraph deriveIndent(float leftIndent, float leftIndentFirst, float rightIndent)
public RMParagraph deriveLineSpacing(float aHeight)
public RMParagraph deriveLineGap(float aHeight)
public RMParagraph deriveLineHeightMin(float aHeight)
public RMParagraph deriveLineHeightMax(float aHeight)
public void setTabs(float[] newTabs, char[] newTypes)
public RMParagraph deriveTabs(float[] newTabs, char[] newTypes)
public RMParagraph deriveTab(int anIndex, float tabValue, char tabType)
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)