Class TransferPoint

java.lang.Object
  extended by TransferPoint
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ColorTransferPoint, OpacityTransferPoint

public abstract class TransferPoint
extends java.lang.Object
implements java.io.Serializable

Created by IntelliJ IDEA. User: Administrator Date: 05.12.2004 Time: 13:32:09 To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Constructor Summary
protected TransferPoint(short position, boolean fixed)
          Constructs a point.
 
Method Summary
 short getPosition()
          Returns position of the point.
 boolean isFixed()
          Figures out if point is fixed.
 boolean setPosition(short 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

TransferPoint

protected TransferPoint(short position,
                        boolean fixed)
Constructs a point.

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

setPosition

public boolean setPosition(short 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 short getPosition()
Returns position of the point.

Returns:
Position.