jas.hist
Interface HasSlices

All Known Implementing Classes:
ScatterAdapter, ScatterSliceAdapter, TwoDAdapter, TwoDSliceAdapter

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

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


Copyright © 2000-2009 FreeHEP. All Rights Reserved.