|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
jas.hist.util.ObserverAdapter
jas.hist.util.TwoDAdapter
public class TwoDAdapter
A class which simply acts as a proxy for the DataSource provided as an argument to its constructor. Not very useful in itself, but can be used as a base class for more interesting adapters.
Field Summary | |
---|---|
protected Rebinnable2DHistogramData |
source
|
Fields inherited from interface jas.hist.DataSource |
---|
DATE, DELTATIME, DOUBLE, INTEGER, STRING |
Constructor Summary | |
---|---|
TwoDAdapter(Rebinnable2DHistogramData source)
|
Method Summary | |
---|---|
int |
addSlice(double x,
double y,
double width,
double height,
double phi)
Create a new slice with the specified initial parameters |
boolean |
canAddRemoveSlices()
|
int |
getNSlices()
Number of slices currently attached to plot |
Rebinnable1DHistogramData |
getSlice(int n)
Get the data corresponding to the slice. |
SliceParameters |
getSliceParameters(int n)
Get the parameters of a slice. |
Statistics |
getStatistics()
|
JASHistStyle |
getStyle()
This method is called by the plot to determine what style to be used for a plot. |
String |
getTitle()
Return the caption to be used in the legend for this data. |
String[] |
getXAxisLabels()
|
int |
getXAxisType()
|
int |
getXBins()
|
double |
getXMax()
|
double |
getXMin()
|
String[] |
getYAxisLabels()
|
int |
getYAxisType()
|
int |
getYBins()
|
double |
getYMax()
|
double |
getYMin()
|
boolean |
isRebinnable()
|
double[][][] |
rebin(int xbins,
double xmin,
double xmax,
int ybins,
double ymin,
double ymax,
boolean wantErrors,
boolean hurry,
boolean overflow)
|
void |
removeSlice(int n)
Remove a slice from the source |
String |
toString()
|
Methods inherited from class jas.hist.util.ObserverAdapter |
---|
addObserver, clearObservable, deleteObserver, deleteObservers, setObservable, update |
Methods inherited from class java.util.Observable |
---|
clearChanged, countObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Rebinnable2DHistogramData source
Constructor Detail |
---|
public TwoDAdapter(Rebinnable2DHistogramData source)
Method Detail |
---|
public double[][][] rebin(int xbins, double xmin, double xmax, int ybins, double ymin, double ymax, boolean wantErrors, boolean hurry, boolean overflow)
rebin
in interface Rebinnable2DHistogramData
public double getXMin()
getXMin
in interface Rebinnable2DHistogramData
public double getXMax()
getXMax
in interface Rebinnable2DHistogramData
public double getYMin()
getYMin
in interface Rebinnable2DHistogramData
public double getYMax()
getYMax
in interface Rebinnable2DHistogramData
public int getXBins()
getXBins
in interface Rebinnable2DHistogramData
public int getYBins()
getYBins
in interface Rebinnable2DHistogramData
public boolean isRebinnable()
isRebinnable
in interface Rebinnable2DHistogramData
public int getXAxisType()
getXAxisType
in interface Rebinnable2DHistogramData
public int getYAxisType()
getYAxisType
in interface Rebinnable2DHistogramData
public String[] getXAxisLabels()
getXAxisLabels
in interface Rebinnable2DHistogramData
public String[] getYAxisLabels()
getYAxisLabels
in interface Rebinnable2DHistogramData
public String getTitle()
DataSource
getTitle
in interface DataSource
public JASHistStyle getStyle()
HasStyle
getStyle
in interface HasStyle
JASHist1DHistogramStyle
,
JASHist2DHistogramStyle
,
JASHistScatterPlotStyle
public Statistics getStatistics()
getStatistics
in interface HasStatistics
public String toString()
toString
in class Object
public int getNSlices()
HasSlices
getNSlices
in interface HasSlices
public SliceParameters getSliceParameters(int n)
HasSlices
getSliceParameters
in interface HasSlices
n
- The index of the slice
public Rebinnable1DHistogramData getSlice(int n)
HasSlices
getSlice
in interface HasSlices
n
- The index of the slice
public boolean canAddRemoveSlices()
canAddRemoveSlices
in interface HasSlices
public int addSlice(double x, double y, double width, double height, double phi)
HasSlices
addSlice
in interface HasSlices
public void removeSlice(int n)
HasSlices
removeSlice
in interface HasSlices
n
- The index of the slice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |