|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.beans.masks.color.SimpleRange
public final class SimpleRange
Represents a range of values no smaller than MIN, and no larger than MAX. If the range includes nothing, the range is said to be RESET.
Method Summary | |
---|---|
void |
ensureRangeContains(int value)
Expands this range if necessary to include the supplied value. |
boolean |
equals(java.lang.Object obj)
|
static SimpleRange |
getDefinedRange(int min,
int max)
Gets a defined (non-reset) range. |
int |
getMax()
|
int |
getMin()
|
static SimpleRange |
getResetRange()
Gets a reset range. |
int |
hashCode()
|
boolean |
inRange(int value)
Returns true if the value is inside this range. |
boolean |
isReset()
|
void |
reset()
Resets this range; a reset range includes NO values. |
void |
setRange(SimpleRange range)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static SimpleRange getDefinedRange(int min, int max)
public static SimpleRange getResetRange()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int getMax()
public int getMin()
public void setRange(SimpleRange range)
public void ensureRangeContains(int value)
public void reset()
public boolean isReset()
public boolean inRange(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |