Package de.gsi.chart.renderer.spi
Class AbstractContourDataSetRendererParameter<R extends AbstractContourDataSetRendererParameter<R>>
- java.lang.Object
-
- de.gsi.chart.renderer.spi.AbstractDataSetManagement<R>
-
- de.gsi.chart.renderer.spi.AbstractPointReductionManagment<R>
-
- de.gsi.chart.renderer.spi.AbstractContourDataSetRendererParameter<R>
-
- All Implemented Interfaces:
Renderer
- Direct Known Subclasses:
ContourDataSetRenderer
public abstract class AbstractContourDataSetRendererParameter<R extends AbstractContourDataSetRendererParameter<R>> extends AbstractPointReductionManagment<R>
-
-
Field Summary
-
Fields inherited from class de.gsi.chart.renderer.spi.AbstractDataSetManagement
showInLegend
-
-
Constructor Summary
Constructors Constructor Description AbstractContourDataSetRendererParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.BooleanProperty
altImplementationProperty()
Property to track internal alternate implementation.javafx.beans.property.ObjectProperty<ColorGradient>
colorGradientProperty()
Color gradient (linear) used to encode data point values.boolean
computeLocalRange()
Returns the value of thecomputeLocalRangeProperty()
.javafx.beans.property.BooleanProperty
computeLocalRangeProperty()
Indicates if the chart should compute the min/max z-Axis for the local (true) or global (false) visible rangejavafx.beans.property.ObjectProperty<ContourType>
contourTypeProperty()
Indicates if the chart should plot contours (true) or color gradient map (false)ColorGradient
getColorGradient()
Returns the value of thecolorGradientProperty()
.ContourType
getContourType()
Returns the value of thecontourTypeProperty()
.int
getMaxContourSegments()
int
getMinHexTileSizeProperty()
int
getNumberQuantisationLevels()
int
getReductionFactorX()
int
getReductionFactorY()
ReductionType
getReductionType()
boolean
isAltImplementation()
This is used to compare different implementation and to potentially fall-back to an older reference implementationboolean
isSmooth()
Returns the value of thesmoothProperty()
.javafx.beans.property.IntegerProperty
maxContourSegmentsProperty()
javafx.beans.property.IntegerProperty
minHexTileSizeProperty()
javafx.beans.property.IntegerProperty
quantisationLevelsProperty()
javafx.beans.property.IntegerProperty
reductionFactorXProperty()
javafx.beans.property.IntegerProperty
reductionFactorYProperty()
javafx.beans.property.ObjectProperty<ReductionType>
reductionTypeProperty()
void
setAltImplementation(boolean state)
This is used to compare different implementation and to potentially fall-back to an older reference implementationvoid
setColorGradient(ColorGradient value)
Sets the value of thecolorGradientProperty()
.void
setComputeLocalRange(boolean value)
Sets the value of thecomputeLocalRangeProperty()
.void
setContourType(ContourType value)
Sets the value of thecontourTypeProperty()
.void
setMaxContourSegments(int nSegments)
suppresses contour segments being drawn that have more than the specified number of sub-segmentsvoid
setMinHexTileSizeProperty(int minSize)
void
setNumberQuantisationLevels(int nQuantisation)
void
setReductionFactorX(int factor)
void
setReductionFactorY(int factor)
void
setReductionType(ReductionType value)
void
setSmooth(boolean value)
Sets the value of thesmoothProperty()
.javafx.beans.property.BooleanProperty
smoothProperty()
Indicates if the chart should smooth colors between data points or render each data point as a rectangle with uniform color.-
Methods inherited from class de.gsi.chart.renderer.spi.AbstractPointReductionManagment
actualPointReductionProperty, assumeSortedDataProperty, getMinRequiredReductionSize, isActualReducePoints, isAssumeSortedData, isParallelImplementation, isReducePoints, minRequiredReductionSizeProperty, parallelImplementationProperty, pointReductionProperty, setAssumeSortedData, setMinRequiredReductionSize, setParallelImplementation, setPointReduction
-
Methods inherited from class de.gsi.chart.renderer.spi.AbstractDataSetManagement
getAxes, getDatasets, getDatasetsCopy, getDatasetsCopy, getFirstAxis, getFirstAxis, getThis, setShowInLegend, showInLegend, showInLegendProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.gsi.chart.renderer.Renderer
drawLegendSymbol, render
-
-
-
-
Method Detail
-
altImplementationProperty
public javafx.beans.property.BooleanProperty altImplementationProperty()
Property to track internal alternate implementation. This is used to compare different implementation and to potentially fall-back to an older reference implementation- Returns:
- altImplementation property
-
colorGradientProperty
public javafx.beans.property.ObjectProperty<ColorGradient> colorGradientProperty()
Color gradient (linear) used to encode data point values.- Returns:
- gradient property
-
computeLocalRange
public boolean computeLocalRange()
Returns the value of thecomputeLocalRangeProperty()
.- Returns:
true
if the local range calculation is applied,false
otherwise
-
computeLocalRangeProperty
public javafx.beans.property.BooleanProperty computeLocalRangeProperty()
Indicates if the chart should compute the min/max z-Axis for the local (true) or global (false) visible range- Returns:
- computeLocalRange property
-
contourTypeProperty
public javafx.beans.property.ObjectProperty<ContourType> contourTypeProperty()
Indicates if the chart should plot contours (true) or color gradient map (false)- Returns:
- plotContourProperty property
-
getColorGradient
public ColorGradient getColorGradient()
Returns the value of thecolorGradientProperty()
.- Returns:
- the color gradient used for encoding data values
-
getContourType
public ContourType getContourType()
Returns the value of thecontourTypeProperty()
.- Returns:
- if the chart should plot contours (true) or color gradient map (false)
-
getMaxContourSegments
public int getMaxContourSegments()
- Returns:
- the maximum number of segments for which a contour is being drawn
-
getMinHexTileSizeProperty
public int getMinHexTileSizeProperty()
-
getNumberQuantisationLevels
public int getNumberQuantisationLevels()
-
getReductionFactorX
public int getReductionFactorX()
-
getReductionFactorY
public int getReductionFactorY()
-
getReductionType
public ReductionType getReductionType()
-
isAltImplementation
public boolean isAltImplementation()
This is used to compare different implementation and to potentially fall-back to an older reference implementation- Returns:
true
if alternate implementation is being used
-
isSmooth
public boolean isSmooth()
Returns the value of thesmoothProperty()
.- Returns:
true
if the smoothing should be applied,false
otherwise
-
maxContourSegmentsProperty
public javafx.beans.property.IntegerProperty maxContourSegmentsProperty()
- Returns:
- the property controlling the maximum number of sub-segments allowed for a contour to be drawn.
-
minHexTileSizeProperty
public javafx.beans.property.IntegerProperty minHexTileSizeProperty()
-
quantisationLevelsProperty
public javafx.beans.property.IntegerProperty quantisationLevelsProperty()
-
reductionFactorXProperty
public javafx.beans.property.IntegerProperty reductionFactorXProperty()
-
reductionFactorYProperty
public javafx.beans.property.IntegerProperty reductionFactorYProperty()
-
reductionTypeProperty
public javafx.beans.property.ObjectProperty<ReductionType> reductionTypeProperty()
-
setAltImplementation
public void setAltImplementation(boolean state)
This is used to compare different implementation and to potentially fall-back to an older reference implementation- Parameters:
state
-true
if alternate implementation is being used
-
setColorGradient
public void setColorGradient(ColorGradient value)
Sets the value of thecolorGradientProperty()
.- Parameters:
value
- the gradient to be used
-
setComputeLocalRange
public void setComputeLocalRange(boolean value)
Sets the value of thecomputeLocalRangeProperty()
.- Parameters:
value
-true
if the local range calculation is applied,false
otherwise
-
setContourType
public void setContourType(ContourType value)
Sets the value of thecontourTypeProperty()
.- Parameters:
value
- if the chart should plot contours (true) or color gradient map (false)
-
setMaxContourSegments
public void setMaxContourSegments(int nSegments)
suppresses contour segments being drawn that have more than the specified number of sub-segments- Parameters:
nSegments
- the maximum number of segments
-
setMinHexTileSizeProperty
public void setMinHexTileSizeProperty(int minSize)
-
setNumberQuantisationLevels
public void setNumberQuantisationLevels(int nQuantisation)
-
setReductionFactorX
public void setReductionFactorX(int factor)
-
setReductionFactorY
public void setReductionFactorY(int factor)
-
setReductionType
public void setReductionType(ReductionType value)
-
setSmooth
public void setSmooth(boolean value)
Sets the value of thesmoothProperty()
.- Parameters:
value
-true
to enable smoothing
-
smoothProperty
public javafx.beans.property.BooleanProperty smoothProperty()
Indicates if the chart should smooth colors between data points or render each data point as a rectangle with uniform color.By default smoothing is disabled.
- Returns:
- smooth property
- See Also:
ImageView.setFitWidth(double)
,ImageView.setFitHeight(double)
,ImageView.setSmooth(boolean)
-
-