JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class ScreenPoint

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

public class ScreenPoint
extends Object
implements Serializable

Data structure internal to JClass Chart 3D. Used to represent the pixel values and related information of a data point.

See Also:
Serialized Form

Field Summary
protected  boolean drawn
          Has point been drawn?
protected  boolean hidden
          Is point hidden?
protected  boolean holeValue
          Does this point correspond to a hole value in the data?
protected  int xPixel
          The X pixel value.
protected  int yPixel
          The Y pixel value.
 
Constructor Summary
ScreenPoint()
          Default constructor.
ScreenPoint(int xPixel, int yPixel)
          Constructor which specifies the x an y pixel values
 
Method Summary
 int getXPixel()
          Retrieves the x pixel value for this point.
 int getYPixel()
          Retrieves the y pixel value for this point.
 boolean isDrawn()
          Has this point/facet has already been drawn?
 boolean isHidden()
          Is this point is hidden?
 boolean isHoleValue()
          Does this point corresponds to a hole value?
 void reset()
          Resets this point to default values.
 void setDrawn(boolean drawn)
          Sets whether this point/facet has already been drawn.
 void setHidden(boolean hidden)
          Sets whether this point is hidden or not.
 void setHoleValue(boolean holeValue)
          Sets whether this point corresponds to a hole value or not.
 void setXPixel(int xPixel)
          Sets the x pixel value for this point.
 void setYPixel(int yPixel)
          Sets the y pixel value 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

xPixel

protected int xPixel
The X pixel value.


yPixel

protected int yPixel
The Y pixel value.


hidden

protected boolean hidden
Is point hidden?


holeValue

protected boolean holeValue
Does this point correspond to a hole value in the data?


drawn

protected boolean drawn
Has point been drawn?

Constructor Detail

ScreenPoint

public ScreenPoint()
Default constructor. Values at their default.


ScreenPoint

public ScreenPoint(int xPixel,
                   int yPixel)
Constructor which specifies the x an y pixel values

Parameters:
xPixel - The x pixel value
yPixel - The y pixel value
Method Detail

reset

public void reset()
Resets this point to default values.


setXPixel

public void setXPixel(int xPixel)
Sets the x pixel value for this point.

Parameters:
xPixel - The x pixel value for this point

getXPixel

public int getXPixel()
Retrieves the x pixel value for this point.

Returns:
The x pixel value for this point

setYPixel

public void setYPixel(int yPixel)
Sets the y pixel value for this point.

Parameters:
yPixel - The y pixel value for this point

getYPixel

public int getYPixel()
Retrieves the y pixel value for this point.

Returns:
The y pixel value for this point

setHidden

public void setHidden(boolean hidden)
Sets whether this point is hidden or not.

Parameters:
hidden - Is this point hidden?

isHidden

public boolean isHidden()
Is this point is hidden?

Returns:
Whether this point is hidden or not

setHoleValue

public void setHoleValue(boolean holeValue)
Sets whether this point corresponds to a hole value or not.

Parameters:
holeValue - Is this point a hole value?

isHoleValue

public boolean isHoleValue()
Does this point corresponds to a hole value?

Returns:
Whether this point is a hole value or not

setDrawn

public void setDrawn(boolean drawn)
Sets whether this point/facet has already been drawn.

Parameters:
drawn - Has this point been drawn?

isDrawn

public boolean isDrawn()
Has this point/facet has already been drawn?

Returns:
Whether this point has been drawn or not

toString

public String toString()
Override toString method

Overrides:
toString in class Object

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