|
||||||||||
| 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 Rebinnable2DHistogramDatapublic double getXMin()
getXMin in interface Rebinnable2DHistogramDatapublic double getXMax()
getXMax in interface Rebinnable2DHistogramDatapublic double getYMin()
getYMin in interface Rebinnable2DHistogramDatapublic double getYMax()
getYMax in interface Rebinnable2DHistogramDatapublic int getXBins()
getXBins in interface Rebinnable2DHistogramDatapublic int getYBins()
getYBins in interface Rebinnable2DHistogramDatapublic boolean isRebinnable()
isRebinnable in interface Rebinnable2DHistogramDatapublic int getXAxisType()
getXAxisType in interface Rebinnable2DHistogramDatapublic int getYAxisType()
getYAxisType in interface Rebinnable2DHistogramDatapublic String[] getXAxisLabels()
getXAxisLabels in interface Rebinnable2DHistogramDatapublic String[] getYAxisLabels()
getYAxisLabels in interface Rebinnable2DHistogramDatapublic String getTitle()
DataSource
getTitle in interface DataSourcepublic JASHistStyle getStyle()
HasStyle
getStyle in interface HasStyleJASHist1DHistogramStyle,
JASHist2DHistogramStyle,
JASHistScatterPlotStylepublic Statistics getStatistics()
getStatistics in interface HasStatisticspublic String toString()
toString in class Objectpublic int getNSlices()
HasSlices
getNSlices in interface HasSlicespublic SliceParameters getSliceParameters(int n)
HasSlices
getSliceParameters in interface HasSlicesn - The index of the slice
public Rebinnable1DHistogramData getSlice(int n)
HasSlices
getSlice in interface HasSlicesn - 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 HasSlicespublic void removeSlice(int n)
HasSlices
removeSlice in interface HasSlicesn - The index of the slice
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||