Class ColorTransferPoint

java.lang.Object
  extended by ColorTransferPoint
All Implemented Interfaces:
java.io.Serializable

public class ColorTransferPoint
extends java.lang.Object
implements java.io.Serializable

Created by IntelliJ IDEA. User: Administrator Date: 11.01.2005 Time: 19:11:46 To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Constructor Summary
protected ColorTransferPoint(java.awt.Color color, float position, boolean fixed)
          Constructs a color point information.
 
Method Summary
 java.awt.Color getColor()
          Returns the color of the point.
 float getPosition()
          Returns position of the point.
 boolean isFixed()
          Figures out if point is fixed.
 void setColor(java.awt.Color color)
          Sets the color of the point.
 boolean setPosition(float position)
          Sets the position of the point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorTransferPoint

protected ColorTransferPoint(java.awt.Color color,
                             float position,
                             boolean fixed)
Constructs a color point information.

Parameters:
color - Color associated with point.
position - Initial position of the point.
fixed - Flag indicating if the point is movable.
Method Detail

setPosition

public boolean setPosition(float position)
Sets the position of the point.

Parameters:
position - New position.
Returns:
true on success.

isFixed

public boolean isFixed()
Figures out if point is fixed.

Returns:
true if point is fixed (unmovable).

getPosition

public float getPosition()
Returns position of the point.

Returns:
Position.

setColor

public void setColor(java.awt.Color color)
Sets the color of the point.

Parameters:
color - New color.

getColor

public java.awt.Color getColor()
Returns the color of the point.

Returns:
Color.