JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class SortPoint

java.lang.Object
  |
  +--com.klg.jclass.chart3d.SortPoint
All Implemented Interfaces:
Serializable

public class SortPoint
extends Object
implements Serializable

Data structure internal to JClass Chart 3D. Used to sort point data. It store the point, series, and distance to eye for each point.

See Also:
Serialized Form

Field Summary
protected  double distanceToEye
          The distance of this point to the eye.
protected  int point
          Point number in given series.
protected  int series
          The series to which this point belongs.
 
Constructor Summary
SortPoint()
          Default constructor
SortPoint(int series, int point, double distanceToEye)
          Constructor that intializes the series, point, and distanceToEye
 
Method Summary
 double getDistanceToEye()
          Retrieves the distanceToEye for this point.
 int getPoint()
          Retrieves the point number of this point in the given series.
 int getSeries()
          Retrieves the series for this point.
 void setDistanceToEye(double distanceToEye)
          Sets the distanceToEye for this point.
 void setPoint(int point)
          Sets the point number of this point in the given series.
 void setSeries(int series)
          Sets the series for this point.
 String toString()
          Override toString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

series

protected int series
The series to which this point belongs.


point

protected int point
Point number in given series.


distanceToEye

protected double distanceToEye
The distance of this point to the eye.

Constructor Detail

SortPoint

public SortPoint()
Default constructor


SortPoint

public SortPoint(int series,
                 int point,
                 double distanceToEye)
Constructor that intializes the series, point, and distanceToEye

Parameters:
series - The series number for this point
point - The point number for this point
distanceToEye - The distance to the eye for this point
Method Detail

setSeries

public void setSeries(int series)
Sets the series for this point.

Parameters:
series - The series number for this point

getSeries

public int getSeries()
Retrieves the series for this point.

Returns:
The series number for this point

setPoint

public void setPoint(int point)
Sets the point number of this point in the given series.

Parameters:
point - The point number for this point

getPoint

public int getPoint()
Retrieves the point number of this point in the given series.

Returns:
The point number for this point

setDistanceToEye

public void setDistanceToEye(double distanceToEye)
Sets the distanceToEye for this point.

Parameters:
distanceToEye - The distance to the eye for this point

getDistanceToEye

public double getDistanceToEye()
Retrieves the distanceToEye for this point.

Returns:
The distance to the eye for this point

toString

public String toString()
Override toString method

Overrides:
toString in class Object

Copyright © 2004 Quest Software Inc..
All rights reserved.