anl.aida.data
Class Slice

java.lang.Object
  extended by anl.aida.data.Slice

public class Slice
extends java.lang.Object

Describes a slice along 4 dimensions. Not all the ranges need to be set.

Version:
$Revision$ $Date$

Field Summary
private  Range layerRange
           
private  Range timeRange
           
private  Range xRange
           
private  Range yRange
           
 
Constructor Summary
Slice()
           
 
Method Summary
 Range getLayerRange()
          Gets the range of slice along the layer dimension.
 Range getTimeRange()
          Gets the range of slice along the time dimension.
 Range getXRange()
          Gets the range of slice along the x dimension.
 Range getYRange()
          Gets the range of slice along the y dimension.
 void setLayerRange(int origin, int extent)
          Sets the layer range of this Slice.
 void setLayerRange(Range range)
          Sets the layer range of this Slice.
 void setTimeRange(int origin, int extent)
          Sets the time range of this Slice.
 void setTimeRange(Range range)
          Sets the time range of this Slice.
 void setXRange(int origin, int extent)
          Sets the x range of this Slice.
 void setXRange(Range range)
          Sets the x range of this Slice.
 void setYRange(int origin, int extent)
          Sets the y range of this Slice.
 void setYRange(Range range)
          Sets the y range of this Slice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeRange

private Range timeRange

layerRange

private Range layerRange

xRange

private Range xRange

yRange

private Range yRange
Constructor Detail

Slice

public Slice()
Method Detail

setTimeRange

public void setTimeRange(int origin,
                         int extent)
Sets the time range of this Slice.

Parameters:
origin - the origin of the time range
extent - the extent of the time range

setTimeRange

public void setTimeRange(Range range)
Sets the time range of this Slice.

Parameters:
range - the time range

setLayerRange

public void setLayerRange(int origin,
                          int extent)
Sets the layer range of this Slice.

Parameters:
origin - the origin of the layer range
extent - the extent of the layer range

setLayerRange

public void setLayerRange(Range range)
Sets the layer range of this Slice.

Parameters:
range - the layer range

setXRange

public void setXRange(int origin,
                      int extent)
Sets the x range of this Slice.

Parameters:
origin - the origin of the x range
extent - the extent of the x range

setXRange

public void setXRange(Range range)
Sets the x range of this Slice.

Parameters:
range - the x range

setYRange

public void setYRange(Range range)
Sets the y range of this Slice.

Parameters:
range - the y range

setYRange

public void setYRange(int origin,
                      int extent)
Sets the y range of this Slice.

Parameters:
origin - the origin of the y range
extent - the extent of the y range

getLayerRange

public Range getLayerRange()
Gets the range of slice along the layer dimension.

Returns:
the range of slice along the layer dimension. May be null.

getTimeRange

public Range getTimeRange()
Gets the range of slice along the time dimension.

Returns:
the range of slice along the time dimension. May be null.

getXRange

public Range getXRange()
Gets the range of slice along the x dimension.

Returns:
the range of slice along the x dimension. May be null.

getYRange

public Range getYRange()
Gets the range of slice along the y dimension.

Returns:
the range of slice along the y dimension. May be null.