lt.monarch.chart.chart3D.series
Class AbstractSurface3DStrategy

java.lang.Object
  extended by lt.monarch.chart.chart3D.series.AbstractSurface3DStrategy
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DefaultSurface3DStrategy, Surface3DWithFilledHolesStrategy, Surface3DWithHolesStrategy

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

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  java.lang.Double[] colorsValue
           
protected  java.lang.Integer[] columnList
           
protected  int columns
           
protected  MatrixDataModel data
           
protected  double max
           
protected  double min
           
protected  java.util.Hashtable<DataColumnType,MinMaxValues> minMaxValues
           
protected  Point3D[][] points
           
protected  java.lang.Integer[] rowList
           
protected  int rows
           
protected  Polygon3D[] triangles
           
protected  java.util.ArrayList<Polygon3D> wall_fill_polygons
           
protected  java.util.ArrayList<Polygon3D> wall_outline_polygons
           
protected  AxisMapper xMapper
           
protected  AxisMapper yMapper
           
protected  AxisMapper zMapper
           
 
Constructor Summary
Constructor and Description
AbstractSurface3DStrategy()
           
 
Method Summary
Modifier and Type Method and Description
protected  void calculateMinMax(MatrixDataModel data, AxisMapper ymapper)
           
 LegendEntry[] createLegendEntries(Surface3DSeries series, java.lang.String labelFormatPattern)
          Creates an array of legend entries with symbols corresponding the palette.
 void draw(AbstractGraphics g, MatrixDataModel data, Projector projector, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper, PlaneMapper mapper, HotSpotMap hotMap, Style style, Surface3DSeries series)
           
 void drawMarkers(AbstractGraphics g, Projector projector, ArrayDataModel markerData, Style style, Surface3DSeries series)
           
 void drawSolid(AbstractGraphics g, Projector projector, HotSpotMap hotMap, Style style, Surface3DSeries series)
           
protected  double getMatrixData(int row, int column)
          Gets matrix data for the specified row and column
protected  java.util.Hashtable<DataColumnType,MinMaxValues> getMinMaxValues()
          Gets the minMaxValues value
protected  void initMinMaxValues()
          Initializes minimum and maximum values
protected abstract  void pointer()
           
protected  boolean preDraw()
           
protected  Polygon3D projectPolygon(Projector projector, Polygon3D polygon)
           
protected  int quantifyDepth(double pos, double min, double max, int levels)
           
protected abstract  void triangxxx()
           
protected  void updateLegendStyle(Surface3DSeries series)
          Update legend style
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected MatrixDataModel data

xMapper

protected AxisMapper xMapper

yMapper

protected AxisMapper yMapper

zMapper

protected AxisMapper zMapper

points

protected Point3D[][] points

triangles

protected Polygon3D[] triangles

wall_fill_polygons

protected java.util.ArrayList<Polygon3D> wall_fill_polygons

wall_outline_polygons

protected java.util.ArrayList<Polygon3D> wall_outline_polygons

colorsValue

protected java.lang.Double[] colorsValue

rowList

protected java.lang.Integer[] rowList

columnList

protected java.lang.Integer[] columnList

columns

protected int columns

rows

protected int rows

min

protected double min

max

protected double max

minMaxValues

protected java.util.Hashtable<DataColumnType,MinMaxValues> minMaxValues
Constructor Detail

AbstractSurface3DStrategy

public AbstractSurface3DStrategy()
Method Detail

triangxxx

protected abstract void triangxxx()

pointer

protected abstract void pointer()

preDraw

protected boolean preDraw()

draw

public void draw(AbstractGraphics g,
                 MatrixDataModel data,
                 Projector projector,
                 AxisMapper xMapper,
                 AxisMapper yMapper,
                 AxisMapper zMapper,
                 PlaneMapper mapper,
                 HotSpotMap hotMap,
                 Style style,
                 Surface3DSeries series)

quantifyDepth

protected int quantifyDepth(double pos,
                            double min,
                            double max,
                            int levels)

getMatrixData

protected double getMatrixData(int row,
                               int column)
Gets matrix data for the specified row and column

Parameters:
row - specified row
column - specified column
Returns:
double values of the specified row and column

projectPolygon

protected Polygon3D projectPolygon(Projector projector,
                                   Polygon3D polygon)

calculateMinMax

protected void calculateMinMax(MatrixDataModel data,
                               AxisMapper ymapper)

updateLegendStyle

protected void updateLegendStyle(Surface3DSeries series)
Update legend style


createLegendEntries

public LegendEntry[] createLegendEntries(Surface3DSeries series,
                                         java.lang.String labelFormatPattern)
Creates an array of legend entries with symbols corresponding the palette.

Returns:
array of legend entries

getMinMaxValues

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

Returns:
the minMaxValues value

initMinMaxValues

protected void initMinMaxValues()
Initializes minimum and maximum values


drawSolid

public void drawSolid(AbstractGraphics g,
                      Projector projector,
                      HotSpotMap hotMap,
                      Style style,
                      Surface3DSeries series)

drawMarkers

public void drawMarkers(AbstractGraphics g,
                        Projector projector,
                        ArrayDataModel markerData,
                        Style style,
                        Surface3DSeries series)