com.objex.panywhere
Class LegendCondition

java.lang.Object
  extended by com.objex.panywhere.LegendCondition
All Implemented Interfaces:
java.io.Serializable

public class LegendCondition
extends java.lang.Object
implements java.io.Serializable

Defines conditions that must be satisfied for a person's subtext or symbols (if they are based on custom data) to be displayed on the pedigree. Only persons with Data objects that satisfy the condition

Data.getFieldid() = LegendCondition.getConditionFieldid()

will have their subtext displayed and/or symbols rendered.

See Also:
SubtextLegendItem, LegendItem, Serialized Form

Field Summary
static java.lang.String PROP_SAMPLE_PROPERTY
           
 
Constructor Summary
LegendCondition()
          Creates a new LegendCondition instance
LegendCondition(int ai_conditionfield, CompareOperator a_operator, java.lang.Object aCompareValue)
          Creates a new LegendCondition instance for field "ai_conditionfield", operator "as_operator" and matching value of "compareValue".
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 java.lang.Object getCompareValue()
           
 int getConditionFieldid()
           
 CompareOperator getOperator()
           
 java.lang.String getSampleProperty()
           
 int getTableid()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setCompareValue(java.lang.Object aCompareValue)
          Sets The condition's compare value.
 void setConditionFieldid(int a_fieldid)
          Sets the condition fieldid.
 void setOperator(CompareOperator aOperator)
          Sets the operator to be used on comparing the compare value to the person's data
 void setSampleProperty(java.lang.String value)
           
 void setTableid(int tableid)
          Set the fieldid for the table that the condition field is a part of.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SAMPLE_PROPERTY

public static final java.lang.String PROP_SAMPLE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

LegendCondition

public LegendCondition(int ai_conditionfield,
                       CompareOperator a_operator,
                       java.lang.Object aCompareValue)
Creates a new LegendCondition instance for field "ai_conditionfield", operator "as_operator" and matching value of "compareValue".

Parameters:
ai_conditionfield - The condition's fieldid. This must match the data dictionary DatabaseField object.
a_operator - The comparison operator to be used in comparing "aCompareVaue" to the person's data to determine whether or not to display their subtext or symbol
aCompareValue - The matching compare value

LegendCondition

public LegendCondition()
Creates a new LegendCondition instance

Method Detail

getSampleProperty

public java.lang.String getSampleProperty()

setSampleProperty

public void setSampleProperty(java.lang.String value)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

getCompareValue

public java.lang.Object getCompareValue()
Returns:
The condition's compare value. If person has Data object with a value that matches this value (depending on the compare operator), then their subtext and/or symbols will be displayed

setCompareValue

public void setCompareValue(java.lang.Object aCompareValue)
Sets The condition's compare value. If person has Data object with a value that matches this value (depending on the compare operator), then their subtext and/or symbols will be displayed

Parameters:
aCompareValue - The new compare value

getOperator

public CompareOperator getOperator()
Returns:
The operator to be used on comparing the compare value to the person's data

setOperator

public void setOperator(CompareOperator aOperator)
Sets the operator to be used on comparing the compare value to the person's data

Parameters:
aOperator - The new compare operator

getConditionFieldid

public int getConditionFieldid()
Returns:
The condition fieldid. If person has data obtained using Individual.getData(LegendCondition.getConditionFieldid()), then if that data's value matches (based on compare operator) the condition's compare value, the subtext and symbols will be appropriately displayed.

setConditionFieldid

public void setConditionFieldid(int a_fieldid)
Sets the condition fieldid. If person has data obtained using

Individual.getData(LegendCondition.getConditionFieldid())

then if that data's value matches (based on compare operator) the condition's compare value, the subtext and symbols will be appropriately displayed.

Parameters:
a_fieldid - The new condition fieldid

getTableid

public int getTableid()
Returns:
The fieldid for the table that the condition field is a part of. The default value is zero if the field in question is a non complex field. The field is set to a non-zero value if the condition belongs to a subfield of another field that is a complex field.

setTableid

public void setTableid(int tableid)
Set the fieldid for the table that the condition field is a part of. The default value is zero if the field in question is a non complex field. The field is set to a non-zero value if the condition belongs to a subfield of another field that is a complex field.

Parameters:
tableid - The new tableID