|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<Tags>
lt.monarch.chart.AbstractChartSeries<SurfacePaintTags,Projector2D>
lt.monarch.chart.chart2D.series.SurfaceSeries
public class SurfaceSeries extends AbstractChartSeries<SurfacePaintTags,Projector2D>
Displays data a 2D image, where each pixel color depends on a corresponding cell in a 2D matrix of double values. The null values in the data model won't be interpolated, but regarded as empty points. However, if some data values are missing and you wish to interpolate them, set Double.NaN to data model and enable interpolation.

| Modifier and Type | Field and Description |
|---|---|
LegendEntry[] |
entries
|
protected PlaneMapper |
mapper
mapper, used to map output to a plane in a n-dimensional space |
protected MatrixDataModel |
model
Chart data model |
protected java.awt.Color[] |
palette
Color fill palette |
| Fields inherited from class lt.monarch.chart.AbstractChartSeries |
|---|
metaModel, modelValidator, seriesName, seriesTransform, showLegend, showNullValues, symbol, xMapper, yMapper, zMapper |
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper)
Constructs a new DensityMap object |
SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper,
AxisMapper zMapper)
Constructs a new DensityMap object. |
SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper,
AxisMapper zMapper,
boolean fixedColorPalette)
Constructs a new DensityMap object. |
SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper,
boolean fixedColorPalette)
Constructs a new DensityMap object |
| Modifier and Type | Method and Description |
|---|---|
LegendEntry[] |
createLegendEntries()
Creates an array of legend entries with symbols corresponding the palette. |
LegendEntry[] |
createLegendEntries(int legendEntriesCount)
Creates an array of legend entries with symbols corresponding the palette. |
LegendEntry[] |
createLegendEntries(int legendEntriesCount,
java.lang.String pattern)
Creates an array of legend entries with symbols corresponding the palette. |
LegendEntry[] |
createLegendEntries(java.lang.String pattern)
Creates an array of legend entries with symbols corresponding the palette. |
void |
draw(AbstractGraphics g)
Paints the density map in the specified Graphics context. |
java.awt.Color[] |
getColorPalette()
Return series fill palette |
java.lang.Object |
getMaxValue(DataColumnType valType)
Note: internal use only! Gets maximum value that is used by series to fit into the chart |
java.lang.Object |
getMinValue(DataColumnType valType)
Note: internal use only! Gets minimum value that is used by series to fit into the chart |
java.awt.Color[] |
getPaletteCopy()
|
SurfacePaintMode |
getSurfacePaintMode()
Returns surface drawing mode. |
protected void |
handleDataModelChangeEvent(DataModelChangeEvent ev)
Handles data model change event. |
boolean |
isFixedColorPalette()
Gets if the color palette is according to the axis (true) or to the data (false-meaning not fixed) |
boolean |
isInterpolationEnabled()
Is interpolation enabled |
void |
setAxis(Axis xAxis,
Axis yAxis)
Sets axis for the DensityMap. |
void |
setAxis(AxisMapper xMapper,
AxisMapper yMapper)
Sets axis mappers for the SurfaceSeries. |
void |
setColorPalette(java.awt.Color[] palette)
Sets a image palette. |
void |
setColorPalette(ColorPalette palette,
int levelCount)
Sets a image palette. |
void |
setInterpolationEnabled(boolean enable)
Sets matrix interpolation for null values |
void |
setSurfacePaintMode(SurfacePaintMode mode)
Sets surface drawing mode (DRAW_DEFAULT or DRAW_POLYGON_MAP). |
protected void |
updateLegendStyle()
Update legend style |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface lt.monarch.chart.engine.ChartObject |
|---|
dispose, getChart, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart |
| Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity |
|---|
getParent, getStyle |
| Field Detail |
|---|
protected final PlaneMapper mapper
protected MatrixDataModel model
protected java.awt.Color[] palette
public LegendEntry[] entries
| Constructor Detail |
|---|
public SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper,
AxisMapper zMapper,
boolean fixedColorPalette)
model - data modelmapper - mapper, used to map output to a plane in a n-dimensional spacezMapper - axis mapper for z valuesfixedColorPalette - is the color palette fixed to z axis (true), or to the data (false)
If you set it to true, the z axis will be considered as from 0 to 1.
public SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper,
boolean fixedColorPalette)
model - matrix data modelmapper - mapper, used to map output to a plane in a n-dimensional spacefixedColorPalette - is the color palette fixed to z axis (true), or to the data (false).
If you set it to true, the z axis will be considered as from 0 to 1.
public SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper,
AxisMapper zMapper)
model - data modelmapper - mapper, used to map output to a plane in a n-dimensional spacezMapper - axis mapper for z values
public SurfaceSeries(MatrixDataModel model,
PlaneMapper mapper)
model - matrix data modelmapper - mapper, used to map output to a plane in a n-dimensional space| Method Detail |
|---|
public java.awt.Color[] getPaletteCopy()
public java.awt.Color[] getColorPalette()
public void setColorPalette(java.awt.Color[] palette)
palette - fill palette
public void setColorPalette(ColorPalette palette,
int levelCount)
palette - fill palettelevelCount - level count in the paletteprotected void updateLegendStyle()
public LegendEntry[] createLegendEntries()
createLegendEntries in interface ChartSeriescreateLegendEntries in class AbstractChartSeries<SurfacePaintTags,Projector2D>public LegendEntry[] createLegendEntries(int legendEntriesCount)
legendEntriesCount - number of legend entries
public LegendEntry[] createLegendEntries(int legendEntriesCount,
java.lang.String pattern)
legendEntriesCount - number of legend entriespattern - The number format patternpublic LegendEntry[] createLegendEntries(java.lang.String pattern)
pattern - The number format pattern
public void setAxis(AxisMapper xMapper,
AxisMapper yMapper)
xMapper - x axis mapperyMapper - y axis mapper
public void setAxis(Axis xAxis,
Axis yAxis)
xAxis - xyAxis - yprotected void handleDataModelChangeEvent(DataModelChangeEvent ev)
AbstractChartSeriesDataModelChangeEvent is received.
Calls repaint() method.
handleDataModelChangeEvent in class AbstractChartSeries<SurfacePaintTags,Projector2D>ev - the chart data model change eventDataModelChangeEventpublic void draw(AbstractGraphics g)
draw in interface ChartObjectdraw in class AbstractChartSeries<SurfacePaintTags,Projector2D>g - the Graphics context in which to paint density mappublic void setSurfacePaintMode(SurfacePaintMode mode)
mode - Surface drawing mode.public SurfacePaintMode getSurfacePaintMode()
public boolean isFixedColorPalette()
public void setInterpolationEnabled(boolean enable)
enable - enable interpolationpublic boolean isInterpolationEnabled()
public java.lang.Object getMinValue(DataColumnType valType)
AbstractChartSeries
getMinValue in class AbstractChartSeries<SurfacePaintTags,Projector2D>valType - data value columnpublic java.lang.Object getMaxValue(DataColumnType valType)
AbstractChartSeries
getMaxValue in class AbstractChartSeries<SurfacePaintTags,Projector2D>valType - data value column
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||