org.math.plot.plots
Class HistogramPlot2D

java.lang.Object
  extended by org.math.plot.plots.Plot
      extended by org.math.plot.plots.HistogramPlot2D
All Implemented Interfaces:
Editable, Noteable, Plotable

public class HistogramPlot2D
extends Plot


Field Summary
(package private)  boolean autowidth
           
(package private)  double[][] bottomLeft
           
(package private)  double[][] bottomRight
           
(package private)  double factorWidth
           
(package private)  boolean fill_shape
           
(package private)  double offsetCenter_perWidth
           
(package private)  double[][] topLeft
           
(package private)  double[][] topRight
           
(package private)  double width_constant
           
(package private)  double[] widths
           
(package private)  double[][] XY
           
 
Fields inherited from class org.math.plot.plots.Plot
color, name, note_precision, noted, quantiles, visible
 
Constructor Summary
HistogramPlot2D(String n, Color c, double[][] _XY, double w)
           
HistogramPlot2D(String n, Color c, double[][] _XY, double[] w)
           
HistogramPlot2D(String n, Color c, double[][] _XY, double[] w, double _offsetCenter_perWidth, double _factorWidth)
           
HistogramPlot2D(String n, Color c, double[][] _XY, double w, double _offsetCenter_perWidth, double _factorWidth)
           
 
Method Summary
private  void build()
           
 double[][] getData()
           
 double[] getDataWidth()
           
 double[] isSelected(int[] screenCoordTest, AbstractDrawer draw)
           
static void main(String[] args)
           
 void plot(AbstractDrawer draw, Color c)
           
 void setData(double[][] d)
           
 void setData(double[][] d, double w)
           
 void setData(double[][] d, double[] w)
           
 void setDataWidth(double w)
           
 void setDataWidth(double[] w)
           
 
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

topLeft

double[][] topLeft

topRight

double[][] topRight

bottomLeft

double[][] bottomLeft

bottomRight

double[][] bottomRight

widths

double[] widths

width_constant

double width_constant

offsetCenter_perWidth

double offsetCenter_perWidth

factorWidth

double factorWidth

autowidth

boolean autowidth

fill_shape

boolean fill_shape

XY

double[][] XY
Constructor Detail

HistogramPlot2D

public HistogramPlot2D(String n,
                       Color c,
                       double[][] _XY,
                       double w)

HistogramPlot2D

public HistogramPlot2D(String n,
                       Color c,
                       double[][] _XY,
                       double[] w)

HistogramPlot2D

public HistogramPlot2D(String n,
                       Color c,
                       double[][] _XY,
                       double w,
                       double _offsetCenter_perWidth,
                       double _factorWidth)

HistogramPlot2D

public HistogramPlot2D(String n,
                       Color c,
                       double[][] _XY,
                       double[] w,
                       double _offsetCenter_perWidth,
                       double _factorWidth)
Method Detail

build

private void build()

plot

public void plot(AbstractDrawer draw,
                 Color c)
Specified by:
plot in class Plot

setData

public void setData(double[][] d)
Specified by:
setData in class Plot

getData

public double[][] getData()
Specified by:
getData in class Plot

setDataWidth

public void setDataWidth(double[] w)

setDataWidth

public void setDataWidth(double w)

getDataWidth

public double[] getDataWidth()

setData

public void setData(double[][] d,
                    double[] w)

setData

public void setData(double[][] d,
                    double w)

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)