public class RMXStringCore extends RMBigStringBuilder
Modifier and Type | Class and Description |
---|---|
class |
RMXStringCore.AttrsChange
A property change event for setAttribute.
|
class |
RMXStringCore.CharsChange
A property change event for addChars/removeChars.
|
class |
RMXStringCore.StringChange
A property change event for addString/removeString.
|
Constructor and Description |
---|
RMXStringCore()
Creates a new RMXStringCore
|
RMXStringCore(java.lang.CharSequence theChars,
java.util.Map theAttrs)
Creates a new RMXStringCore
|
Modifier and Type | Method and Description |
---|---|
void |
addChars(java.lang.CharSequence theChars,
int anIndex)
Adds chars at index.
|
void |
addChars(java.lang.CharSequence theChars,
java.util.Map theAttrs,
int anIndex)
Appends the given string to this XString, with the given attributes, at the given index.
|
void |
addString(RMXStringCore aString,
int anIndex)
Adds an XString to this string at given index.
|
RMXString |
clone()
Returns a clone of this x string.
|
boolean |
equals(java.lang.Object anObj)
Standard Object equals implementation.
|
RMXStringRun |
getRun()
Returns the XString head run.
|
RMXStringRun |
getRun(int anIndex)
Returns the specific Run at the given index in this XString.
|
RMXStringRun |
getRunAt(int anIndex)
Returns the XString run that contains or ends at given index.
|
RMXStringRun |
getRunAt(int anIndex,
boolean isInclusive)
Returns the XString run that contains or ends (if given option is true) at given index.
|
int |
getRunCount()
Returns the number of runs in this XString.
|
RMXStringRun |
getRunLast()
Returns the last run in this XString (convenience).
|
boolean |
hasListeners()
Override to return false if FirePropertyChangeEnabled is off.
|
boolean |
isFirePropertyChangeEnabled()
Returns whether string fires property change events.
|
void |
removeChars(int aStart,
int anEnd)
Removes characters in given range.
|
void |
removeString(int aStart,
int anEnd)
Removes an XString section.
|
void |
setAttribute(RMTextTypes.Attribute aKey,
java.lang.Object aValue,
int aStart,
int anEnd)
Sets a given attribute to a given value for a given range.
|
void |
setFirePropertyChangeEnabled(boolean aValue)
Sets whether string fires property change events.
|
RMXString |
substring(int aStart)
Returns an XString for given char range.
|
RMXString |
substring(int aStart,
int anEnd)
Returns an XString for given char range.
|
charAt, indexOf, length, setCharAt, subSequence, toString, toStringBuffer
addPropertyChangeListener, animUpdate, removePropertyChangeListener
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, removeListener
public RMXStringCore()
public RMXStringCore(java.lang.CharSequence theChars, java.util.Map theAttrs)
public void addChars(java.lang.CharSequence theChars, int anIndex)
addChars
in class RMBigStringBuilder
public void addChars(java.lang.CharSequence theChars, java.util.Map theAttrs, int anIndex)
public void addString(RMXStringCore aString, int anIndex)
public void removeChars(int aStart, int anEnd)
removeChars
in class RMBigStringBuilder
public void removeString(int aStart, int anEnd)
public RMXString substring(int aStart)
public RMXString substring(int aStart, int anEnd)
public void setAttribute(RMTextTypes.Attribute aKey, java.lang.Object aValue, int aStart, int anEnd)
public RMXStringRun getRun()
public int getRunCount()
public RMXStringRun getRun(int anIndex)
public RMXStringRun getRunLast()
public final RMXStringRun getRunAt(int anIndex)
public RMXStringRun getRunAt(int anIndex, boolean isInclusive)
public boolean isFirePropertyChangeEnabled()
public void setFirePropertyChangeEnabled(boolean aValue)
public boolean hasListeners()
hasListeners
in class RMListenerList
public boolean equals(java.lang.Object anObj)
equals
in class RMBigStringBuilder
public RMXString clone()
clone
in class RMBigStringBuilder