lt.monarch.chart.chart2D.series
Class ContourStrategy<ChartProjector extends Projector>

java.lang.Object
  extended by lt.monarch.chart.chart2D.series.ContourStrategy<ChartProjector>
All Implemented Interfaces:
java.io.Serializable

public class ContourStrategy<ChartProjector extends Projector>
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
protected static class ContourStrategy.Line2D
           
 
Field Summary
Modifier and Type Field and Description
protected  int columns
           
protected  java.util.ArrayList<Point3D> dataPoints
           
protected  MetaDataModel metaModel
           
protected  java.util.Map<DataColumnType,MinMaxValues> minMaxValues
           
protected  Point3D[][] points
           
protected  int rows
           
protected  java.util.ArrayList<lt.monarch.chart.chart2D.series.ContourStrategy.Triangle> triangles
           
protected  AxisMapper xMapper
           
protected  AxisMapper yMapper
           
protected  AxisMapper zMapper
           
 
Constructor Summary
Constructor and Description
ContourStrategy()
           
 
Method Summary
Modifier and Type Method and Description
protected  boolean circumcircle(double xp, double yp, double x1, double y1, double x2, double y2, double x3, double y3)
          Return TRUE if a point (xp,yp) is inside the circumcircle made up of the points (x1,y1), (x2,y2), (x3,y3) The circumcircle center is returned in (xc,yc) and the radius r NOTE: A point on the edge is inside the circumcircle
 LegendEntry[] createLegendEntries(ContourSeries series, int entriesCount)
          Creates an array of legend entries with symbols corresponding the palette.
 LegendEntry[] createLegendEntries(ContourSeries series, int entriesCount, int legendEntriesCount)
          Creates an array of legend entries with symbols corresponding the palette.
 LegendEntry[] createLegendEntries(ContourSeries series, int entriesCount, int legendEntriesCount, java.lang.String pattern)
          Creates an array of legend entries with symbols corresponding the palette.
 LegendEntry[] createLegendEntries(ContourSeries series, int entriesCount, java.lang.String pattern)
          Creates an array of legend entries with symbols corresponding the palette.
 void dispose()
           
 void draw(AbstractGraphics g, Projector projector, PlaneMapper mapper, HotSpotMap hotMap, Style style, ContourSeries series)
           
 java.util.Locale getLocale()
          Return locale of charts
 double getMax()
          Gets maximum value
 double getMin()
          Gets minimum value
protected  java.util.Map<DataColumnType,MinMaxValues> getMinMaxValues()
          Gets the minMaxValues value
 double getRxmax()
           
 double getRxmin()
           
 double getRymax()
           
 double getRymin()
           
 void preprocesing(MatrixDataModel model, AxisMapper zMapper)
           
 void setLocale(java.util.Locale locale)
          Set locale of chart
 void setRxmax(double rxmax)
           
 void setRxmin(double rxmin)
           
 void setRymax(double rymax)
           
 void setRymin(double rymin)
           
protected  void updateLegendStyle(ContourSeries series)
          Update legend style
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaModel

protected MetaDataModel metaModel

xMapper

protected AxisMapper xMapper

yMapper

protected AxisMapper yMapper

zMapper

protected AxisMapper zMapper

points

protected Point3D[][] points

dataPoints

protected java.util.ArrayList<Point3D> dataPoints

triangles

protected java.util.ArrayList<lt.monarch.chart.chart2D.series.ContourStrategy.Triangle> triangles

minMaxValues

protected java.util.Map<DataColumnType,MinMaxValues> minMaxValues

rows

protected int rows

columns

protected int columns
Constructor Detail

ContourStrategy

public ContourStrategy()
Method Detail

preprocesing

public void preprocesing(MatrixDataModel model,
                         AxisMapper zMapper)

draw

public void draw(AbstractGraphics g,
                 Projector projector,
                 PlaneMapper mapper,
                 HotSpotMap hotMap,
                 Style style,
                 ContourSeries series)

circumcircle

protected boolean circumcircle(double xp,
                               double yp,
                               double x1,
                               double y1,
                               double x2,
                               double y2,
                               double x3,
                               double y3)
Return TRUE if a point (xp,yp) is inside the circumcircle made up of the points (x1,y1), (x2,y2), (x3,y3) The circumcircle center is returned in (xc,yc) and the radius r NOTE: A point on the edge is inside the circumcircle


dispose

public void dispose()

createLegendEntries

public LegendEntry[] createLegendEntries(ContourSeries series,
                                         int entriesCount,
                                         int legendEntriesCount)
Creates an array of legend entries with symbols corresponding the palette.

Parameters:
legendEntriesCount - number of legend entries
Returns:
array of legend entries

createLegendEntries

public LegendEntry[] createLegendEntries(ContourSeries series,
                                         int entriesCount,
                                         int legendEntriesCount,
                                         java.lang.String pattern)
Creates an array of legend entries with symbols corresponding the palette.

Parameters:
legendEntriesCount - number of legend entries
pattern - The number format pattern
Returns:
array of legend entries

createLegendEntries

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

Parameters:
pattern - The number format pattern
Returns:
array of legend entries

updateLegendStyle

protected void updateLegendStyle(ContourSeries series)
Update legend style


createLegendEntries

public LegendEntry[] createLegendEntries(ContourSeries series,
                                         int entriesCount)
Creates an array of legend entries with symbols corresponding the palette.

Returns:
array of legend entries

getLocale

public java.util.Locale getLocale()
Return locale of charts

Returns:
the locale

setLocale

public void setLocale(java.util.Locale locale)
Set locale of chart

Parameters:
locale - the locale to set

getMin

public double getMin()
Gets minimum value

Returns:

getMax

public double getMax()
Gets maximum value

Returns:

getMinMaxValues

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

Returns:
the minMaxValues value

getRxmax

public double getRxmax()
Returns:
the rxmax

setRxmax

public void setRxmax(double rxmax)
Parameters:
rxmax - the rxmax to set

getRymax

public double getRymax()
Returns:
the rymax

setRymax

public void setRymax(double rymax)
Parameters:
rymax - the rymax to set

getRxmin

public double getRxmin()
Returns:
the rxmin

setRxmin

public void setRxmin(double rxmin)
Parameters:
rxmin - the rxmin to set

getRymin

public double getRymin()
Returns:
the rymin

setRymin

public void setRymin(double rymin)
Parameters:
rymin - the rymin to set