org.math.plot.plots
Class Plot

java.lang.Object
  extended by org.math.plot.plots.Plot
All Implemented Interfaces:
Editable, Noteable, Plotable
Direct Known Subclasses:
BoxPlot2D, BoxPlot3D, GridPlot3D, HistogramPlot2D, HistogramPlot3D, QuantilePlot, ScatterPlot

public abstract class Plot
extends Object
implements Plotable, Noteable, Editable


Field Summary
 Color color
           
 String name
           
 int note_precision
           
 boolean noted
           
 Vector<QuantilePlot> quantiles
           
 boolean visible
           
 
Constructor Summary
Plot(String n, Color c)
           
 
Method Summary
 void addQuantile(int a, double q)
           
 void addQuantile(int a, double[] q)
           
 void addQuantile(QuantilePlot q)
           
 void addQuantiles(double[][] q)
           
 void addQuantiles(double[][][] q)
           
 void edit(Object src)
           
 void editnote(AbstractDrawer draw)
           
 Color getColor()
           
abstract  double[][] getData()
           
 String getName()
           
 boolean getVisible()
           
abstract  double[] isSelected(int[] screenCoordTest, AbstractDrawer draw)
           
 void note(AbstractDrawer draw)
           
 void plot(AbstractDrawer draw)
           
abstract  void plot(AbstractDrawer draw, Color c)
           
 void plotQuantiles(AbstractDrawer draw, Color c)
           
 void setColor(Color c)
           
abstract  void setData(double[][] d)
           
 void setName(String n)
           
 void setVisible(boolean v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name

color

public Color color

visible

public boolean visible

quantiles

public Vector<QuantilePlot> quantiles

noted

public boolean noted

note_precision

public int note_precision
Constructor Detail

Plot

public Plot(String n,
            Color c)
Method Detail

addQuantile

public void addQuantile(QuantilePlot q)

addQuantile

public void addQuantile(int a,
                        double[] q)

addQuantile

public void addQuantile(int a,
                        double q)

addQuantiles

public void addQuantiles(double[][][] q)

addQuantiles

public void addQuantiles(double[][] q)

setData

public abstract void setData(double[][] d)

getData

public abstract double[][] getData()

setVisible

public void setVisible(boolean v)
Specified by:
setVisible in interface Plotable

getVisible

public boolean getVisible()
Specified by:
getVisible in interface Plotable

setName

public void setName(String n)

getName

public String getName()

getColor

public Color getColor()
Specified by:
getColor in interface Plotable

setColor

public void setColor(Color c)
Specified by:
setColor in interface Plotable

isSelected

public abstract double[] isSelected(int[] screenCoordTest,
                                    AbstractDrawer draw)
Specified by:
isSelected in interface Editable
Specified by:
isSelected in interface Noteable

note

public void note(AbstractDrawer draw)
Specified by:
note in interface Noteable

plot

public abstract void plot(AbstractDrawer draw,
                          Color c)

plot

public void plot(AbstractDrawer draw)
Specified by:
plot in interface Plotable

plotQuantiles

public void plotQuantiles(AbstractDrawer draw,
                          Color c)

edit

public void edit(Object src)
Specified by:
edit in interface Editable

editnote

public void editnote(AbstractDrawer draw)
Specified by:
editnote in interface Editable