com.alee.extended.colorchooser
Class GradientColorData

java.lang.Object
  extended by com.alee.extended.colorchooser.GradientColorData
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class GradientColorData
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Single color data for GradientData.

Author:
Mikle Garin
See Also:
Serialized Form

Constructor Summary
GradientColorData()
          Constructs GradientColorData with zero location and white color.
GradientColorData(float location, java.awt.Color color)
          Constructs GradientColorData with the specified location and color.
 
Method Summary
 GradientColorData clone()
          Returns cloned GradientColorData.
 boolean equals(java.lang.Object obj)
          Returns whether this GradientColorData is equal to the specified object or not.
 java.awt.Color getColor()
          Returns GradientColorData color.
 float getLocation()
          Returns GradientColorData location.
 void setColor(java.awt.Color color)
          Sets GradientColorData color.
 void setLocation(float location)
          Sets GradientColorData location.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientColorData

public GradientColorData()
Constructs GradientColorData with zero location and white color.


GradientColorData

public GradientColorData(float location,
                         java.awt.Color color)
Constructs GradientColorData with the specified location and color.

Parameters:
location - GradientColorData location
color - GradientColorData color
Method Detail

getColor

public java.awt.Color getColor()
Returns GradientColorData color.

Returns:
GradientColorData color

setColor

public void setColor(java.awt.Color color)
Sets GradientColorData color.

Parameters:
color - new GradientColorData color

getLocation

public float getLocation()
Returns GradientColorData location.

Returns:
GradientColorData location

setLocation

public void setLocation(float location)
Sets GradientColorData location.

Parameters:
location - new GradientColorData location

equals

public boolean equals(java.lang.Object obj)
Returns whether this GradientColorData is equal to the specified object or not.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare with
Returns:
true if this GradientColorData is equal to the specified object, false otherwise

clone

public GradientColorData clone()
Returns cloned GradientColorData.

Overrides:
clone in class java.lang.Object
Returns:
cloned GradientColorData