JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class FacetAbstract

java.lang.Object
  |
  +--com.klg.jclass.chart3d.FacetAbstract
All Implemented Interfaces:
Facet, Serializable
Direct Known Subclasses:
BarFacet, ScatterFacet, SurfaceFacet

public abstract class FacetAbstract
extends Object
implements Facet, Serializable

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.chart3d.Chart3dGridData data
           
protected  com.klg.jclass.chart3d.DrawGrid drawGrid
          Parent draw object.
protected  int[] xPoints
           
protected  int[] yPoints
           
 
Constructor Summary
FacetAbstract(com.klg.jclass.chart3d.DrawGrid drawGrid)
           
 
Method Summary
protected  void fillPointArrays(com.klg.jclass.chart3d.ScreenPoint[] spts, int n)
          Fills the two integer point arrays from a screen point array (so they're ready for input to Graphics routines like fillPolygon).
protected  com.klg.jclass.chart3d.DrawGrid getDrawGrid()
           
protected  com.klg.jclass.chart3d.ScreenPoint getScreenPoint(double x, double y, double z)
          Gets the transformed screen point from data point (x, y, z)
abstract  void processFacet(int x, int y, int edges)
          Abstract routine that renders the facet.
protected  void setDrawGrid(com.klg.jclass.chart3d.DrawGrid drawGrid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xPoints

protected int[] xPoints

yPoints

protected int[] yPoints

drawGrid

protected com.klg.jclass.chart3d.DrawGrid drawGrid
Parent draw object.


data

protected com.klg.jclass.chart3d.Chart3dGridData data
Constructor Detail

FacetAbstract

public FacetAbstract(com.klg.jclass.chart3d.DrawGrid drawGrid)
Method Detail

getDrawGrid

protected com.klg.jclass.chart3d.DrawGrid getDrawGrid()

setDrawGrid

protected void setDrawGrid(com.klg.jclass.chart3d.DrawGrid drawGrid)
Parameters:
drawGrid -

fillPointArrays

protected void fillPointArrays(com.klg.jclass.chart3d.ScreenPoint[] spts,
                               int n)
Fills the two integer point arrays from a screen point array (so they're ready for input to Graphics routines like fillPolygon). Use the same arrays each time (extending them if needed).

Parameters:
spts -
n -

getScreenPoint

protected com.klg.jclass.chart3d.ScreenPoint getScreenPoint(double x,
                                                            double y,
                                                            double z)
Gets the transformed screen point from data point (x, y, z)

Parameters:
x -
y -
z -

processFacet

public abstract void processFacet(int x,
                                  int y,
                                  int edges)
Abstract routine that renders the facet. Each chart type will do this differently.

Specified by:
processFacet in interface Facet
Parameters:
x -
y -
edges -

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