org.math.plot.plots
Class ScatterPlot

java.lang.Object
  extended by org.math.plot.plots.Plot
      extended by org.math.plot.plots.ScatterPlot
All Implemented Interfaces:
Editable, Noteable, Plotable
Direct Known Subclasses:
BarPlot, LinePlot, StaircasePlot

public class ScatterPlot
extends Plot


Field Summary
private  boolean[][] pattern
           
private  int radius
           
private  int type
           
private  boolean use_pattern
           
(package private)  double[][] XY
           
 
Fields inherited from class org.math.plot.plots.Plot
color, name, note_precision, noted, quantiles, visible
 
Constructor Summary
ScatterPlot(String n, Color c, boolean[][] _pattern, double[][] _XY)
           
ScatterPlot(String n, Color c, double[][] _XY)
           
ScatterPlot(String n, Color c, int _type, int _radius, double[][] _XY)
           
 
Method Summary
 double[][] getData()
           
 double[] isSelected(int[] screenCoordTest, AbstractDrawer draw)
           
static void main(String[] args)
           
 void plot(AbstractDrawer draw, Color c)
           
 void setData(double[][] d)
           
 void setDotPattern(boolean[][] t)
           
 void setDotPattern(int t)
           
 
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
 

Field Detail

type

private int type

radius

private int radius

pattern

private boolean[][] pattern

use_pattern

private boolean use_pattern

XY

double[][] XY
Constructor Detail

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)
Method Detail

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 -