Package com.reportmill.text
Class RMXStringRun
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.text.RMXStringRun
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMXStringRun extends RMObject 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 SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intend()Returns the end character index for this run.booleanequals(java.lang.Object anObj)Returns whether this run is equal to the given object.java.lang.Objectget(java.lang.String aKey)Returns a specific attribute for the given key.java.util.MapgetAttributes()Returns the attributes map.RMColorgetColor()Returns the color for this run.RMFontgetFont()Returns the font for this run.RMFormatgetFormat()Returns the format for this run.RMXString.OutlinegetOutline()Returns the outline info for this run (null for none).RMParagraphgetParagraph()Returns the paragraph for this run.intgetScripting()Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).booleanisUnderlined()Returns whether this run is underlined.intlength()Returns the length in characters for this run.voidput(java.lang.String aKey, java.lang.Object aVal)Adds a specific attribute for the given key (will remove if attribute is null).voidputAll(java.util.Map aMap)Adds a map of attributes to this run's attributes.voidremove(java.lang.String aKey)Removes a specific attribute for the given key.intstart()Returns the start character index for this run.java.lang.StringtoString(RMXString anXString)Returns a string representation of this run.- 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
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.
 - 
getAttributespublic java.util.Map getAttributes() Returns the attributes map.
 - 
getpublic java.lang.Object get(java.lang.String aKey) Returns a specific attribute for the given key.
 - 
removepublic void remove(java.lang.String aKey) Removes a specific attribute for the given key.
 - 
putpublic void put(java.lang.String aKey, java.lang.Object aVal)Adds a specific attribute for the given key (will remove if attribute is null).
 - 
putAllpublic void putAll(java.util.Map aMap) Adds a map of attributes to this run's attributes.
 - 
getFontpublic RMFont getFont() Returns the font for this run.
 - 
getColorpublic RMColor getColor() Returns the color for this run.
 - 
getParagraphpublic RMParagraph getParagraph() Returns the paragraph for this run.
 - 
isUnderlinedpublic boolean isUnderlined() Returns whether this run is underlined.
 - 
getOutlinepublic RMXString.Outline getOutline() Returns the outline info for this run (null for none).
 - 
getFormatpublic RMFormat getFormat() Returns the format for this run.
 - 
getScriptingpublic int getScripting() Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).
 - 
equalspublic boolean equals(java.lang.Object anObj) Returns whether this run is equal to the given object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString(RMXString anXString) Returns a string representation of this run.
 
- 
 
-