Class RMTextStyle

java.lang.Object
com.inductiveautomation.rm.text.RMTextStyle
All Implemented Interfaces:
RMTypes, RMTextTypes, Cloneable

public class RMTextStyle extends Object implements RMTextTypes, Cloneable
A class to hold style attributes for a text run.
  • Constructor Details

    • RMTextStyle

      public RMTextStyle(RMXStringRun aRun)
      Creates a new RMTextStyle.
  • Method Details

    • 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 Object getAttribute(String aKey)
      Returns the default for a given key.
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class Object
    • clone

      public RMTextStyle clone()
      Standard clone implementation.
      Overrides:
      clone in class Object
    • clone

      public RMTextStyle clone(RMFont aFont)
      Clone with font.
    • clone

      public RMTextStyle clone(RMColor aColor)
      Clone with color.
    • clone

      public RMTextStyle clone(String aKey, Object aValue)
      Clone with key/value.
    • clone

      public RMTextStyle clone(Map<?,?> aMap)
      Clone with map.
    • toString

      public String toString()
      Standard toString implementation.
      Overrides:
      toString in class Object