Package com.inductiveautomation.rm.text
Class RMTextStyle
- java.lang.Object
- 
- com.inductiveautomation.rm.text.RMTextStyle
 
- 
- All Implemented Interfaces:
- RMTypes,- RMTextTypes,- java.lang.Cloneable
 
 public class RMTextStyle extends java.lang.Object implements RMTextTypes, java.lang.Cloneable A class to hold style attributes for a text run.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.text.RMTextTypesRMTextTypes.TabType
 - 
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
 
- 
 - 
Field Summary- 
Fields inherited from interface com.inductiveautomation.rm.text.RMTextTypesTEXT_CHAR_SPACING, TEXT_COLOR, TEXT_EMBEDDED_SHAPE, TEXT_FONT, TEXT_FORMAT, TEXT_OUTLINE, TEXT_PARAGRAPH, TEXT_SCRIPTING, TEXT_UNDERLINE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMTextStyle(RMXStringRun aRun)Creates a new RMTextStyle.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMTextStyleclone()Standard clone implementation.RMTextStyleclone(RMColor aColor)Clone with color.RMTextStyleclone(RMFont aFont)Clone with font.RMTextStyleclone(java.lang.String aKey, java.lang.Object aValue)Clone with key/value.RMTextStyleclone(java.util.Map<?,?> aMap)Clone with map.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectgetAttribute(java.lang.String aKey)Returns the default for a given key.doublegetCharSpacing()Returns the char spacing.RMColorgetColor()Returns the color for this run.RMFontgetFont()Returns the font for this run.RMFormatgetFormat()Returns the format.RMXString.OutlinegetOutline()Returns the outline.RMParagraphgetParagraph()Returns the paragraph.intgetScripting()Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).intgetUnderlineStyle()Returns the underline style of this run.booleanisUnderlined()Returns whether this run is underlined.java.lang.StringtoString()Standard toString implementation.
 
- 
- 
- 
Constructor Detail- 
RMTextStylepublic RMTextStyle(RMXStringRun aRun) Creates a new RMTextStyle.
 
- 
 - 
Method Detail- 
getFontpublic RMFont getFont() Returns the font for this run.
 - 
getColorpublic RMColor getColor() Returns the color for this run.
 - 
isUnderlinedpublic boolean isUnderlined() Returns whether this run is underlined.
 - 
getUnderlineStylepublic int getUnderlineStyle() Returns the underline style of this run.
 - 
getScriptingpublic int getScripting() Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).
 - 
getCharSpacingpublic double getCharSpacing() Returns the char spacing.
 - 
getParagraphpublic RMParagraph getParagraph() Returns the paragraph.
 - 
getFormatpublic RMFormat getFormat() Returns the format.
 - 
getOutlinepublic RMXString.Outline getOutline() Returns the outline.
 - 
getAttributepublic java.lang.Object getAttribute(java.lang.String aKey) Returns the default for a given key.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
clonepublic RMTextStyle clone() Standard clone implementation.- Overrides:
- clonein class- java.lang.Object
 
 - 
clonepublic RMTextStyle clone(RMFont aFont) Clone with font.
 - 
clonepublic RMTextStyle clone(RMColor aColor) Clone with color.
 - 
clonepublic RMTextStyle clone(java.lang.String aKey, java.lang.Object aValue) Clone with key/value.
 - 
clonepublic RMTextStyle clone(java.util.Map<?,?> aMap) Clone with map.
 - 
toStringpublic java.lang.String toString() Standard toString implementation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-