|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.objex.panywhere.IndividualRenderer
public class IndividualRenderer
Class defines all the rendering methods that help paint icons for Individuals on the Pedigree canvas. A typical use will be to create a new Renderer everytime when an Individual is about to be rendered or to have a Render object pre-defined / created and only changing the data source by calling the method IndividualRenderer.setModel(Individual). This class also uses the default SymbolRenderer class defined to render Symbols for Individuals. To change and use a new Renderer for Symbols use the the method IndividualRenderer.setSymbolRender(). Also to create a new IndividualRenderer, you may subclass this class and override its rendering methods. We recommend that you do not do so.
| Field Summary | |
|---|---|
Pedigree |
m_PedigreeViewer
|
| Constructor Summary | |
|---|---|
IndividualRenderer(Pedigree aPedigreeViewer)
Creates a new Individual Renderer with no datasource/Individual data model specified |
|
| Method Summary | |
|---|---|
protected void |
drawBlueid(java.awt.Graphics2D g2d,
double w,
double h)
Draws the Blue ID NO for the Individual. |
protected void |
drawBlueid(java.awt.Graphics2D g2d,
DrawingContext dc)
Draws the Blue ID NO for the Individual. |
protected void |
drawIcontext(java.awt.Graphics2D g2d,
double w,
double h)
Draws the Icontext for the Individual subject |
protected void |
drawSubtext(java.awt.Graphics2D g2d,
double w,
double h,
double subtextY,
java.awt.Font subtextfont,
boolean showHaplotypeBars)
Draws the Icon subtext for the Individual. |
protected void |
drawSubtext(java.awt.Graphics2D g2d,
DrawingContext dc)
Draws the Icon subtext for the Individual. |
protected java.awt.geom.Rectangle2D |
getBoundingRec(double w,
double h)
|
Individual |
getModel()
Getter for property model. |
protected java.awt.geom.GeneralPath |
getProbandArrowShape(double w,
double h)
Creates and returns the shape of a proband symbol which is an arrow pointing towards the proband Icon. |
protected java.awt.Shape |
getShapeOutline(double x,
double y,
double w,
double h)
|
SymbolRenderer |
getSymbolRenderer()
Getter for property symbolRenderer. |
protected java.awt.geom.GeneralPath |
paintProbandArrowShapeLL(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
Draw the Lower Left Proband Arrow |
protected java.awt.geom.GeneralPath |
paintProbandArrowShapeLR(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
Draw the Lower Lower Right Proband Arrow |
protected java.awt.geom.GeneralPath |
paintProbandArrowShapeUL(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
Draw the Upper Left Proband Arrow |
protected java.awt.geom.GeneralPath |
paintProbandArrowShapeUR(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
Draw the Upper Right Proband Arrow |
protected void |
render(java.awt.Graphics2D g2d,
double x,
double y,
double w,
double h)
Draws the shape outline and symbols for the Individual's Icon at position specified. |
protected void |
render(java.awt.Graphics2D g2d,
DrawingContext dc)
Draws the appropriate icon for the Individual specified as the data model for this Renderer. |
protected void |
render(java.awt.Graphics2D g2d,
DrawingContext dc,
double x,
double y)
|
void |
setModel(Individual rhs)
Setter for property model. |
void |
setSymbolRenderer(SymbolRenderer symbolRenderer)
Setter for property symbolRenderer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public transient Pedigree m_PedigreeViewer
| Constructor Detail |
|---|
public IndividualRenderer(Pedigree aPedigreeViewer)
| Method Detail |
|---|
protected java.awt.geom.GeneralPath getProbandArrowShape(double w,
double h)
w - The iconwidthh - The iconheight
protected java.awt.geom.GeneralPath paintProbandArrowShapeLR(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
w - The iconwidthh - The Iconheightx - The X-Coordinate of the Individual / Probandy - The Y-Coordinate of the Individual / Probandg2d - The graphics context
protected java.awt.geom.GeneralPath paintProbandArrowShapeUR(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
w - The iconwidthh - The Iconheightx - The X-Coordinate of the Individual / Probandy - The Y-Coordinate of the Individual / Probandg2d - The graphics context
protected java.awt.geom.GeneralPath paintProbandArrowShapeUL(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
w - The iconwidthh - The Iconheightx - The X-Coordinate of the Individual / Probandy - The Y-Coordinate of the Individual / Probandg2d - The graphics context
protected java.awt.geom.GeneralPath paintProbandArrowShapeLL(double w,
double h,
double x,
double y,
java.awt.Graphics2D g2d)
w - The iconwidthh - The Iconheightx - The X-Coordinate of the Individual / Probandy - The Y-Coordinate of the Individual / Probandg2d - The graphics context
protected java.awt.Shape getShapeOutline(double x,
double y,
double w,
double h)
x - The X location of the shapey - The Y location of the shapew - The drawing context's Individual Icon widthh - The drawing context's Individual Icon height
protected java.awt.geom.Rectangle2D getBoundingRec(double w,
double h)
w - The drawing context's Individual Icon widthh - The drawing context's Individual Icon height
protected void render(java.awt.Graphics2D g2d,
double x,
double y,
double w,
double h)
g2d - The drawing context / paintbrush passed on from the panel on which the drawing is happeningx - The X Location to drawy - The Y lcoation to draww - The Icon width currently ruling on the Pedigreeh - The Icon height currently ruling on the Pedigree
protected void render(java.awt.Graphics2D g2d,
DrawingContext dc)
g2d - The drawing context / paintbrush passed on from the panel on which the drawing is happeningdc - The PedigreeViewer drawing context. This encasuplates the various Pedigree related
attributes that are used during drawing
protected void render(java.awt.Graphics2D g2d,
DrawingContext dc,
double x,
double y)
protected void drawSubtext(java.awt.Graphics2D g2d,
double w,
double h,
double subtextY,
java.awt.Font subtextfont,
boolean showHaplotypeBars)
g2d - The drawing context / paintbrush passed on from the panel on which the drawing is happeningw - The Icon width currently ruling on the Pedigreeh - The Icon height currently ruling on the PedigreeshowHaplotypeBars - If true then the Haplotype will be displayed for each Allele
otherwise only the Allele text is drawn.
protected void drawSubtext(java.awt.Graphics2D g2d,
DrawingContext dc)
g2d - The drawing context / paintbrush passed on from the panel on which the drawing is happeningdc - The PedigreeViewer drawing context. This encasuplates the various Pedigree related
attributes that are used during drawing
protected void drawIcontext(java.awt.Graphics2D g2d,
double w,
double h)
g2d - The drawing context / paintbrush passed on from the panel on which the drawing is happeningw - The Icon width currently ruling on the Pedigreeh - The Icon height currently ruling on the Pedigree
protected void drawBlueid(java.awt.Graphics2D g2d,
double w,
double h)
g2d - The drawing context / paintbrush passed on from the panel on which the drawing is happeningw - The Icon width currently ruling on the Pedigreeh - The Icon height currently ruling on the Pedigree
protected void drawBlueid(java.awt.Graphics2D g2d,
DrawingContext dc)
g2d - The drawing context / paintbrush passed on from the panel on which the drawing is happeningdc - The PedigreeViewer drawing context. This encasuplates the various Pedigree related
attributes that are used during drawingpublic Individual getModel()
public void setModel(Individual rhs)
rhs - New value of property model.public SymbolRenderer getSymbolRenderer()
public void setSymbolRenderer(SymbolRenderer symbolRenderer)
symbolRenderer - New value of property symbolRenderer.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||