|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.objex.panywhere.DrawingContext
public class DrawingContext
This object is used to transport the drawing attributes used by IndividualRenderer, SymbolRenderer and Allele Renderers during their rendering process, from the PedigreeViewer to the renderers. The renderers then use this drawing context object to peek at the ruling drawing attributes set by the PedigreeViewer and hence use them to do the rendering of the objects.
| Constructor Summary | |
|---|---|
DrawingContext(double iconwidth,
double iconheight,
double childlineheight,
double ioffset,
double goffset,
double suby,
boolean sh,
boolean sid,
java.awt.Font subtextFont,
boolean ab_UseStandardProbandArrow)
Creates a new Pedigree DrawingContext with the specified attributes/properties |
|
| Method Summary | |
|---|---|
double |
getAlleleTextWidth()
|
double |
getChildLineHeight()
Gets the current drawing context's child line height. |
double |
getGenerationOffset()
Gets the current drawing context's generation offset. |
java.awt.Color |
getHlColor()
|
double |
getIconheight()
Gets the current drawing context's iconheight. |
double |
getIconwidth()
Gets the current drawing context's iconwidth. |
double |
getIndividualOffset()
Gets the current drawing context's individual offset. |
double |
getMarkerDisplayHeight()
|
double |
getMarkerDisplayWidth()
|
java.awt.Font |
getSubtextFont()
Gets the current drawing context's subtext and AlleleText font. |
double |
getSubtextYValue()
Gets the current drawing context's subtextYValue. |
boolean |
isShowblueid()
Gets the current drawing context's showBlueid property. |
boolean |
isUseStandardProbandArrow()
|
void |
setAlleleTextWidth(double alleleTextWidth)
|
void |
setChildLineHeight(double rhs)
Sets the current drawing context's child line height. |
void |
setGenerationOffset(double rhs)
Sets the current drawing context's generation offset. |
void |
setHlColor(java.awt.Color hlColor)
Set the highlight color to be used for highlighted icons |
void |
setIconheight(double rhs)
Gets the current drawing context's iconheight. |
void |
setIconwidth(double rhs)
Sets the current drawing context's iconwidth. |
void |
setIndividualOffset(double rhs)
Sets the current drawing context's individual offset. |
void |
setMarkerDisplayHeight(double markerDisplayHeight)
|
void |
setMarkerDisplayWidth(double markerDisplayWidth)
|
void |
setShowblueid(boolean rhs)
Sets the current drawing context's showBlueid property. |
void |
setShowhaplotype(boolean rhs)
Sets the current drawing context's showHaplotype property. |
void |
setSubtextFont(java.awt.Font f)
Sets the current drawing context's subtext and AlleleText font. |
void |
setSubtextYValue(double rhs)
Sets the current drawing context's subtextYValue. |
void |
setUseStandardProbandArrow(boolean ab_UseStandardProbandArrow)
Sets a new value for property "useStandardProbandArrow" which determines what type of proband indicator will be drawn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrawingContext(double iconwidth,
double iconheight,
double childlineheight,
double ioffset,
double goffset,
double suby,
boolean sh,
boolean sid,
java.awt.Font subtextFont,
boolean ab_UseStandardProbandArrow)
iconwidth - The icon width that will be used to render individual iconsiconheight - The icon height that will be used to render individual iconschildlineheight - The child line height that will be used to render individual iconsioffset - The individual offset that will be used to render individual iconsgoffset - The generation offset that will be used to render individual iconssuby - The subtext Y Value that will be used to render individual iconssh - The flag indicating whether or not the haplotype bars will be drawn for each iconsid - The flag indicating whether or not the generational ID's will be drawn for each iconsubtextFont - The font taht will be used to render iconsubtext as well as Allele text| Method Detail |
|---|
public void setIconwidth(double rhs)
public double getIconwidth()
public void setChildLineHeight(double rhs)
public double getChildLineHeight()
public void setIconheight(double rhs)
public double getIconheight()
public void setIndividualOffset(double rhs)
public double getIndividualOffset()
public void setGenerationOffset(double rhs)
public double getGenerationOffset()
public void setSubtextYValue(double rhs)
public double getSubtextYValue()
public void setShowhaplotype(boolean rhs)
public void setShowblueid(boolean rhs)
public boolean isShowblueid()
public void setSubtextFont(java.awt.Font f)
public java.awt.Font getSubtextFont()
public boolean isUseStandardProbandArrow()
public void setUseStandardProbandArrow(boolean ab_UseStandardProbandArrow)
ab_UseStandardProbandArrow - The new value for the property "useStandardProbandArrow"public java.awt.Color getHlColor()
public void setHlColor(java.awt.Color hlColor)
hlColor - The new highlight colorpublic double getAlleleTextWidth()
public void setAlleleTextWidth(double alleleTextWidth)
public double getMarkerDisplayWidth()
public void setMarkerDisplayWidth(double markerDisplayWidth)
public double getMarkerDisplayHeight()
public void setMarkerDisplayHeight(double markerDisplayHeight)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||