Package mgui.geometry

Class Text2D

java.lang.Object
mgui.geometry.Shape2D
mgui.geometry.Text2D
All Implemented Interfaces:
java.lang.Cloneable, Shape, XMLObject

public class Text2D
extends Shape2D
Represents a character string with 2D geometry.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

  • Constructor Details

    • Text2D

      public Text2D()
    • Text2D

      public Text2D​(java.lang.String text, Rect2D bound)
    • Text2D

      public Text2D​(java.lang.String text, org.jogamp.vecmath.Point2f pt1, org.jogamp.vecmath.Point2f pt2)
  • Method Details

    • getVertices

      public java.util.ArrayList<org.jogamp.vecmath.Point2f> getVertices()
      Specified by:
      getVertices in class Shape2D
    • setVertices

      public void setVertices​(java.util.ArrayList<org.jogamp.vecmath.Point2f> vertices)
      Specified by:
      setVertices in class Shape2D
    • getVertex

      public org.jogamp.vecmath.Point2f getVertex​(int i)
      Specified by:
      getVertex in class Shape2D
    • getText

      public java.lang.String getText()
    • setText

      public void setText​(java.lang.String text)
    • getBounds

      public Rect2D getBounds()
      Description copied from class: Shape2D
      Returns a rectangle which bounds this 2D shape
      Overrides:
      getBounds in class Shape2D
      Returns:
    • setBounds

      public void setBounds​(Rect2D bounds)
    • clone

      public java.lang.Object clone()
      Overrides:
      clone in class Shape2D