Interface ElementText

All Superinterfaces:
Element, InteractionSource
All Known Implementing Classes:
ElementText

public interface ElementText extends Element

Title: ElementSegment

Description: A 3D Segment.

Version:
March 2005
Author:
Francisco Esquembre
  • Field Details

    • JUSTIFICATION_CENTER

      static final int JUSTIFICATION_CENTER
      Center the Text over the point
      See Also:
    • JUSTIFICATION_LEFT

      static final int JUSTIFICATION_LEFT
      Position the Text to the Left of the point
      See Also:
    • JUSTIFICATION_RIGHT

      static final int JUSTIFICATION_RIGHT
      Position the Text to the Right of the point
      See Also:
  • Method Details

    • setText

      void setText(String text)
      Sets the text to be displayed
      Parameters:
      text - the String
    • getText

      String getText()
      Gets the text displayed
    • setFont

      void setFont(Font font)
      Sets the font for the text
      Parameters:
      font - Font
    • getFont

      Font getFont()
      Gets the font of the text
      Returns:
      Font
    • setJustification

      void setJustification(int justification)
      Sets the justification for the text
      Parameters:
      font - Font
    • getJustification

      int getJustification()
      Gets the justification of the text
      Returns:
      Font
    • setRotationAngle

      void setRotationAngle(double angle)
      Sets the rotation angle for the text. Default is 0.
      Parameters:
      angle - the rotation angle
    • getRotationAngle

      double getRotationAngle()
      Gets the rotation angle for the text