ColorRangeHsl
Inheritance: java.lang.Object
public class ColorRangeHsl
Hue2Resource has 6 color ranges where you can change HSV parameters. Every range has 4 key points to identify range borders. And it’s ColorRangeHsl
Constructors
Constructor | Description |
---|---|
ColorRangeHsl() | Initializes a new instance of the ColorRangeHsl class. |
ColorRangeHsl(byte[] data) | Initializes a new instance of the ColorRangeHsl class. |
Methods
ColorRangeHsl()
public ColorRangeHsl()
Initializes a new instance of the ColorRangeHsl class.
ColorRangeHsl(byte[] data)
public ColorRangeHsl(byte[] data)
Initializes a new instance of the ColorRangeHsl class.
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] | The color range data. |
create_internalized(short mostLeft, short left, short right, short mostRight)
public static ColorRangeHsl create_internalized(short mostLeft, short left, short right, short mostRight)
Parameters:
Parameter | Type | Description |
---|---|---|
mostLeft | short | |
left | short | |
right | short | |
mostRight | short |
Returns: ColorRangeHsl
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getHue()
public final short getHue()
Gets or sets the hue.
Value: The hue.
Returns: short
getLeftBorder()
public final short getLeftBorder()
Gets or sets the left border.
Value: The left border.
Returns: short
getLightness()
public final short getLightness()
Gets or sets the lightness.
Value: The lightness.
Returns: short
getMostLeftBorder()
public final short getMostLeftBorder()
Gets or sets the most left border.
Value: The most left border.
Returns: short
getMostRightBorder()
public final short getMostRightBorder()
Gets or sets the most right border.
Value: The most right border.
Returns: short
getRangeCoefficient(double hue)
public final double getRangeCoefficient(double hue)
Gets the range Coefficient.
Parameters:
Parameter | Type | Description |
---|---|---|
hue | double | The hue value. |
Returns: double - Saturation range coefficient.
getRightBorder()
public final short getRightBorder()
Gets or sets the right border.
Value: The right border.
Returns: short
getSaturation()
public final short getSaturation()
Gets or sets the saturation.
Value: The saturation.
Returns: short
hashCode()
public native int hashCode()
Returns: int
isHueInBigRange(double hue)
public final boolean isHueInBigRange(double hue)
Determines whether is hue in big range.
Parameters:
Parameter | Type | Description |
---|---|---|
hue | double | The hue value. |
Returns: boolean - true if hue in big range; otherwise, false .
isHueInSmallRange(double hue)
public final boolean isHueInSmallRange(double hue)
Determines whether hue in small range.
Parameters:
Parameter | Type | Description |
---|---|---|
hue | double | The hue value. |
Returns: boolean - true if hue in small range; otherwise, false .
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
save(StreamContainer streamContainer)
public final void save(StreamContainer streamContainer)
Saves data to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
setHue(short value)
public final void setHue(short value)
Gets or sets the hue.
Value: The hue.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setLeftBorder(short value)
public final void setLeftBorder(short value)
Gets or sets the left border.
Value: The left border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setLightness(short value)
public final void setLightness(short value)
Gets or sets the lightness.
Value: The lightness.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setMostLeftBorder(short value)
public final void setMostLeftBorder(short value)
Gets or sets the most left border.
Value: The most left border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setMostRightBorder(short value)
public final void setMostRightBorder(short value)
Gets or sets the most right border.
Value: The most right border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setRightBorder(short value)
public final void setRightBorder(short value)
Gets or sets the right border.
Value: The right border.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setSaturation(short value)
public final void setSaturation(short value)
Gets or sets the saturation.
Value: The saturation.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |