Class TextBlockAnchor

java.lang.Object
org.jfree.chart.text.TextBlockAnchor
All Implemented Interfaces:
Serializable

public final class TextBlockAnchor extends Object implements Serializable
Used to indicate the position of an anchor point for a text block.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization.
      See Also:
    • TOP_LEFT

      public static final TextBlockAnchor TOP_LEFT
      Top/left.
    • TOP_CENTER

      public static final TextBlockAnchor TOP_CENTER
      Top/center.
    • TOP_RIGHT

      public static final TextBlockAnchor TOP_RIGHT
      Top/right.
    • CENTER_LEFT

      public static final TextBlockAnchor CENTER_LEFT
      Middle/left.
    • CENTER

      public static final TextBlockAnchor CENTER
      Middle/center.
    • CENTER_RIGHT

      public static final TextBlockAnchor CENTER_RIGHT
      Middle/right.
    • BOTTOM_LEFT

      public static final TextBlockAnchor BOTTOM_LEFT
      Bottom/left.
    • BOTTOM_CENTER

      public static final TextBlockAnchor BOTTOM_CENTER
      Bottom/center.
    • BOTTOM_RIGHT

      public static final TextBlockAnchor BOTTOM_RIGHT
      Bottom/right.
    • name

      private final String name
      The name.
  • Constructor Details

    • TextBlockAnchor

      private TextBlockAnchor(String name)
      Private constructor.
      Parameters:
      name - the name.
  • Method Details

    • toString

      public String toString()
      Returns a string representing the object.
      Overrides:
      toString in class Object
      Returns:
      The string.
    • equals

      public boolean equals(Object o)
      Returns true if this object is equal to the specified object, and false otherwise.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object.
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode
    • readResolve

      private Object readResolve() throws ObjectStreamException
      Ensures that serialization returns the unique instances.
      Returns:
      The object.
      Throws:
      ObjectStreamException - if there is a problem.