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

ConstructorDescription
ColorRangeHsl()Initializes a new instance of the ColorRangeHsl class.
ColorRangeHsl(byte[] data)Initializes a new instance of the ColorRangeHsl class.

Methods

MethodDescription
create_internalized(short mostLeft, short left, short right, short mostRight)
equals(Object arg0)
getClass()
getHue()Gets or sets the hue.
getLeftBorder()Gets or sets the left border.
getLightness()Gets or sets the lightness.
getMostLeftBorder()Gets or sets the most left border.
getMostRightBorder()Gets or sets the most right border.
getRangeCoefficient(double hue)Gets the range Coefficient.
getRightBorder()Gets or sets the right border.
getSaturation()Gets or sets the saturation.
hashCode()
isHueInBigRange(double hue)Determines whether is hue in big range.
isHueInSmallRange(double hue)Determines whether hue in small range.
notify()
notifyAll()
save(StreamContainer streamContainer)Saves data to the specified stream container.
setHue(short value)Gets or sets the hue.
setLeftBorder(short value)Gets or sets the left border.
setLightness(short value)Gets or sets the lightness.
setMostLeftBorder(short value)Gets or sets the most left border.
setMostRightBorder(short value)Gets or sets the most right border.
setRightBorder(short value)Gets or sets the right border.
setSaturation(short value)Gets or sets the saturation.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

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:

ParameterTypeDescription
databyte[]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:

ParameterTypeDescription
mostLeftshort
leftshort
rightshort
mostRightshort

Returns: ColorRangeHsl

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
huedoubleThe 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:

ParameterTypeDescription
huedoubleThe 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:

ParameterTypeDescription
huedoubleThe 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:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.

setHue(short value)

public final void setHue(short value)

Gets or sets the hue.

Value: The hue.

Parameters:

ParameterTypeDescription
valueshort

setLeftBorder(short value)

public final void setLeftBorder(short value)

Gets or sets the left border.

Value: The left border.

Parameters:

ParameterTypeDescription
valueshort

setLightness(short value)

public final void setLightness(short value)

Gets or sets the lightness.

Value: The lightness.

Parameters:

ParameterTypeDescription
valueshort

setMostLeftBorder(short value)

public final void setMostLeftBorder(short value)

Gets or sets the most left border.

Value: The most left border.

Parameters:

ParameterTypeDescription
valueshort

setMostRightBorder(short value)

public final void setMostRightBorder(short value)

Gets or sets the most right border.

Value: The most right border.

Parameters:

ParameterTypeDescription
valueshort

setRightBorder(short value)

public final void setRightBorder(short value)

Gets or sets the right border.

Value: The right border.

Parameters:

ParameterTypeDescription
valueshort

setSaturation(short value)

public final void setSaturation(short value)

Gets or sets the saturation.

Value: The saturation.

Parameters:

ParameterTypeDescription
valueshort

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int