public abstract class Plot extends Shape
Constructor and Description |
---|
Plot()
Constructor.
|
Plot(java.awt.Color color)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Canvas |
canvas()
Returns a canvas of the plot.
|
abstract double[] |
getLowerBound()
Returns the lower bound of data.
|
abstract double[] |
getUpperBound()
Returns the upper bound of data.
|
java.util.Optional<Legend[]> |
legends()
Returns the optional name of shape, which will be used to
draw a legend outside the box.
|
java.util.Optional<javax.swing.JComponent[]> |
toolbar()
Returns an optional list of components in tool bar to control the plot.
|
java.util.Optional<java.lang.String> |
tooltip(double[] coord)
Returns a optional tool tip for the object at given coordinates.
|
public Plot()
public Plot(java.awt.Color color)
public abstract double[] getLowerBound()
public abstract double[] getUpperBound()
public Canvas canvas()
public java.util.Optional<Legend[]> legends()
public java.util.Optional<java.lang.String> tooltip(double[] coord)
coord
- the logical coordinates of current mouse position.public java.util.Optional<javax.swing.JComponent[]> toolbar()