Package pal.gui

Class LinkageDisequilibriumComponent

java.lang.Object
java.awt.Component
pal.gui.LinkageDisequilibriumComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Printable, Serializable

public class LinkageDisequilibriumComponent extends Component implements Printable
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.
Version:
$Id: LinkageDisequilibriumComponent.java
Author:
Ed Buckler
See Also:
  • Field Details

  • Constructor Details

    • LinkageDisequilibriumComponent

      public LinkageDisequilibriumComponent(LinkageDisequilibrium theLD, boolean includeBlockSchematic, boolean chromosomalScale)
  • Method Details

    • setLowerCorner

      public void setLowerCorner(int ldMeasure)
      This determines what is displayed in the lower left corner. Options are: P_VALUE, DPRIME, and RSQUARE
    • setUpperCorner

      public void setUpperCorner(int ldMeasure)
      This determines what is displayed in the upper right corner. Options are: P_VALUE, DPRIME, and RSQUARE
    • setScaleOfView

      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
    • setShowSchematic

      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
    • paintComponent

      protected void paintComponent(Graphics g)
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class Component
    • print

      public int print(Graphics g, PageFormat pf, int pageIndex)
      Specified by:
      print in interface Printable