ProGAL.geom2d.viewer
Class TextShape

java.lang.Object
  extended by ProGAL.geom2d.viewer.TextShape
All Implemented Interfaces:
Shape

public class TextShape
extends java.lang.Object
implements Shape


Constructor Summary
TextShape(java.lang.String text, Point pos, double height)
           
 
Method Summary
 Point getCenter()
          Get the geometric center of the shape.
 double getHeight()
           
 Point getPos()
           
 java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextShape

public TextShape(java.lang.String text,
                 Point pos,
                 double height)
Method Detail

getHeight

public double getHeight()

getText

public java.lang.String getText()

getPos

public Point getPos()

getCenter

public Point getCenter()
Description copied from interface: Shape
Get the geometric center of the shape. The center of a shape can be interpreted in many ways (center of mass, circumcenter, inscribed center etc.). No strict requirement is given here, but typically the circumcenter should be supplied. This method is most prominently used to find the average center-position of a collection of shapes such that scene-viewers can be centered on the scene.

Specified by:
getCenter in interface Shape