com.ohrasys.cad.gds.dao
Class Text

java.lang.Object
  extended by com.ohrasys.cad.gds.dao.Element
      extended by com.ohrasys.cad.gds.dao.GeometryElement
          extended by com.ohrasys.cad.gds.dao.Text
All Implemented Interfaces:
InfoProvider

public class Text
extends GeometryElement
implements InfoProvider

A text data access object


Field Summary
 
Fields inherited from class com.ohrasys.cad.gds.dao.Element
i18n
 
Constructor Summary
Text()
          Creates a new Text object.
Text(boolean external, boolean template, int group, int layer, int datatype, int vJustify, int hJustify, int font, int pathStyle, int width, Transform transform, java.awt.Point[] points, java.lang.String value)
          Creates a new Text object.
Text(int layer, Transform transform, java.lang.String value, java.awt.Point[] points)
          Creates a new Text object.
 
Method Summary
 int getFont()
          Getter for property font.
 int getHJustify()
          Getter for property hJustify.
 java.lang.String getInfo()
          Returns a textual representation of the text object
 int getPathStyle()
          Getter for property pathStyle.
 Transform getTransform()
          Getter for property transform.
 java.lang.String getValue()
          Getter for property value.
 int getVJustify()
          Getter for property vJustify.
 int getWidth()
          Getter for property width.
 void setFont(int font)
          Setter for property font.
 void setHJustify(int hJustify)
          Setter for property hJustify.
 void setPathStyle(int pathStyle)
          Setter for property pathStyle.
 void setTransform(Transform transform)
          Setter for property transform.
 void setValue(java.lang.String value)
          Setter for property value.
 void setVJustify(int vJustify)
          Setter for property vJustify.
 void setWidth(int width)
          Setter for property width.
 java.lang.String toString()
          Returns a string representation of the text object
 
Methods inherited from class com.ohrasys.cad.gds.dao.GeometryElement
getDatatype, getLayer, setDatatype, setLayer
 
Methods inherited from class com.ohrasys.cad.gds.dao.Element
getGroup, getPoints, getProperties, isExternal, isTemplate, setExternal, setGroup, setPoints, setProperties, setTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Text

public Text()
Creates a new Text object.


Text

public Text(int layer,
            Transform transform,
            java.lang.String value,
            java.awt.Point[] points)
Creates a new Text object.

Parameters:
layer - The layer of the text object
transform - The transform of the text object
value - The value of the text object
points - The points defining the text object

Text

public Text(boolean external,
            boolean template,
            int group,
            int layer,
            int datatype,
            int vJustify,
            int hJustify,
            int font,
            int pathStyle,
            int width,
            Transform transform,
            java.awt.Point[] points,
            java.lang.String value)
Creates a new Text object.

Parameters:
external - The text object is external data
template - The text object is template data
group - The object group the text object belongs to
layer - The layer of the text object
datatype - The datatyp of the text object
vJustify - The vertical justification of the text object
hJustify - The horizontal justification of the text object
font - The font
pathStyle - The path style
width - The width of the text object
transform - The transform of the text object
points - The points defining the text object
value - The string value of the text object
Method Detail

getFont

public int getFont()
Getter for property font.

Returns:
Value of property font.

getHJustify

public int getHJustify()
Getter for property hJustify.

Returns:
Value of property hJustify.

getInfo

public java.lang.String getInfo()
Returns a textual representation of the text object

Specified by:
getInfo in interface InfoProvider
Overrides:
getInfo in class GeometryElement
Returns:
A textual representation of the text object

getPathStyle

public int getPathStyle()
Getter for property pathStyle.

Returns:
Value of property pathStyle.

getTransform

public Transform getTransform()
Getter for property transform.

Returns:
Value of property transform.

getValue

public java.lang.String getValue()
Getter for property value.

Returns:
Value of property value.

getVJustify

public int getVJustify()
Getter for property vJustify.

Returns:
Value of property vJustify.

getWidth

public int getWidth()
Getter for property width.

Returns:
Value of property width.

setFont

public void setFont(int font)
Setter for property font.

Parameters:
font - New value of property font.

setHJustify

public void setHJustify(int hJustify)
Setter for property hJustify.

Parameters:
hJustify - New value of property hJustify.

setPathStyle

public void setPathStyle(int pathStyle)
Setter for property pathStyle.

Parameters:
pathStyle - New value of property pathStyle.

setTransform

public void setTransform(Transform transform)
Setter for property transform.

Parameters:
transform - New value of property transform.

setValue

public void setValue(java.lang.String value)
Setter for property value.

Parameters:
value - New value of property value.

setVJustify

public void setVJustify(int vJustify)
Setter for property vJustify.

Parameters:
vJustify - New value of property vJustify.

setWidth

public void setWidth(int width)
Setter for property width.

Parameters:
width - New value of property width.

toString

public java.lang.String toString()
Returns a string representation of the text object

Overrides:
toString in class GeometryElement
Returns:
A string representation of the text object