gata.geneGlyphs
Class ScaleBar

java.lang.Object
  extended bygata.geneGlyphs.ScaleBar

public class ScaleBar
extends java.lang.Object

Author:
Nix Makes a Scale bar or ruler with intervals of between 10 and 100 pixels in length at 1, 10, 100 bp or kb or mb sizes based on pixPerNt.

Constructor Summary
ScaleBar(AnnoSpecParams annoParams, GATAParams gataParams)
           
 
Method Summary
 void clearScaleLineArrays()
          Used in hiding scale ruler bar
 java.lang.String getScaleBarLabel()
           
 java.awt.geom.Line2D.Double[] getScaleBarLines()
           
 double getScaleBarWidth()
           
 java.awt.geom.Line2D.Double[] getScaleLines()
           
 java.awt.geom.Line2D.Double[] getScaleRulerLines()
           
 void makeScaleBar()
          Makes a scale bar between 10 and 100 pixels in length at 1, 10, 100 bp or kb or mb sizes, change the scaleBarX and scaleBarY coordinates to relocate the bar
 void makeScaleRuler()
          Makes a scale ruler with intervals between 10 and 100 pixels in length at 1, 10, 100 bp or kb or mb sizes, change the scaleRulerStartStopX and scaleRulerY coordinates to relocate the bar
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScaleBar

public ScaleBar(AnnoSpecParams annoParams,
                GATAParams gataParams)
Method Detail

makeScaleRuler

public void makeScaleRuler()
Makes a scale ruler with intervals between 10 and 100 pixels in length at 1, 10, 100 bp or kb or mb sizes, change the scaleRulerStartStopX and scaleRulerY coordinates to relocate the bar


makeScaleBar

public void makeScaleBar()
Makes a scale bar between 10 and 100 pixels in length at 1, 10, 100 bp or kb or mb sizes, change the scaleBarX and scaleBarY coordinates to relocate the bar


getScaleBarLabel

public java.lang.String getScaleBarLabel()

getScaleBarWidth

public double getScaleBarWidth()

getScaleBarLines

public java.awt.geom.Line2D.Double[] getScaleBarLines()

getScaleRulerLines

public java.awt.geom.Line2D.Double[] getScaleRulerLines()

getScaleLines

public java.awt.geom.Line2D.Double[] getScaleLines()

clearScaleLineArrays

public void clearScaleLineArrays()
Used in hiding scale ruler bar