uavsim.datatypes
Class TextDescriptor

java.lang.Object
  extended by uavsim.datatypes.TextDescriptor

public class TextDescriptor
extends java.lang.Object

Defines the descriptor for a text string to render.

Author:
Dan Tappan [23.06.11]

Field Summary
private  CoordinateCartesianAbsolute _anchor
          the anchor, where the origin in the text properties aligns
private  TextProperties _properties
          the text properties
private  java.lang.String _text
          the text
 
Constructor Summary
TextDescriptor(java.lang.String text, TextProperties properties, CoordinateCartesianAbsolute anchor)
          Creates a text descriptor.
 
Method Summary
 CoordinateCartesianAbsolute getAnchor()
          Gets the anchor, where the origin in the text properties aligns.
 TextProperties getProperties()
          Gets the text properties.
 java.lang.String getText()
          Gets the text.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_anchor

private final CoordinateCartesianAbsolute _anchor
the anchor, where the origin in the text properties aligns


_properties

private final TextProperties _properties
the text properties


_text

private final java.lang.String _text
the text

Constructor Detail

TextDescriptor

public TextDescriptor(java.lang.String text,
                      TextProperties properties,
                      CoordinateCartesianAbsolute anchor)
Creates a text descriptor.

Parameters:
text - - the text
properties - - the text properties
anchor - - the anchor, where the origin in properties aligns
Method Detail

getAnchor

public CoordinateCartesianAbsolute getAnchor()
Gets the anchor, where the origin in the text properties aligns.

Returns:
the anchor

getProperties

public TextProperties getProperties()
Gets the text properties.

Returns:
the properties

getText

public java.lang.String getText()
Gets the text.

Returns:
the text

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object