org.math.plot.plots
Class ScatterPlot
java.lang.Object
org.math.plot.plots.Plot
org.math.plot.plots.ScatterPlot
- All Implemented Interfaces:
- Editable, Noteable, Plotable
- Direct Known Subclasses:
- BarPlot, LinePlot, StaircasePlot
public class ScatterPlot
- extends Plot
Methods inherited from class org.math.plot.plots.Plot |
addQuantile, addQuantile, addQuantile, addQuantiles, addQuantiles, edit, editnote, getColor, getName, getVisible, note, plot, plotQuantiles, setColor, setName, setVisible |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
private int type
radius
private int radius
pattern
private boolean[][] pattern
use_pattern
private boolean use_pattern
XY
double[][] XY
ScatterPlot
public ScatterPlot(String n,
Color c,
boolean[][] _pattern,
double[][] _XY)
ScatterPlot
public ScatterPlot(String n,
Color c,
int _type,
int _radius,
double[][] _XY)
ScatterPlot
public ScatterPlot(String n,
Color c,
double[][] _XY)
plot
public void plot(AbstractDrawer draw,
Color c)
- Specified by:
plot
in class Plot
setDotPattern
public void setDotPattern(int t)
setDotPattern
public void setDotPattern(boolean[][] t)
setData
public void setData(double[][] d)
- Specified by:
setData
in class Plot
getData
public double[][] getData()
- Specified by:
getData
in class Plot
isSelected
public double[] isSelected(int[] screenCoordTest,
AbstractDrawer draw)
- Specified by:
isSelected
in interface Editable
- Specified by:
isSelected
in interface Noteable
- Specified by:
isSelected
in class Plot
main
public static void main(String[] args)
- Parameters:
args
-