|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.objex.panywhere.SymbolRenderer
public class SymbolRenderer
The Symbol Renderer object performs the rendering of Individual's Symbol icons on the pedigree given the data obtained from the SymbolModel associated with this Renderer. It queries the appropriate properties of the Symbol model and draws the Icons accordingly. It is possible to write one's own SymbolRenderer class by extending this class and overriding the appropriate rendering methods. Since the SymbolRenderer is used by the IndividualRenderer to paint Symbols, once a custom SymbolRenderer has been created you would then use method IndividualRender.setSymbolRenderer(CustomRenderer) so that you register the new custom renderer.
| Constructor Summary | |
|---|---|
SymbolRenderer()
Creates a new instance of SymbolRenderer with a NULL data source / model |
|
SymbolRenderer(SymbolModel dataModel)
Creates a new instance of SymbolRenderer |
|
| Method Summary | |
|---|---|
protected void |
draw(double x,
double y,
double width,
double height,
boolean isFemale,
java.awt.Graphics2D g2d)
Displays the view of the Symbol based on the property values. |
protected void |
draw(double x,
double y,
double width,
double height,
java.awt.Graphics2D g2d,
boolean unknown,
boolean isFemale)
Displays the view of the Symbol based on the property values. |
SymbolModel |
getDataModel()
Getter for property dataModel. |
void |
setDataModel(SymbolModel dataModel)
Setter for property dataModel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SymbolRenderer(SymbolModel dataModel)
dataModel - The Symbol data model from which the data will be quiried for the construction of the viewpublic SymbolRenderer()
| Method Detail |
|---|
protected void draw(double x,
double y,
double width,
double height,
boolean isFemale,
java.awt.Graphics2D g2d)
x - The X coordinate of the Symbol Icon's top left corner. This must coincide with Individual Icon's X coordinatey - The Y coordinate of the Symbol Icon's top left corner. This must coincide with Individual Icon's Y coordinatewidth - The current Pedigree Icon widthheight - The current Pedigree Icon heightg2d - The graphics contextisFemale - A boolean indicating whether or not the Individual to whom this Symbol is assigned is female.
protected void draw(double x,
double y,
double width,
double height,
java.awt.Graphics2D g2d,
boolean unknown,
boolean isFemale)
x - The X coordinate of the Symbol Icon's top left corner. This must coincide with Individual Icon's X coordinatey - The Y coordinate of the Symbol Icon's top left corner. This must coincide with Individual Icon's Y coordinatewidth - The current Pedigree Icon widthheight - The current Pedigree Icon heightg2d - The graphics context for drawing purposesunknown - True if gender of Invoking Individual is marked as Unkwown, false otherwiseisFemale - True if gender of Individual is Female, and false of it is Male
Fixed a bug that was making quadrant dots drawn out of place for Icons representing Unkonwn Genderpublic SymbolModel getDataModel()
public void setDataModel(SymbolModel dataModel)
dataModel - New value of property dataModel.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||