public class RMXStringRun extends RMObject
Constructor and Description |
---|
RMXStringRun()
Creates a new run.
|
RMXStringRun(java.util.Map attrs,
int start,
int length)
Creates a new run for the given attributes map and character start index and character length.
|
Modifier and Type | Method and Description |
---|---|
int |
end()
Returns the end character index for this run.
|
boolean |
equals(java.lang.Object anObj)
Returns whether this run is equal to the given object.
|
java.lang.Object |
get(java.lang.String aKey)
Returns a specific attribute for the given key.
|
java.util.Map |
getAttributes()
Returns the attributes map.
|
RMColor |
getColor()
Returns the color for this run.
|
RMFont |
getFont()
Returns the font for this run.
|
RMFormat |
getFormat()
Returns the format for this run.
|
RMXString.Outline |
getOutline()
Returns the outline info for this run (null for none).
|
RMParagraph |
getParagraph()
Returns the paragraph for this run.
|
int |
getScripting()
Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).
|
boolean |
isUnderlined()
Returns whether this run is underlined.
|
int |
length()
Returns the length in characters for this run.
|
void |
put(java.lang.String aKey,
java.lang.Object aVal)
Adds a specific attribute for the given key (will remove if attribute is null).
|
void |
putAll(java.util.Map aMap)
Adds a map of attributes to this run's attributes.
|
void |
remove(java.lang.String aKey)
Removes a specific attribute for the given key.
|
int |
start()
Returns the start character index for this run.
|
java.lang.String |
toString(RMXString anXString)
Returns a string representation of this run.
|
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public RMXStringRun()
public RMXStringRun(java.util.Map attrs, int start, int length)
public int start()
public int end()
public int length()
public java.util.Map getAttributes()
public java.lang.Object get(java.lang.String aKey)
public void remove(java.lang.String aKey)
public void put(java.lang.String aKey, java.lang.Object aVal)
public void putAll(java.util.Map aMap)
public RMFont getFont()
public RMColor getColor()
public RMParagraph getParagraph()
public boolean isUnderlined()
public RMXString.Outline getOutline()
public RMFormat getFormat()
public int getScripting()
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public java.lang.String toString(RMXString anXString)