Package org.openpnp.util
Class SimpleGraph
- java.lang.Object
-
- org.openpnp.util.SimpleGraph
-
public class SimpleGraph extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleGraph.DataRow
static class
SimpleGraph.DataScale
-
Constructor Summary
Constructors Constructor Description SimpleGraph()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataScale(SimpleGraph.DataScale dataScale)
java.lang.Double
displayX(java.lang.Double x)
java.util.List<SimpleGraph.DataScale>
getDataScales()
static java.awt.Color
getDefaultGridColor()
java.awt.geom.Point2D.Double
getMaximum(SimpleGraph.DataScale dataScaleForY)
java.awt.geom.Point2D.Double
getMinimum(SimpleGraph.DataScale dataScaleForY)
double
getRelativePaddingLeft()
double
getRelativePaddingRight()
SimpleGraph.DataRow
getRow(java.lang.String scaleLabel, java.lang.String label)
SimpleGraph.DataScale
getScale(java.lang.String label)
java.util.List<SimpleGraph.DataScale>
getScales()
double
getT()
double
graphX(double x)
boolean
isLogarithmic()
void
setLogarithmic(boolean logarithmic)
void
setRelativePaddingLeft(double relativePaddingLeft)
void
setRelativePaddingRight(double relativePaddingRight)
-
-
-
Method Detail
-
addDataScale
public void addDataScale(SimpleGraph.DataScale dataScale)
-
getScale
public SimpleGraph.DataScale getScale(java.lang.String label)
-
getDataScales
public java.util.List<SimpleGraph.DataScale> getDataScales()
-
getRow
public SimpleGraph.DataRow getRow(java.lang.String scaleLabel, java.lang.String label)
-
getT
public double getT()
- Returns:
- Time in Milliseconds since the first call on this instance. System.nanoTime() based. Guaranteed to be monotone and unique.
-
getRelativePaddingLeft
public double getRelativePaddingLeft()
-
setRelativePaddingLeft
public void setRelativePaddingLeft(double relativePaddingLeft)
-
getRelativePaddingRight
public double getRelativePaddingRight()
-
setRelativePaddingRight
public void setRelativePaddingRight(double relativePaddingRight)
-
isLogarithmic
public boolean isLogarithmic()
-
setLogarithmic
public void setLogarithmic(boolean logarithmic)
-
getMinimum
public java.awt.geom.Point2D.Double getMinimum(SimpleGraph.DataScale dataScaleForY)
-
getMaximum
public java.awt.geom.Point2D.Double getMaximum(SimpleGraph.DataScale dataScaleForY)
-
graphX
public double graphX(double x)
-
displayX
public java.lang.Double displayX(java.lang.Double x)
-
getScales
public java.util.List<SimpleGraph.DataScale> getScales()
-
getDefaultGridColor
public static java.awt.Color getDefaultGridColor()
-
-