lt.monarch.chart.chart3D.series
Class AbstractLine3DStrategy

java.lang.Object
  extended by lt.monarch.chart.chart3D.series.AbstractLine3DStrategy
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Line3DStrategy, Scatter3DStrategy

public abstract class AbstractLine3DStrategy
extends java.lang.Object
implements java.io.Serializable

Abstract scatter strategy class. It defines which methods the scatter strategies should implement and implements common methods for all strategies in it.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  java.lang.Object baseValue
          Base value of the series
protected  boolean dirty
          True, if dirty, otherwise -false
protected  boolean isConnected
          Shows if the data points are connected and whether they can be drawn as separate primitives
protected  PlaneMapper3D mapper
          Plane mapper
protected  MetaDataModel metaModel
          Meta data model
protected  java.util.Map<DataColumnType,MinMaxValues> minMaxValues
          Min Max values
protected  ArrayDataModel model
          Series data model
protected  PaintMode paintMode
          Paint mode of the series
protected  Point3D planePoint
          Template point for mapping plane
protected  Projector projector
          Point projector
protected  boolean showNullValues
          Boolean which determines if to show null values
protected  Style style
          Style of series
protected  GeneralPoint tempPoint
          Template point for projecting points
protected  AxisMapper xMapper
          X axis mapper
protected  AxisMapper yMapper
          Y axis mapper
protected  AxisMapper zMapper
          Z axis mapper
protected  double zoomMultiplier
          Zoom multiplier
 
Constructor Summary
Constructor and Description
AbstractLine3DStrategy()
           
 
Method Summary
Modifier and Type Method and Description
abstract  void dispose()
          Disposes the object
 void draw(AbstractGraphics g, Projector projector, PlaneMapper3D mapper, HotSpotMap hotMap, boolean showNullValues, Style style, java.lang.Object baseValue, Line3DSeries series)
          Draws the series in the chart area.
protected  void finalize()
           
protected  java.util.Map<DataColumnType,MinMaxValues> getMinMaxValues()
          Gets the minMaxValues value
protected  java.lang.Object getX(int index)
          Gets x value
protected  java.lang.Object getY(int index)
          Gets y value
protected  java.lang.Object getZ(int index)
          Gets y value
protected  Point3D projectPoint(Projector projector, GeneralPoint ptt, Point3D planePoint, double x, double y, double z)
          Projects the point
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xMapper

protected AxisMapper xMapper
X axis mapper


yMapper

protected AxisMapper yMapper
Y axis mapper


zMapper

protected AxisMapper zMapper
Z axis mapper


model

protected ArrayDataModel model
Series data model


metaModel

protected MetaDataModel metaModel
Meta data model


mapper

protected PlaneMapper3D mapper
Plane mapper


style

protected Style style
Style of series


zoomMultiplier

protected double zoomMultiplier
Zoom multiplier


tempPoint

protected GeneralPoint tempPoint
Template point for projecting points


planePoint

protected Point3D planePoint
Template point for mapping plane


baseValue

protected java.lang.Object baseValue
Base value of the series


projector

protected Projector projector
Point projector


paintMode

protected PaintMode paintMode
Paint mode of the series


isConnected

protected boolean isConnected
Shows if the data points are connected and whether they can be drawn as separate primitives


showNullValues

protected boolean showNullValues
Boolean which determines if to show null values


dirty

protected boolean dirty
True, if dirty, otherwise -false


minMaxValues

protected java.util.Map<DataColumnType,MinMaxValues> minMaxValues
Min Max values

Constructor Detail

AbstractLine3DStrategy

public AbstractLine3DStrategy()
Method Detail

draw

public void draw(AbstractGraphics g,
                 Projector projector,
                 PlaneMapper3D mapper,
                 HotSpotMap hotMap,
                 boolean showNullValues,
                 Style style,
                 java.lang.Object baseValue,
                 Line3DSeries series)
Draws the series in the chart area.

Parameters:
g - graphics context
projector - projector instance
mapper - plane mapper
hotMap - hot spot map
showNullValues - boolean value indicating whether to show the null values
style - style object
baseValue - base value
series - scatter series instance

dispose

public abstract void dispose()
Disposes the object


finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

projectPoint

protected Point3D projectPoint(Projector projector,
                               GeneralPoint ptt,
                               Point3D planePoint,
                               double x,
                               double y,
                               double z)
Projects the point

Parameters:
projector - projector
ptt - template point
planePoint - template point to map plane coordinates
x - x coordinate to map
y - y coordinate to map
z - z coordinate to map

getX

protected java.lang.Object getX(int index)
Gets x value

Parameters:
index - index of the data point
Returns:
x value at specified index

getY

protected java.lang.Object getY(int index)
Gets y value

Parameters:
index - index of the data point
Returns:
y value at specified index

getZ

protected java.lang.Object getZ(int index)
Gets y value

Parameters:
index - index of the data point
Returns:
z value at specified index

getMinMaxValues

protected java.util.Map<DataColumnType,MinMaxValues> getMinMaxValues()
Gets the minMaxValues value

Returns:
the minMaxValues value