|
|||||||||
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.HsbRange
public final class HsbRange
Represents a mutable range of Hsb values that include all values that have been passed to the updateRange method. The range may be set to an absolute value (and discard the old value) by using the setRange() method.
Method Summary | |
---|---|
void |
ensureRangeContains(HsbPixel pixel)
Updates the range to the smallest amount that will encompass the prevoius range, plus the supplied pixel. |
boolean |
equals(java.lang.Object obj)
|
int |
getMaxBri()
|
int |
getMaxHue()
|
int |
getMaxSat()
|
int |
getMinBri()
|
int |
getMinHue()
|
int |
getMinSat()
|
static HsbRange |
getResetRange()
|
boolean |
inRange(HsbPixel hsbPixel)
Returns true if the pixel is in the range defined. |
void |
reset()
Resets this range; this means nothing will be included. |
void |
setRange(CircleRange hueRange,
SimpleRange sRange,
SimpleRange bRange)
Sets this range to an absolute value. |
void |
setRange(HsbRange range)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static HsbRange getResetRange()
public void setRange(CircleRange hueRange, SimpleRange sRange, SimpleRange bRange)
public void setRange(HsbRange range)
public void ensureRangeContains(HsbPixel pixel)
public boolean inRange(HsbPixel hsbPixel)
public void reset()
public int getMinHue()
public int getMaxHue()
public int getMinSat()
public int getMaxSat()
public int getMinBri()
public int getMaxBri()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |