public class ContourDataSetRenderer extends AbstractDataSetManagement<ContourDataSetRenderer> implements Renderer
| Type | Property and Description |
|---|---|
ObjectProperty<ColorGradient> |
colorGradient
Color gradient (linear) used to encode data point values.
|
BooleanProperty |
computeLocalRange
Indicates if the chart should compute the min/max z-Axis for the local (true) or global (false) visible range
|
ObjectProperty<ContourType> |
contourType
Indicates if the chart should plot contours (true) or color gradient map (false)
|
IntegerProperty |
maxContourSegments |
IntegerProperty |
minHexTileSize |
IntegerProperty |
quantisationLevels |
BooleanProperty |
smooth
Indicates if the chart should smooth colors between data points or render each data point as a rectangle with
uniform color.
|
showInLegendPropertyshowInLegendProperty| Modifier and Type | Field and Description |
|---|---|
protected Rectangle |
gradientRect |
showInLegend| Constructor and Description |
|---|
ContourDataSetRenderer() |
| Modifier and Type | Method and Description |
|---|---|
ObjectProperty<ColorGradient> |
colorGradientProperty()
Color gradient (linear) used to encode data point values.
|
boolean |
computeLocalRange()
Returns the value of the
computeLocalRangeProperty(). |
BooleanProperty |
computeLocalRangeProperty()
Indicates if the chart should compute the min/max z-Axis for the local (true) or global (false) visible range
|
ObjectProperty<ContourType> |
contourTypeProperty()
Indicates if the chart should plot contours (true) or color gradient map (false)
|
static double |
convolution(double[][] pixelMatrix) |
Canvas |
drawLegendSymbol(DataSet dataSet,
int dsIndex,
int width,
int height) |
static double |
erosionConvolution(double[][] pixelMatrix) |
static double |
erosionConvolution2(double[][] pixelMatrix) |
ColorGradient |
getColorGradient()
Returns the value of the
colorGradientProperty(). |
ContourType |
getContourType()
Returns the value of the
contourTypeProperty(). |
int |
getMaxContourSegments() |
int |
getMinHexTileSizeProperty() |
int |
getNumberQuantisationLevels() |
protected ContourDataSetRenderer |
getThis() |
Axis |
getZAxis() |
boolean |
isSmooth()
Returns the value of the
smoothProperty(). |
protected void |
layoutZAxis(Axis zAxis,
de.gsi.chart.renderer.spi.ContourDataSetRenderer.Cache lCache) |
IntegerProperty |
maxContourSegmentsProperty() |
IntegerProperty |
minHexTileSizeProperty() |
IntegerProperty |
quantisationLevelsProperty() |
void |
render(GraphicsContext gc,
Chart chart,
int dataSetOffset,
ObservableList<DataSet> datasets) |
void |
setColorGradient(ColorGradient value)
Sets the value of the
colorGradientProperty(). |
void |
setComputeLocalRange(boolean value)
Sets the value of the
computeLocalRangeProperty(). |
void |
setContourType(ContourType value)
Sets the value of the
contourTypeProperty(). |
ContourDataSetRenderer |
setMaxContourSegments(int nSegments)
suppresses contour segments being drawn that have more than the specified number of sub-segments
|
ContourDataSetRenderer |
setMinHexTileSizeProperty(int minSize) |
ContourDataSetRenderer |
setNumberQuantisationLevels(int nQuantisation) |
void |
setSmooth(boolean value)
Sets the value of the
smoothProperty(). |
void |
shiftZAxisToLeft() |
void |
shiftZAxisToRight() |
BooleanProperty |
smoothProperty()
Indicates if the chart should smooth colors between data points or render each data point as a rectangle with
uniform color.
|
copyMetaData, getAxes, getDataSetCopy, getDatasets, getDatasetsCopy, getDatasetsCopy, getErrorDataSetCopy, getFirstAxis, setShowInLegend, showInLegend, showInLegendPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAxes, getDatasets, getDatasetsCopy, setShowInLegend, showInLegend, showInLegendPropertypublic ObjectProperty<ColorGradient> colorGradientProperty
public BooleanProperty computeLocalRangeProperty
setComputeLocalRange(boolean)public ObjectProperty<ContourType> contourTypeProperty
getContourType(),
setContourType(ContourType)public IntegerProperty maxContourSegmentsProperty
public IntegerProperty minHexTileSizeProperty
public IntegerProperty quantisationLevelsProperty
public BooleanProperty smoothProperty
By default smoothing is disabled.
isSmooth(),
setSmooth(boolean)protected final Rectangle gradientRect
public ObjectProperty<ColorGradient> colorGradientProperty()
public boolean computeLocalRange()
computeLocalRangeProperty().true if the local range calculation is applied, false otherwisepublic BooleanProperty computeLocalRangeProperty()
setComputeLocalRange(boolean)public ObjectProperty<ContourType> contourTypeProperty()
getContourType(),
setContourType(ContourType)public Canvas drawLegendSymbol(DataSet dataSet, int dsIndex, int width, int height)
drawLegendSymbol in interface RendererdataSet - the data set for which the representative icon should be generateddsIndex - index within renderer setwidth - requested width of the returning Canvasheight - requested height of the returning Canvaspublic ColorGradient getColorGradient()
colorGradientProperty().public ContourType getContourType()
contourTypeProperty().public int getMaxContourSegments()
public int getMinHexTileSizeProperty()
public int getNumberQuantisationLevels()
protected ContourDataSetRenderer getThis()
getThis in class AbstractDataSetManagement<ContourDataSetRenderer>public Axis getZAxis()
public boolean isSmooth()
smoothProperty().true if the smoothing should be applied, false otherwiseprotected void layoutZAxis(Axis zAxis, de.gsi.chart.renderer.spi.ContourDataSetRenderer.Cache lCache)
public IntegerProperty maxContourSegmentsProperty()
public IntegerProperty minHexTileSizeProperty()
public IntegerProperty quantisationLevelsProperty()
public void render(GraphicsContext gc, Chart chart, int dataSetOffset, ObservableList<DataSet> datasets)
public void setColorGradient(ColorGradient value)
colorGradientProperty().value - the gradient to be usedpublic void setComputeLocalRange(boolean value)
computeLocalRangeProperty().value - true if the local range calculation is applied, false otherwisepublic void setContourType(ContourType value)
contourTypeProperty().value - if the chart should plot contours (true) or color gradient map (false)public ContourDataSetRenderer setMaxContourSegments(int nSegments)
nSegments - the maximum number of segmentspublic ContourDataSetRenderer setMinHexTileSizeProperty(int minSize)
public ContourDataSetRenderer setNumberQuantisationLevels(int nQuantisation)
public void setSmooth(boolean value)
smoothProperty().value - true to enable smoothingpublic void shiftZAxisToLeft()
public void shiftZAxisToRight()
public BooleanProperty smoothProperty()
By default smoothing is disabled.
isSmooth(),
setSmooth(boolean)public static double convolution(double[][] pixelMatrix)
public static double erosionConvolution(double[][] pixelMatrix)
public static double erosionConvolution2(double[][] pixelMatrix)
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.