Package snap.text

Class TextLink

java.lang.Object
snap.text.TextLink

public class TextLink extends Object
A class to represent a hyperlink in a RichText TextStyle.
  • Constructor Details

    • TextLink

      public TextLink()
      Constructor.
    • TextLink

      public TextLink(String aLink)
      Creates a new TextLink.
  • Method Details

    • getString

      public String getString()
      Returns the link string.
    • setString

      public void setString(String aString)
      Sets the link string.
    • getColor

      public Color getColor()
      Returns the link color.
    • equals

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

      public int hashCode()
      Standard hashCode implementation.
      Overrides:
      hashCode in class Object
    • toString

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