jas.hist
Interface HasSlices

All Known Implementing Classes:
TwoDAdapter, TwoDSliceAdapter, JAS2DRebinAdaptor

public interface HasSlices


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.
 void removeSlice(int n)
          Remove a slice from the source
 

Method Detail

getNSlices

public int getNSlices()
Number of slices currently attached to plot

getSliceParameters

public 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

public 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

public boolean canAddRemoveSlices()

addSlice

public 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

public void removeSlice(int n)
Remove a slice from the source
Parameters:
n - The index of the slice