|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.objex.panywhere.Subtext
public class Subtext
This class defines an object that contains the subtext lines or items. A Subtext object contains one of more subtext items of type Subtext.SubtextItem. A Subtext.SubtextItem object corresponds to the SubtextLegendItem with the same order / line number. Note that this an auxilliary object used only for the display of subtext lines on the Pedigree. The storage and persistence of the actual data relating to the SubtextItem's in this object are stored as Data properties within the Individual object.
SubtextLegendItem,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
Subtext.MultiColumnSubtextItem
A subtext item that encapsulates a row with more than one subtext items or columns on one row. |
static class |
Subtext.SubtextItem
Represents a Subtext line or item. |
| Field Summary | |
|---|---|
static java.lang.String |
PROP_SAMPLE_PROPERTY
|
| Constructor Summary | |
|---|---|
Subtext()
Creates a new Subtext object for the display of iconsubtext lines |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addSubtextItem(Subtext.SubtextItem aItem,
int ai_line)
Adds a new SubtextItem to the list of SubtextItems making up this Subtext object |
void |
addSubtextItem(Subtext.SubtextItem aItem,
int ai_line,
int ai_subitem_row)
Adds a new SubtextItem that is is linked to a table subfield. |
void |
clear()
Clears the current subtext items |
Subtext.SubtextItem |
getItem(int ai_order)
|
Subtext.SubtextItem |
getItem(int ai_mainrow_order,
int ai_subitem_order)
|
java.lang.String |
getSampleProperty()
|
java.util.Map<java.lang.Integer,Subtext.SubtextItem> |
getSubtextItems()
|
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Subtext.SubtextItem>> |
getTablesubtextItems()
|
boolean |
isEmpty()
|
protected boolean |
isRenderNullItem(SubtextLegend aLegend,
int ai_cur_subtext_order,
boolean ab_rendering_supertext)
Look ahead of the current subtext item to see if there is at least another non-null subtext item. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removeSubtextItem(int ai_line)
Removes the SubtextItem to at the specified item line |
void |
removeSubtextItem(int ai_line,
int ai_subitem_row)
Removes the SubtextItem to at the specified item line and subline. |
protected void |
render(java.awt.Graphics2D g2d,
DrawingContext dc,
double indX,
double indY,
MarkerData a_chromo_data,
SubtextLegend aLegend)
Draws all the subtext lines making up this Subtext object. |
protected void |
renderMarkers(double ad_indx,
MarkerData a_chromo_data,
boolean showHaplotypeBars,
java.awt.Graphics2D g2d,
double starty,
DrawingContext dc)
|
protected double |
renderNoLegend(java.awt.Graphics2D g2d,
DrawingContext dc,
double indX,
double indY,
SubtextLegend aLegend)
|
protected java.awt.font.TextLayout |
renderNullItem(java.awt.Font lFont,
double ld_indx,
double starty,
double w,
java.awt.Graphics2D g2d,
java.awt.Color lWasColor,
boolean ab_render)
get a fake layout object for this non present subtext item |
protected void |
renderSupertext(java.awt.Graphics2D g2d,
DrawingContext dc,
double indX,
double indY,
SubtextLegend aLegend)
|
void |
setSampleProperty(java.lang.String value)
|
void |
setSubtextItems(java.util.Map<java.lang.Integer,Subtext.SubtextItem> aSubtextItems)
|
void |
setTablesubtextItems(java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Subtext.SubtextItem>> tablesubtextItems)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROP_SAMPLE_PROPERTY
| Constructor Detail |
|---|
public Subtext()
| Method Detail |
|---|
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Subtext.SubtextItem>> getTablesubtextItems()
public void setTablesubtextItems(java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Subtext.SubtextItem>> tablesubtextItems)
tablesubtextItems - Set the new list of table subtext itemspublic java.lang.String getSampleProperty()
public void setSampleProperty(java.lang.String value)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addSubtextItem(Subtext.SubtextItem aItem,
int ai_line)
aItem - The new SubtextItemai_line - The line number for the new item. This determines where on the list this item will be drawn. The line number also
corresponds to the order number within the subtext legend to which this item is linked.
public void addSubtextItem(Subtext.SubtextItem aItem,
int ai_line,
int ai_subitem_row)
ai_subitem_row - The row within the tabledataaItem - The new SubtextItemai_line - The line number for the new item. This determines where on the list this item will be drawn. The line number also
corresponds to the order number within the subtext legend to which this item is linked.public void removeSubtextItem(int ai_line)
ai_line - The line number for the item to be removed
public void removeSubtextItem(int ai_line,
int ai_subitem_row)
ai_line - The line number for the item to be removedai_subitem_row - The row within the tabledata
protected boolean isRenderNullItem(SubtextLegend aLegend,
int ai_cur_subtext_order,
boolean ab_rendering_supertext)
ai_cur_subtext_order - The subtext item that is being considered for rendering.aLegend - The subtext legend from which subtext data order and properties will be derived. If this subtext only
a subset of the subtext items that exist on the legend, blank spaces are drawn in the place of those subtext
elements that are non-existent.ab_rendering_supertext - If true then the null item check is for rendering supertext
protected void render(java.awt.Graphics2D g2d,
DrawingContext dc,
double indX,
double indY,
MarkerData a_chromo_data,
SubtextLegend aLegend)
g2d - The graphics contextdc - The drawing contextindX - The X-Coodirnate of the Individual whose subtext this isindY - The Y-Coodirnate of the Individual whose subtext this isa_chromo_data - The genetic data comprising chromsomes assigned to this IndividualaLegend - The subtext legend from which subtext data order and properties will be derived.
protected java.awt.font.TextLayout renderNullItem(java.awt.Font lFont,
double ld_indx,
double starty,
double w,
java.awt.Graphics2D g2d,
java.awt.Color lWasColor,
boolean ab_render)
protected void renderMarkers(double ad_indx,
MarkerData a_chromo_data,
boolean showHaplotypeBars,
java.awt.Graphics2D g2d,
double starty,
DrawingContext dc)
public java.util.Map<java.lang.Integer,Subtext.SubtextItem> getSubtextItems()
public void setSubtextItems(java.util.Map<java.lang.Integer,Subtext.SubtextItem> aSubtextItems)
public void clear()
public Subtext.SubtextItem getItem(int ai_order)
ai_order - The line number/order for the SubtextItem to be returned
public Subtext.SubtextItem getItem(int ai_mainrow_order,
int ai_subitem_order)
ai_mainrow_order - The line number/order for the SubtextItem to be returnedai_subitem_order - The subitem line number
protected void renderSupertext(java.awt.Graphics2D g2d,
DrawingContext dc,
double indX,
double indY,
SubtextLegend aLegend)
public boolean isEmpty()
protected double renderNoLegend(java.awt.Graphics2D g2d,
DrawingContext dc,
double indX,
double indY,
SubtextLegend aLegend)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||