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.RMTextTypes
RMTextTypes.TabType
-
Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypes
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.rm.text.RMTextTypes
TEXT_CHAR_SPACING, TEXT_COLOR, TEXT_EMBEDDED_SHAPE, TEXT_FONT, TEXT_FORMAT, TEXT_OUTLINE, TEXT_PARAGRAPH, TEXT_SCRIPTING, TEXT_UNDERLINE
-
-
Constructor Summary
Constructors Constructor Description RMTextStyle(RMXStringRun aRun)
Creates a new RMTextStyle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RMTextStyle
clone()
Standard clone implementation.RMTextStyle
clone(RMColor aColor)
Clone with color.RMTextStyle
clone(RMFont aFont)
Clone with font.RMTextStyle
clone(java.lang.String aKey, java.lang.Object aValue)
Clone with key/value.RMTextStyle
clone(java.util.Map<?,?> aMap)
Clone with map.boolean
equals(java.lang.Object anObj)
Standard equals implementation.java.lang.Object
getAttribute(java.lang.String aKey)
Returns the default for a given key.double
getCharSpacing()
Returns the char spacing.RMColor
getColor()
Returns the color for this run.RMFont
getFont()
Returns the font for this run.RMFormat
getFormat()
Returns the format.RMXString.Outline
getOutline()
Returns the outline.RMParagraph
getParagraph()
Returns the paragraph.int
getScripting()
Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).int
getUnderlineStyle()
Returns the underline style of this run.boolean
isUnderlined()
Returns whether this run is underlined.java.lang.String
toString()
Standard toString implementation.
-
-
-
Constructor Detail
-
RMTextStyle
public RMTextStyle(RMXStringRun aRun)
Creates a new RMTextStyle.
-
-
Method Detail
-
getFont
public RMFont getFont()
Returns the font for this run.
-
getColor
public RMColor getColor()
Returns the color for this run.
-
isUnderlined
public boolean isUnderlined()
Returns whether this run is underlined.
-
getUnderlineStyle
public int getUnderlineStyle()
Returns the underline style of this run.
-
getScripting
public int getScripting()
Returns the scripting for this run (1=SuperScripting, -1=Subscripting, 0=none).
-
getCharSpacing
public double getCharSpacing()
Returns the char spacing.
-
getParagraph
public RMParagraph getParagraph()
Returns the paragraph.
-
getFormat
public RMFormat getFormat()
Returns the format.
-
getOutline
public RMXString.Outline getOutline()
Returns the outline.
-
getAttribute
public java.lang.Object getAttribute(java.lang.String aKey)
Returns the default for a given key.
-
equals
public boolean equals(java.lang.Object anObj)
Standard equals implementation.- Overrides:
equals
in classjava.lang.Object
-
clone
public RMTextStyle clone()
Standard clone implementation.- Overrides:
clone
in classjava.lang.Object
-
clone
public RMTextStyle clone(RMFont aFont)
Clone with font.
-
clone
public RMTextStyle clone(RMColor aColor)
Clone with color.
-
clone
public RMTextStyle clone(java.lang.String aKey, java.lang.Object aValue)
Clone with key/value.
-
clone
public RMTextStyle clone(java.util.Map<?,?> aMap)
Clone with map.
-
toString
public java.lang.String toString()
Standard toString implementation.- Overrides:
toString
in classjava.lang.Object
-
-