JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class Draw

java.lang.Object
  |
  +--com.klg.jclass.chart3d.Draw
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DrawGrid, DrawPoint

public abstract class Draw
extends Object
implements Serializable

Abstract class that draws the dataset associated with its dataView parent. Child classes must implement the draw and draw2dPoints methods for the given type of data.

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.chart3d.Chart3dDataView dataView
           
protected  com.klg.jclass.chart3d.Mapping mapping
           
protected  com.klg.jclass.chart3d.ScreenPoint originPoint
           
 
Method Summary
protected abstract  void draw(Graphics gc)
          Draws the graph based on the data.
protected abstract  void draw2dPoints(Graphics gc)
          Draws 2d points based on the data.
 com.klg.jclass.chart3d.Chart3dDataView getDataView()
          Gets the value of the dataView property.
 com.klg.jclass.chart3d.Mapping getMapping()
          Gets the current mapping object.
protected  void renderDropLine(Graphics gc, com.klg.jclass.chart3d.ScreenPoint pt, com.klg.jclass.chart3d.JCLineStyle lineStyle, double x, double y)
          Draws a drop line based from the calculated ScreenPoint to the origin.
protected  void renderPoint(Graphics gc, com.klg.jclass.chart3d.JCSymbolStyle symbolStyle, com.klg.jclass.chart3d.JCLineStyle lineStyle, com.klg.jclass.chart3d.ScreenPoint pt, double x, double y)
          Renders the point with given screen point.
 void setMapping(com.klg.jclass.chart3d.Mapping mapping)
          Sets the mapping object for this draw object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originPoint

protected com.klg.jclass.chart3d.ScreenPoint originPoint

dataView

protected com.klg.jclass.chart3d.Chart3dDataView dataView

mapping

protected com.klg.jclass.chart3d.Mapping mapping
Method Detail

getDataView

public com.klg.jclass.chart3d.Chart3dDataView getDataView()
Gets the value of the dataView property. The dataView property points to the containing Chart3dDataView for this data object


getMapping

public com.klg.jclass.chart3d.Mapping getMapping()
Gets the current mapping object. It must match the type (grid or point) of this draw object.


setMapping

public void setMapping(com.klg.jclass.chart3d.Mapping mapping)
Sets the mapping object for this draw object. It must match the type (grid or point) of this draw object.

Parameters:
mapping -

renderDropLine

protected void renderDropLine(Graphics gc,
                              com.klg.jclass.chart3d.ScreenPoint pt,
                              com.klg.jclass.chart3d.JCLineStyle lineStyle,
                              double x,
                              double y)
Draws a drop line based from the calculated ScreenPoint to the origin.

Parameters:
gc -
pt -
lineStyle -
x -
y -

renderPoint

protected void renderPoint(Graphics gc,
                           com.klg.jclass.chart3d.JCSymbolStyle symbolStyle,
                           com.klg.jclass.chart3d.JCLineStyle lineStyle,
                           com.klg.jclass.chart3d.ScreenPoint pt,
                           double x,
                           double y)
Renders the point with given screen point. If drawing drop lines, decide whether to draw drop lines first or last.

Parameters:
gc -
symbolStyle -
lineStyle -
pt -
x -
y -

draw

protected abstract void draw(Graphics gc)
Draws the graph based on the data.

Parameters:
gc -

draw2dPoints

protected abstract void draw2dPoints(Graphics gc)
Draws 2d points based on the data.

Parameters:
gc -

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