TwoColorGradient

Inheritance: java.lang.Object

public class TwoColorGradient

Represents two color gradient.

Constructors

ConstructorDescription
TwoColorGradient(Color color1, Color color2, int gradientStyleType, int variant)

Methods

MethodDescription
equals(Object arg0)
getClass()
getColor1()Gets the first gradient color.
getColor2()Gets the second gradient color.
getGradientStyleType()Gets gradient shading style.
getVariant()Gets the gradient variant.
hashCode()
notify()
notifyAll()
setColor1(Color value)Sets the first gradient color.
setColor2(Color value)Sets the second gradient color.
setGradientStyleType(int value)Sets gradient shading style.
setVariant(int value)Sets the gradient variant.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

TwoColorGradient(Color color1, Color color2, int gradientStyleType, int variant)

public TwoColorGradient(Color color1, Color color2, int gradientStyleType, int variant)

Parameters:

ParameterTypeDescription
color1Color
color2Color
gradientStyleTypeintGradientStyleType.
variantint

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

getColor1()

public Color getColor1()

Gets the first gradient color.

Returns: Color

getColor2()

public Color getColor2()

Gets the second gradient color.

Returns: Color

getGradientStyleType()

public int getGradientStyleType()

Gets gradient shading style.

See GradientStyleType.

Returns: int

getVariant()

public int getVariant()

Gets the gradient variant.

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setColor1(Color value)

public void setColor1(Color value)

Sets the first gradient color.

Parameters:

ParameterTypeDescription
valueColor

setColor2(Color value)

public void setColor2(Color value)

Sets the second gradient color.

Parameters:

ParameterTypeDescription
valueColor

setGradientStyleType(int value)

public void setGradientStyleType(int value)

Sets gradient shading style.

See GradientStyleType.

Parameters:

ParameterTypeDescription
valueint

setVariant(int value)

public void setVariant(int value)

Sets the gradient variant.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int