com.objex.panywhere
Class Subtext.SubtextItem

java.lang.Object
  extended by com.objex.panywhere.Subtext.SubtextItem
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Subtext

public static class Subtext.SubtextItem
extends java.lang.Object
implements java.io.Serializable

Represents a Subtext line or item. A Subtext object can have one or more SubtextItem's. The number and order of rendering of the subtext items within a Subtext object are determined by the number and order of related SubtextLegendItems contained in the SubtextLegend for the control.

See Also:
Serialized Form

Constructor Summary
Subtext.SubtextItem()
          Creates a new Instance of SubtextItem
 
Method Summary
 int getFieldid()
           
 java.lang.String getText()
           
 double getX()
           
 double getY()
           
 boolean isComputed()
          Is a result of a computation from the Individual's data.
 void setComputed(boolean computed)
          Sets the new value for computed property.
 void setFieldid(int fieldid)
          Sets the fieldid linking this SubtextItem to the Data object within the Individual
 void setText(java.lang.String text)
          Sets the new display text for this SubtextItem.
 void setX(double x)
          Sets X-Coordinate on pedigree space on which this subtext item's text layout object is rendered.
 void setY(double y)
          Sets Y-Coordinate on pedigree space on which this subtext item's text layout object is rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subtext.SubtextItem

public Subtext.SubtextItem()
Creates a new Instance of SubtextItem

Method Detail

isComputed

public boolean isComputed()
Is a result of a computation from the Individual's data. Computed subtext items may not be edited


setComputed

public void setComputed(boolean computed)
Sets the new value for computed property. Computed subtext items may not be edited since they are a result of computations from an Individual's custom data that itself may be edited and/or stored in the database.


getText

public java.lang.String getText()
Returns:
The display text for this SubtextItem.

setText

public void setText(java.lang.String text)
Sets the new display text for this SubtextItem.

Parameters:
text - The new display text

getX

public double getX()
Returns:
The X-Coordinate on pedigree space on which this subtext item's text layout object is rendered. This property allows the item to be hit-tested on mouse clicks.

setX

public void setX(double x)
Sets X-Coordinate on pedigree space on which this subtext item's text layout object is rendered. This property allows the item to be hit-tested on mouse clicks.

Parameters:
x - The new X-coordinate

getY

public double getY()
Returns:
The Y-Coordinate on pedigree space on which this subtext item's text layout object is rendered. This property allows the item to be hit-tested on mouse clicks.

setY

public void setY(double y)
Sets Y-Coordinate on pedigree space on which this subtext item's text layout object is rendered. This property allows the item to be hit-tested on mouse clicks.

Parameters:
y - The new Y-coordinate

getFieldid

public int getFieldid()
Returns:
The fieldid linking this SubtextItem to the Data object within the Individual

setFieldid

public void setFieldid(int fieldid)
Sets the fieldid linking this SubtextItem to the Data object within the Individual

Parameters:
fieldid - The new fieldid