trans.graphics
Class Graph
java.lang.Object
trans.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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Graph
public Graph(double[] values,
double[] positions,
double width,
double height,
java.awt.Color dataLineColor)
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()