jas2.hist
Interface HasSlices
-
- All Known Implementing Classes:
- JAS2DRebinAdaptor, ScatterAdapter, ScatterSliceAdapter, ScatterTreeData, TwoDAdapter, TwoDSliceAdapter
public interface HasSlices
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intaddSlice(double x, double y, double width, double height, double phi)Create a new slice with the specified initial parametersbooleancanAddRemoveSlices()intgetNSlices()Number of slices currently attached to plotRebinnable1DHistogramDatagetSlice(int n)Get the data corresponding to the slice.SliceParametersgetSliceParameters(int n)Get the parameters of a slice.voidremoveSlice(int n)Remove a slice from the source
-
-
-
Method Detail
-
getNSlices
int getNSlices()
Number of slices currently attached to plot
-
getSliceParameters
SliceParameters getSliceParameters(int n)
Get the parameters of a slice. The SliceParameters can subsequently be changed to update the slice.- Parameters:
n- The index of the slice- Returns:
- The Slice parameters of the slice with the specified index
-
getSlice
Rebinnable1DHistogramData getSlice(int n)
Get the data corresponding to the slice. The data will be observable and will notify its observers if the slice changes, or the data from which the slice is derived changes- Parameters:
n- The index of the slice- Returns:
- The data resulting from the slice
-
canAddRemoveSlices
boolean canAddRemoveSlices()
-
addSlice
int addSlice(double x, double y, double width, double height, double phi)Create a new slice with the specified initial parameters- Returns:
- the index of the slice that was added
-
removeSlice
void removeSlice(int n)
Remove a slice from the source- Parameters:
n- The index of the slice
-
-
DataMelt 3.0 © DataMelt by jWork.ORG