Package com.reportmill.text
Class RMXStringRun
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.text.RMXStringRun
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
The Run class represents a range of characters in an xstring that share common attributes.
 
This class makes a point to treat its attributes map as read-only so they can be shared among multiple runs.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new run.RMXStringRun(Map attrs, int start, int length) Creates a new run for the given attributes map and character start index and character length.
- 
Method SummaryModifier and TypeMethodDescriptionintend()Returns the end character index for this run.booleanReturns whether this run is equal to the given object.Returns a specific attribute for the given key.Returns the attributes map.getColor()Returns the color for this run.getFont()Returns the font for this run.Returns the format for this run.Returns the outline info for this run (null for none).Returns the paragraph for this run.intReturns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).booleanReturns whether this run is underlined.intlength()Returns the length in characters for this run.voidAdds a specific attribute for the given key (will remove if attribute is null).voidAdds a map of attributes to this run's attributes.voidRemoves a specific attribute for the given key.intstart()Returns the start character index for this run.Returns a string representation of this run.Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMXStringRunpublic RMXStringRun()Creates a new run.
- 
RMXStringRunCreates a new run for the given attributes map and character start index and character length.
 
- 
- 
Method Details- 
startpublic int start()Returns the start character index for this run.
- 
endpublic int end()Returns the end character index for this run.
- 
lengthpublic int length()Returns the length in characters for this run.
- 
getAttributesReturns the attributes map.
- 
getReturns a specific attribute for the given key.
- 
removeRemoves a specific attribute for the given key.
- 
putAdds a specific attribute for the given key (will remove if attribute is null).
- 
putAllAdds a map of attributes to this run's attributes.
- 
getFontReturns the font for this run.
- 
getColorReturns the color for this run.
- 
getParagraphReturns the paragraph for this run.
- 
isUnderlinedpublic boolean isUnderlined()Returns whether this run is underlined.
- 
getOutlineReturns the outline info for this run (null for none).
- 
getFormatReturns the format for this run.
- 
getScriptingpublic int getScripting()Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).
- 
equalsReturns whether this run is equal to the given object.
- 
toStringReturns a string representation of this run.
 
-