trans.graphics
Class Graph

java.lang.Object
  extended bytrans.graphics.Graph

public class Graph
extends java.lang.Object

Graph for IntervalPlotter.


Constructor Summary
Graph(double[] values, double[] positions, double width, double height, java.awt.Color dataLineColor)
           
 
Method Summary
 void draw(java.awt.Graphics2D g2, java.awt.font.FontRenderContext fontContext, java.awt.Font font)
           
 double getPixelsPerBase()
           
 double[] getPositions()
           
 double getWOffSet()
           
 double getX()
           
 void makeDataLines()
           
 double makeGlyphs(double topLeftXCoor, double topLeftYCoor, double widthScalar, double heigthScalar)
          Returns bottom y coordinate of graph.
 void makeGridLines()
           
 void scaleValuesPositions()
           
 void setMinMaxY(double[] minMaxY)
          Use to set a common y scale, pass it a minMax for the entire dataset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph(double[] values,
             double[] positions,
             double width,
             double height,
             java.awt.Color dataLineColor)
Method Detail

setMinMaxY

public void setMinMaxY(double[] minMaxY)
Use to set a common y scale, pass it a minMax for the entire dataset.


makeGlyphs

public double makeGlyphs(double topLeftXCoor,
                         double topLeftYCoor,
                         double widthScalar,
                         double heigthScalar)
Returns bottom y coordinate of graph.


draw

public void draw(java.awt.Graphics2D g2,
                 java.awt.font.FontRenderContext fontContext,
                 java.awt.Font font)

makeGridLines

public void makeGridLines()

scaleValuesPositions

public void scaleValuesPositions()

makeDataLines

public void makeDataLines()

getWOffSet

public double getWOffSet()

getX

public double getX()

getPixelsPerBase

public double getPixelsPerBase()

getPositions

public double[] getPositions()