edu.jhu.tmaj.beans.masks.color
Class HsbRange

java.lang.Object
  extended by edu.jhu.tmaj.beans.masks.color.HsbRange
All Implemented Interfaces:
java.io.Serializable

public final class HsbRange
extends java.lang.Object
implements java.io.Serializable

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.

See Also:
Serialized Form

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

getResetRange

public static HsbRange getResetRange()

setRange

public void setRange(CircleRange hueRange,
                     SimpleRange sRange,
                     SimpleRange bRange)
Sets this range to an absolute value. The previous value is discarded.


setRange

public void setRange(HsbRange range)

ensureRangeContains

public void ensureRangeContains(HsbPixel pixel)
Updates the range to the smallest amount that will encompass the prevoius range, plus the supplied pixel.


inRange

public boolean inRange(HsbPixel hsbPixel)
Returns true if the pixel is in the range defined.


reset

public void reset()
Resets this range; this means nothing will be included.


getMinHue

public int getMinHue()

getMaxHue

public int getMaxHue()

getMinSat

public int getMinSat()

getMaxSat

public int getMaxSat()

getMinBri

public int getMinBri()

getMaxBri

public int getMaxBri()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object