visualize
Class TransferPoint

java.lang.Object
  extended by visualize.TransferPoint
All Implemented Interfaces:
java.lang.Comparable<TransferPoint>

public class TransferPoint
extends java.lang.Object
implements java.lang.Comparable<TransferPoint>

The Class TransferPoint represents a opacity-point that is used in LineDrawPanel.

Version:
1.1
Author:
Fabian Hollaus

Constructor Summary
TransferPoint(int grayValue, int opacity)
          Creates a new TransferPoint object.
 
Method Summary
 int compareTo(TransferPoint transferPoint)
          Compares the gray-values of two TransferPoints objects.
 int getGrayValue()
          Returns the grayValue of the TransferPoint.
 int getOpacity()
          Returns the opacityValue of the TransferPoint.
 void setGrayValue(int grayValue)
          Sets the grayValue of the TransferPoint.
 void setOpacity(int opacity)
          Sets the opacityValue of the TransferPoint.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferPoint

public TransferPoint(int grayValue,
                     int opacity)
Creates a new TransferPoint object.

Parameters:
grayValue - gray-value in integer-form.
opacity - opacity-value in integer-form.
Method Detail

getGrayValue

public int getGrayValue()
Returns the grayValue of the TransferPoint.

Returns:
gray-value in integer form.

getOpacity

public int getOpacity()
Returns the opacityValue of the TransferPoint.

Returns:
gray-value in integer form.

setGrayValue

public void setGrayValue(int grayValue)
Sets the grayValue of the TransferPoint.

Parameters:
grayValue - gray-value in integer form.

setOpacity

public void setOpacity(int opacity)
Sets the opacityValue of the TransferPoint.

Parameters:
grayValue - opacity-value in integer form.

compareTo

public int compareTo(TransferPoint transferPoint)
Compares the gray-values of two TransferPoints objects.

Specified by:
compareTo in interface java.lang.Comparable<TransferPoint>