smile.plot
Class Plot
- java.lang.Object
-
- smile.plot.Shape
-
- smile.plot.Plot
-
- Direct Known Subclasses:
- BarPlot, BoxPlot, Contour, Dendrogram, Grid, Heatmap, Hexmap, Histogram3D, QQPlot, ScatterPlot, SparseMatrixPlot, StaircasePlot, Surface, Wireframe
public abstract class Plot extends Shape
This is the abstract base class of plots.
-
-
Constructor Summary
Constructors Constructor and Description Plot()Constructor.Plot(java.awt.Color color)Constructor.Plot(java.lang.String id)Constructor.Plot(java.lang.String id, java.awt.Color color)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetID()Returns the id of plot.javax.swing.JComponent[]getToolBar()Returns an optional list of components in tool bar to control the plot.java.lang.StringgetToolTip(double[] coord)Returns a optional tool tip for the object at given coordinates.PlotsetID(java.lang.String id)Set the id of plot.
-
-
-
Constructor Detail
-
Plot
public Plot()
Constructor.
-
Plot
public Plot(java.lang.String id)
Constructor.
-
Plot
public Plot(java.awt.Color color)
Constructor.
-
Plot
public Plot(java.lang.String id, java.awt.Color color)Constructor.
-
-
Method Detail
-
setID
public Plot setID(java.lang.String id)
Set the id of plot.
-
getID
public java.lang.String getID()
Returns the id of plot.
-
getToolTip
public java.lang.String getToolTip(double[] coord)
Returns a optional tool tip for the object at given coordinates.- Parameters:
coord- the logical coordinates of current mouse position.- Returns:
- a string if an object with label close to the given coordinates. Otherwise null.
-
getToolBar
public javax.swing.JComponent[] getToolBar()
Returns an optional list of components in tool bar to control the plot.- Returns:
- an optional list of toolbar components, may be null.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG