public class LinkageDisequilibriumComponent
An AWT Component for displaying information on linkage disequilibrium. Nice schematics are produced if an annotation alignment is used to construct LinkageDisequilibrium. It can portray things both on the gene and chromosomal scale.
public static int P_VALUE
public static int DPRIME
public static int RSQUARE
public LinkageDisequilibriumComponent(LinkageDisequilibrium theLD, boolean includeBlockSchematic, boolean chromosomalScale, int windowSize, int windowX, int windowY)
public void setXStart()
This sets the X start and end positions
public void setYStart()
This sets the Y start and end positions
public void setWindowSize(int newSize,
int newX,
int newY,
int ldMeasureLower,
int ldMeasureUpper)
This sets a new viewable size
public void setWindowX(int newX,
int ldMeasureLower,
int ldMeasureUpper)
This sets a new X position
public void setWindowY(int newY,
int ldMeasureLower,
int ldMeasureUpper)
This sets a new Y position
public void setLowerCorner(int ldMeasure)
This determines what is displayed in the lower left corner. Options are: P_VALUE, DPRIME, and RSQUARE
public void setUpperCorner(int ldMeasure)
This determines what is displayed in the upper right corner. Options are: P_VALUE, DPRIME, and RSQUARE
public void setScaleOfView(boolean chromosomalScale)
This sets the scale of the LD view, either sites are organized by chromosomes if chromosomalScale is true, otherwise they are organized by genes
public void setShowSchematic(boolean includeBlockSchematic)
This sets whether a schematic is displayed. If true a schematic of genes or chromosomes is displayed, otherwise no schematic is displayed
public void setShowLabels(boolean includeLabels)
protected void paintComponent(java.awt.Graphics g)
public void paint(java.awt.Graphics g)
public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
public void setGraphSize(int graphX,
int graphY)