public class PlaneSlicingContext extends CodomainMapContext
1-bit planes
 ranging from bit-plane 0 for the least significant bit to
 bit-plane 7 for the most significant bit. The BIT_* constants
 cannot be modified b/c they have a meaning.| Modifier and Type | Field and Description | 
|---|---|
static int | 
BIT_EIGHT
Identifies the bit-plane 8 i.e. 
 | 
static int | 
BIT_FIVE
Identifies the bit-plane 5 i.e. 
 | 
static int | 
BIT_FOUR
Identifies the bit-plane 4 i.e. 
 | 
static int | 
BIT_ONE
Identifies the bit-plane 1 i.e. 
 | 
static int | 
BIT_SEVEN
Identifies the bit-plane 7 i.e. 
 | 
static int | 
BIT_SIX
Identifies the bit-plane 6 i.e. 
 | 
static int | 
BIT_THREE
Identifies the bit-plane 3 i.e. 
 | 
static int | 
BIT_TWO
Identifies the bit-plane 2 i.e. 
 | 
static int | 
BIT_ZERO
Identifies the bit-plane 0 i.e. 
 | 
intervalEnd, intervalStart| Constructor and Description | 
|---|
PlaneSlicingContext(int planePrevious,
                   int planeSelected,
                   boolean constant)
Creates a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CodomainMapContext | 
copy()
Implemented as specified by superclass. 
 | 
int | 
getLowerLimit()
Returns the constant level for bit-planes < planeSelected w.r.t the
 higher-order bits. 
 | 
int | 
getPlanePrevious()
Returns the value corresponding to the index of the bit-plane ranged just
 before the one selected. 
 | 
int | 
getPlaneSelected()
Returns the value corresponding to the index of the selected bit-plane. 
 | 
int | 
getUpperLimit()
Returns the constant level for bit-planes > planeSelected w.r.t the
 higher-order bits. 
 | 
boolean | 
IsConstant()
Returns the type of bit-planes mapping. 
 | 
void | 
setConstant(boolean b)
Sets the type of mapping. 
 | 
void | 
setLimits(int lowerLimit,
         int upperLimit)
Set the limits. 
 | 
void | 
setLowerLimit(int v)
Sets the value (in [intervalStart, intervalEnd]) used to set the level of
 the bit-plane < bit-plane selected. 
 | 
void | 
setPlanes(int planePrevious,
         int planeSelected)
Sets the value of the selected planes i.e. 
 | 
void | 
setUpperLimit(int v)
Sets the value (in [intervalStart, intervalEnd]) used to set the level of
 the bit-plane > bit-plane selected. 
 | 
equals, setCodomainpublic static final int BIT_ZERO
public static final int BIT_ONE
public static final int BIT_TWO
public static final int BIT_THREE
public static final int BIT_FOUR
public static final int BIT_FIVE
public static final int BIT_SIX
public static final int BIT_SEVEN
public static final int BIT_EIGHT
public PlaneSlicingContext(int planePrevious,
                           int planeSelected,
                           boolean constant)
planePrevious - The value corresponding to the index of the bit-plane ranged
            just before the one selected.planeSelected - The value corresponding to the index of the selected
            bit-plane.constant - Passed false if the bit-planes aren't mapped to
            a specified level true otherwise.public CodomainMapContext copy()
copy in class CodomainMapContextCodomainMapContext.copy()public int getPlanePrevious()
public int getPlaneSelected()
public boolean IsConstant()
false if
 the bit-planes aren't mapped to a specified level true
 otherwise.public int getLowerLimit()
public int getUpperLimit()
public void setLimits(int lowerLimit,
                      int upperLimit)
lowerLimit - The value (in [intervalStart, intervalEnd]) used to set the
            level of the bit-plane < bit-plane selected.upperLimit - The value (in [intervalStart, intervalEnd]) used to set the
            level of the bit-plane > bit-plane selected.public void setLowerLimit(int v)
v - The value to set.public void setUpperLimit(int v)
v - The value to set.public void setPlanes(int planePrevious,
                      int planeSelected)
planePrevious - The plane to set.planeSelected - The plane to set.java.lang.IllegalArgumentException - If the value of the previous is not greater than the value of
             the selected one.public void setConstant(boolean b)
b - The value to set.