|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.objex.panywhere.LegendItem
public class LegendItem
A LegendItem in a Pedigree encapsulates the properties that describe the traits being tracked within that Pedigree. For example, if the Pedigree is used to track the existence of Cervical Cancer, a LegendItem object will be created with Cervical Cancer as the display text or description and with the quadrantOneColor property set to red. An Individual with Cervial Cancer will have a Symbol object that encapsulates the LegendItem just described. The relationship between a LegendItem object, a Symbol object and an Individual object can best be summarized as below :-
Symbol,
Legend,
LegendCondition,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface com.objex.panywhere.ComparableItems |
|---|
AND_OPERATOR, EQUALS_OPERATOR, GREATER_THAN_OPERATOR, GREATER_THAN_OR_EQUAL_OPERATOR, ISNOTNULL_OPERATOR, ISNULL_OPERATOR, OR_OPERATOR, SMALLER_THAN_OPERATOR, SMALLER_THAN_OR_EQUAL_OPERATOR |
| Constructor Summary | |
|---|---|
LegendItem()
Creates a new Legend item with null symbols |
|
| Method Summary | |
|---|---|
void |
addCondition(int ai_conditionfieldid,
java.lang.String as_operator,
java.lang.Object aCompareValue)
Adds a new Subtext condition that will determine whethere or not an Indvidual subject's subtext value should be deisplayed based on whether or not the data value in the specified field for this subtext item satisfies the specified condition. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Enables users of the Legend Bean to add property listeners |
void |
copyItem(LegendItem mCon)
Copies the the encoding details from the specified Legend Item and encodes this Legend item with them. |
java.awt.Color |
getCenterCircleColor()
|
java.awt.Paint |
getCenterCirclePaint()
NOT USED |
java.awt.Color |
getCenterSquareColor()
|
java.awt.Paint |
getCenterSquarePaint()
NOT USED |
java.util.List<LegendCondition> |
getConditions()
|
java.util.Iterator<LegendCondition> |
getConditionsIterator()
|
java.lang.String |
getID()
|
java.lang.String |
getLegendDisplayText()
|
java.lang.String |
getLegendText()
|
boolean |
getQuad1Dot()
|
java.awt.Color |
getQuad1DotColor()
Getter for property quad1DotColor. |
boolean |
getQuad2Dot()
|
java.awt.Color |
getQuad2DotColor()
Getter for property quad2DotColor. |
boolean |
getQuad3Dot()
|
java.awt.Color |
getQuad3DotColor()
Getter for property quad3DotColor. |
boolean |
getQuad4Dot()
|
java.awt.Color |
getQuad4DotColor()
Getter for property quad4DotColor. |
java.awt.Color |
getQuadFourColor()
|
java.awt.Paint |
getQuadFourPaint()
NOT USED |
java.awt.Color |
getQuadOneColor()
|
java.awt.Paint |
getQuadOnePaint()
NOT USED |
java.awt.Color |
getQuadThreeColor()
|
java.awt.Paint |
getQuadThreePaint()
NOT USED |
java.awt.Color |
getQuadTwoColor()
|
java.awt.Paint |
getQuadTwoPaint()
NOT USED |
double |
getX()
|
double |
getY()
|
boolean |
isHLine()
|
boolean |
isQuestionMark()
|
boolean |
isVLine()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
Enables users of the Legend Bean to add property listeners |
protected void |
render(double x,
double y,
java.awt.Graphics2D g2d)
Paints an Icon and its description on the Pedigree surface |
void |
setCenterCircleColor(java.awt.Color qColor)
Sets the color value for the centre circle of the symbol |
void |
setCenterCircleColor(int qColorRGB)
Sets the RGB value for the color for the centre circle of the symbol |
void |
setCenterCirclePaint(java.awt.Paint qPaint)
NOT USED |
void |
setCenterSquareColor(java.awt.Color qColor)
Sets the color for the centre square of the symbol |
void |
setCenterSquareColor(int qColorRGB)
Sets the RGB value for the color for the centre squqre of the symbol |
void |
setCenterSquarePaint(java.awt.Paint qPaint)
NOT USED |
void |
setConditions(java.util.List<LegendCondition> aConditions)
Sets the new Iterable list of subtext conditions |
void |
setHLine(boolean hline)
Sets or unsets the vertical line flag for this symbol depending on the value of parameter passed. |
void |
setID(java.lang.String strCondition)
Sets the Legend Item's ID |
void |
setLegendDisplayText(java.lang.String legendDisplayText)
Sets the display text for the legend item. |
void |
setLegendText(java.lang.String text)
Sets the Legend Item's text that describes what this legend the symbols it encapsulates mean. |
void |
setQuad1Dot(boolean qColor)
Sets the symbol color for quadrant 1. |
void |
setQuad1DotColor(java.awt.Color aColor)
Setter for property quad1DotColor. |
void |
setQuad2Dot(boolean qColor)
Sets the symbol color for quadrant 2 dot. |
void |
setQuad2DotColor(java.awt.Color aColor)
Setter for property quad2DotColor. |
void |
setQuad3Dot(boolean qColor)
Sets the symbol color for quadrant 3 dot |
void |
setQuad3DotColor(java.awt.Color aColor)
Setter for property quad3DotColor. |
void |
setQuad4Dot(boolean qColor)
Sets the symbol color for quadrant 4 dot |
void |
setQuad4DotColor(java.awt.Color aColor)
Setter for property quad4DotColor. |
void |
setQuadFourColor(java.awt.Color qColor)
Sets the symbol color for quadrant 4 |
void |
setQuadFourColor(int qColorRGB)
Sets the RGB value for the color in Quadrant 4 |
void |
setQuadFourPaint(java.awt.Paint qPaint)
NOT USED |
void |
setQuadOneColor(java.awt.Color qColor)
Sets the symbol color for quadrant 1 |
void |
setQuadOneColor(int qColorRGB)
Sets the RGB value for the color in Quadrant 1 |
void |
setQuadOnePaint(java.awt.Paint qPaint)
NOT USED |
void |
setQuadThreeColor(java.awt.Color qColor)
Sets the symbol color for quadrant 3 |
void |
setQuadThreeColor(int qColorRGB)
Sets the RGB value for the color in Quadrant 3 |
void |
setQuadThreePaint(java.awt.Paint qPaint)
NOT USED |
void |
setQuadTwoColor(java.awt.Color qColor)
Sets the symbol color for quadrant 2 |
void |
setQuadTwoColor(int qColorRGB)
Sets the RGB value for the color in Quadrant 2 |
void |
setQuadTwoPaint(java.awt.Paint qPaint)
NOT USED |
void |
setQuestionMark(boolean q)
Sets the flag to show question mark symbol to true or false. |
void |
setVLine(boolean vline)
Sets or unsets the vertical line flag for this symbol depending on the value of parameter passed. |
void |
setX(double xc)
Sets the current legend symbol location X Coordinate |
void |
setY(double yc)
Sets the current legend symbol location Y Coordinate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LegendItem()
| Method Detail |
|---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener lstnr)
public void removePropertyChangeListener(java.beans.PropertyChangeListener lstnr)
public double getX()
public double getY()
public void setX(double xc)
xc - The value to set the location topublic void setY(double yc)
yc - The value to set the location topublic java.lang.String getLegendText()
public void setLegendText(java.lang.String text)
text - The new legend textpublic java.lang.String getID()
public void setID(java.lang.String strCondition)
strCondition - The new legendItem IDpublic boolean getQuad1Dot()
public void setQuad1Dot(boolean qColor)
qColor - The new color for quadrant 1.public boolean getQuad2Dot()
public void setQuad2Dot(boolean qColor)
qColor - The new color for quadrant 2 dot.public boolean getQuad3Dot()
public void setQuad3Dot(boolean qColor)
qColor - The new color for quadrant 3 dot.public boolean getQuad4Dot()
public void setQuad4Dot(boolean qColor)
qColor - The new color for quadrant 4 dotpublic boolean isVLine()
public void setVLine(boolean vline)
vline - Boolean indicating whether to set or unset the vertcial line flagpublic boolean isQuestionMark()
public void setQuestionMark(boolean q)
q - The value to set (True or False)public boolean isHLine()
public void setHLine(boolean hline)
hline - Boolean indicating whether to set or unset the h/zontal line flagpublic java.awt.Color getQuadOneColor()
public void setQuadOneColor(java.awt.Color qColor)
qColor - The new color for quadrant 1public java.awt.Paint getQuadOnePaint()
public void setQuadOnePaint(java.awt.Paint qPaint)
public java.awt.Paint getQuadTwoPaint()
public void setQuadTwoPaint(java.awt.Paint qPaint)
public java.awt.Paint getQuadThreePaint()
public void setQuadThreePaint(java.awt.Paint qPaint)
public java.awt.Paint getQuadFourPaint()
public void setQuadFourPaint(java.awt.Paint qPaint)
public java.awt.Paint getCenterCirclePaint()
public void setCenterCirclePaint(java.awt.Paint qPaint)
public java.awt.Paint getCenterSquarePaint()
public void setCenterSquarePaint(java.awt.Paint qPaint)
public void setQuadOneColor(int qColorRGB)
qColorRGB - The new RGB valuepublic java.awt.Color getQuadTwoColor()
public void setQuadTwoColor(java.awt.Color qColor)
qColor - The new color for quadrant 2public void setQuadTwoColor(int qColorRGB)
qColorRGB - The new RGB valuepublic java.awt.Color getQuadThreeColor()
public void setQuadThreeColor(java.awt.Color qColor)
qColor - The new color for quadrant 3public void setQuadThreeColor(int qColorRGB)
qColorRGB - The new RGB valuepublic java.awt.Color getQuadFourColor()
public void setQuadFourColor(java.awt.Color qColor)
qColor - The new color for quadrant 4public void setQuadFourColor(int qColorRGB)
qColorRGB - The new RGB valuepublic java.awt.Color getCenterCircleColor()
public void setCenterCircleColor(java.awt.Color qColor)
qColor - The new color valuepublic void setCenterCircleColor(int qColorRGB)
qColorRGB - The new RGB valuepublic java.awt.Color getCenterSquareColor()
public void setCenterSquareColor(java.awt.Color qColor)
qColor - The new color valuepublic void setCenterSquareColor(int qColorRGB)
qColorRGB - The new RGB value
protected void render(double x,
double y,
java.awt.Graphics2D g2d)
x - The X coordinate of the LegendItem Icon on the Pedigree surfacey - The Y coordinate of the LegendItem Icon on the Pedigree surfaceg2d - The graphics context / paint brush for drawing.public void copyItem(LegendItem mCon)
mCon - The legend item from which the encoding data is to be copiedpublic java.awt.Color getQuad1DotColor()
public void setQuad1DotColor(java.awt.Color aColor)
aColor - New value of property quad1DotColor.public java.awt.Color getQuad2DotColor()
public void setQuad2DotColor(java.awt.Color aColor)
aColor - New value of property quad2DotColor.public java.awt.Color getQuad3DotColor()
public void setQuad3DotColor(java.awt.Color aColor)
aColor - New value of property quad3DotColor.public java.awt.Color getQuad4DotColor()
public void setQuad4DotColor(java.awt.Color aColor)
aColor - New value of property quad4DotColor.public java.util.List<LegendCondition> getConditions()
getConditions in interface ComparableItemspublic void setConditions(java.util.List<LegendCondition> aConditions)
setConditions in interface ComparableItemsaConditions - The new list of conditionspublic java.lang.String getLegendDisplayText()
getLegendDisplayText in interface ComparableItemspublic void setLegendDisplayText(java.lang.String legendDisplayText)
setLegendDisplayText in interface ComparableItems
public void addCondition(int ai_conditionfieldid,
java.lang.String as_operator,
java.lang.Object aCompareValue)
addCondition in interface ComparableItemsai_conditionfieldid - The field on which the condition is basedas_operator - The comparison operator used. Possible values are ComparableItems.EQUALS_OPERATOR, ComparableItems.SMALLER_THAN_OPERATOR,
ComparableItems.GREATER_THAN_OPERATOR, ComparableItems.GREATER_THAN_OR_EQUAL_OPERATOR, ComparableItems.SMALLER_THAN_OR_EQUAL_OPERATOR, ComparableItems.ISNULL_OPERATOR, ComparableItems.ISNOTNULL_OPERATORaCompareValue - The value that the subject Individual's corresponding data field must satisfy in order for the
condition to be statisfied.public java.util.Iterator<LegendCondition> getConditionsIterator()
getConditionsIterator in interface ComparableItems
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||