Package org.knowm.xchart.style
Class HeatMapStyler
- java.lang.Object
-
- org.knowm.xchart.style.Styler
-
- org.knowm.xchart.style.AxesChartStyler
-
- org.knowm.xchart.style.HeatMapStyler
-
public class HeatMapStyler extends AxesChartStyler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.knowm.xchart.style.AxesChartStyler
AxesChartStyler.TextAlignment
-
Nested classes/interfaces inherited from class org.knowm.xchart.style.Styler
Styler.ChartButtonPosition, Styler.ChartTheme, Styler.LegendLayout, Styler.LegendPosition, Styler.ToolTipType, Styler.YAxisPosition
-
-
Field Summary
Fields Modifier and Type Field Description private static java.awt.Color[]DEFAULT_RANGE_COLORSdefault range colors, {'#00FFFF'}private intgradientColorColumnHeightprivate intgradientColorColumnWeightprivate java.util.function.Function<java.lang.Double,java.lang.String>heatMapDecimalValueFormatterprivate java.lang.StringheatMapValueDecimalPatternprivate booleanisDrawBorderprivate booleanisPiecewiseprivate booleanisPiecewiseRanged(package private) doublemax(package private) doubleminprivate java.awt.Color[]rangeColorsprivate booleanshowValueprivate intsplitNumberprivate java.awt.FontvalueFontprivate java.awt.ColorvalueFontColor
-
Constructor Summary
Constructors Constructor Description HeatMapStyler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetGradientColorColumnHeight()intgetGradientColorColumnWeight()java.util.function.Function<java.lang.Double,java.lang.String>getHeatMapDecimalValueFormatter()java.lang.StringgetHeatMapValueDecimalPattern()doublegetMax()doublegetMin()java.awt.Color[]getRangeColors()intgetSplitNumber()java.awt.FontgetValueFont()java.awt.ColorgetValueFontColor()booleanisDrawBorder()booleanisPiecewise()booleanisPiecewiseRanged()booleanisShowValue()voidsetAllStyles()HeatMapStylersetDrawBorder(boolean isDrawBorder)HeatMapStylersetGradientColorColumnHeight(int gradientColorColumnHeight)HeatMapStylersetGradientColorColumnWeight(int gradientColorColumnWeight)HeatMapStylersetHeatMapDecimalValueFormatter(java.util.function.Function<java.lang.Double,java.lang.String> heatMapDecimalValueFormatter)HeatMapStylersetHeatMapValueDecimalPattern(java.lang.String heatMapValueDecimalPattern)HeatMapStylersetLegendPosition(Styler.LegendPosition legendPosition)sets the legend positionHeatMapStylersetMax(double max)HeatMapStylersetMin(double min)HeatMapStylersetPiecewise(boolean isPiecewise)HeatMapStylersetPiecewiseRanged(boolean piecewiseRanged)HeatMapStylersetRangeColors(java.awt.Color[] rangeColors)HeatMapStylersetShowValue(boolean showValue)HeatMapStylersetSplitNumber(int splitNumber)voidsetTheme(Theme theme)Set the theme the styler should useHeatMapStylersetValueFont(java.awt.Font valueFont)HeatMapStylersetValueFontColor(java.awt.Color valueFontColor)-
Methods inherited from class org.knowm.xchart.style.AxesChartStyler
getAxisTickLabelsColor, getAxisTickLabelsFont, getAxisTickMarkLength, getAxisTickMarksColor, getAxisTickMarksStroke, getAxisTickPadding, getAxisTitleFont, getAxisTitlePadding, getDatePattern, getErrorBarsColor, getLocale, getPlotGridLinesColor, getPlotGridLinesStroke, getPlotMargin, getTimezone, getXAxisDecimalPattern, getXAxisLabelAlignment, getXAxisLabelAlignmentVertical, getXAxisLabelRotation, getXAxisMax, getXAxisMaxLabelCount, getXAxisMin, getXAxisTickLabelsColor, getxAxisTickLabelsFormattingFunction, getXAxisTickMarksColor, getXAxisTickMarkSpacingHint, getYAxisDecimalPattern, getYAxisGroupDecimalPatternMap, getYAxisGroupTickLabelsColorMap, getYAxisGroupTickMarksColorMap, getYAxisLabelAlignment, getYAxisMax, getYAxisMax, getYAxisMin, getYAxisMin, getYAxisTickLabelsColor, getyAxisTickLabelsFormattingFunction, getYAxisTickMarksColor, getYAxisTickMarkSpacingHint, isAxisTicksLineVisible, isAxisTicksMarksVisible, isErrorBarsColorSeriesColor, isPlotGridHorizontalLinesVisible, isPlotGridLinesVisible, isPlotGridVerticalLinesVisible, isPlotTicksMarksVisible, isXAxisLogarithmic, isXAxisLogarithmicDecadeOnly, isXAxisTicksVisible, isXAxisTitleVisible, isYAxisLogarithmic, isYAxisLogarithmicDecadeOnly, isYAxisTicksVisible, isYAxisTitleVisible, putYAxisGroupDecimalPatternMap, setAxisTickLabelsColor, setAxisTickLabelsFont, setAxisTickMarkLength, setAxisTickMarksColor, setAxisTickMarksStroke, setAxisTickPadding, setAxisTicksLineVisible, setAxisTicksMarksVisible, setAxisTicksVisible, setAxisTitleFont, setAxisTitlePadding, setAxisTitlesVisible, setDatePattern, setErrorBarsColor, setErrorBarsColorSeriesColor, setLocale, setPlotGridHorizontalLinesVisible, setPlotGridLinesColor, setPlotGridLinesStroke, setPlotGridLinesVisible, setPlotGridVerticalLinesVisible, setPlotMargin, setPlotTicksMarksVisible, setTimezone, setXAxisDecimalPattern, setXAxisLabelAlignment, setXAxisLabelAlignmentVertical, setXAxisLabelRotation, setXAxisLogarithmic, setXAxisLogarithmicDecadeOnly, setXAxisMax, setXAxisMaxLabelCount, setXAxisMin, setXAxisTickLabelsColor, setxAxisTickLabelsFormattingFunction, setXAxisTickMarksColor, setXAxisTickMarkSpacingHint, setXAxisTicksVisible, setXAxisTitleVisible, setYAxisDecimalPattern, setYAxisGroupTickLabelsColorMap, setYAxisGroupTickMarksColorMap, setYAxisLabelAlignment, setYAxisLogarithmic, setYAxisLogarithmicDecadeOnly, setYAxisMax, setYAxisMax, setYAxisMin, setYAxisMin, setYAxisTickLabelsColor, setyAxisTickLabelsFormattingFunction, setYAxisTickMarksColor, setYAxisTickMarkSpacingHint, setYAxisTicksVisible, setYAxisTitleVisible
-
Methods inherited from class org.knowm.xchart.style.Styler
getAnnotationLineColor, getAnnotationLineStroke, getAnnotationTextFont, getAnnotationTextFontColor, getAnnotationTextPanelBackgroundColor, getAnnotationTextPanelBorderColor, getAnnotationTextPanelFont, getAnnotationTextPanelFontColor, getAnnotationTextPanelPadding, getAntiAlias, getBaseFont, getChartBackgroundColor, getChartButtonBackgroundColor, getChartButtonBorderColor, getChartButtonFont, getChartButtonFontColor, getChartButtonMargin, getChartButtonPosition, getChartFontColor, getChartPadding, getChartTitleBoxBackgroundColor, getChartTitleBoxBorderColor, getChartTitleFont, getChartTitlePadding, getDecimalPattern, getLegendBackgroundColor, getLegendBorderColor, getLegendFont, getLegendLayout, getLegendPadding, getLegendPosition, getLegendSeriesLineLength, getMarkerSize, getPlotBackgroundColor, getPlotBorderColor, getPlotContentSize, getSeriesColors, getSeriesLines, getSeriesMarkers, getShowWithinAreaPoint, getTheme, getToolTipBackgroundColor, getToolTipBorderColor, getToolTipFont, getToolTipHighlightColor, getToolTipType, getXAxisTitleColor, getYAxisGroupPosistion, getYAxisGroupTitleColor, getYAxisLeftWidthHint, getYAxisTitleColor, isChartTitleBoxVisible, isChartTitleVisible, isLegendVisible, isPlotBorderVisible, isToolTipsAlwaysVisible, isToolTipsEnabled, setAnnotationLineColor, setAnnotationLineStroke, setAnnotationTextFont, setAnnotationTextFontColor, setAnnotationTextPanelBackgroundColor, setAnnotationTextPanelBorderColor, setAnnotationTextPanelFont, setAnnotationTextPanelFontColor, setAnnotationTextPanelPadding, setAntiAlias, setBaseFont, setChartBackgroundColor, setChartButtonBackgroundColor, setChartButtonBorderColor, setChartButtonFont, setChartButtonFontColor, setChartButtonMargin, setChartButtonPosition, setChartFontColor, setChartPadding, setChartTitleBoxBackgroundColor, setChartTitleBoxBorderColor, setChartTitleBoxVisible, setChartTitleFont, setChartTitlePadding, setChartTitleVisible, setDecimalPattern, setLegendBackgroundColor, setLegendBorderColor, setLegendFont, setLegendLayout, setLegendPadding, setLegendSeriesLineLength, setLegendVisible, setMarkerSize, setPlotBackgroundColor, setPlotBorderColor, setPlotBorderVisible, setPlotContentSize, setSeriesColors, setSeriesLines, setSeriesMarkers, setShowWithinAreaPoint, setToolTipBackgroundColor, setToolTipBorderColor, setToolTipFont, setToolTipHighlightColor, setToolTipsAlwaysVisible, setToolTipsEnabled, setToolTipType, setXAxisTitleColor, setYAxisGroupPosition, setYAxisGroupTitleColor, setYAxisLeftWidthHint, setYAxisTitleColor
-
-
-
-
Field Detail
-
isPiecewise
private boolean isPiecewise
-
isPiecewiseRanged
private boolean isPiecewiseRanged
-
splitNumber
private int splitNumber
-
DEFAULT_RANGE_COLORS
private static final java.awt.Color[] DEFAULT_RANGE_COLORS
default range colors, {'#00FFFF'}
-
rangeColors
private java.awt.Color[] rangeColors
-
isDrawBorder
private boolean isDrawBorder
-
showValue
private boolean showValue
-
valueFont
private java.awt.Font valueFont
-
valueFontColor
private java.awt.Color valueFontColor
-
min
double min
-
max
double max
-
gradientColorColumnWeight
private int gradientColorColumnWeight
-
gradientColorColumnHeight
private int gradientColorColumnHeight
-
heatMapValueDecimalPattern
private java.lang.String heatMapValueDecimalPattern
-
heatMapDecimalValueFormatter
private java.util.function.Function<java.lang.Double,java.lang.String> heatMapDecimalValueFormatter
-
-
Method Detail
-
setTheme
public void setTheme(Theme theme)
Set the theme the styler should use- Parameters:
theme-
-
setAllStyles
public void setAllStyles()
- Overrides:
setAllStylesin classAxesChartStyler
-
setLegendPosition
public HeatMapStyler setLegendPosition(Styler.LegendPosition legendPosition)
Description copied from class:Stylersets the legend position- Overrides:
setLegendPositionin classStyler
-
isPiecewise
public boolean isPiecewise()
-
setPiecewise
public HeatMapStyler setPiecewise(boolean isPiecewise)
-
getSplitNumber
public int getSplitNumber()
-
setSplitNumber
public HeatMapStyler setSplitNumber(int splitNumber)
-
getRangeColors
public java.awt.Color[] getRangeColors()
-
setRangeColors
public HeatMapStyler setRangeColors(java.awt.Color[] rangeColors)
-
isDrawBorder
public boolean isDrawBorder()
-
setDrawBorder
public HeatMapStyler setDrawBorder(boolean isDrawBorder)
-
isShowValue
public boolean isShowValue()
-
setShowValue
public HeatMapStyler setShowValue(boolean showValue)
-
getValueFont
public java.awt.Font getValueFont()
-
setValueFont
public HeatMapStyler setValueFont(java.awt.Font valueFont)
-
getValueFontColor
public java.awt.Color getValueFontColor()
-
setValueFontColor
public HeatMapStyler setValueFontColor(java.awt.Color valueFontColor)
-
getMin
public double getMin()
-
setMin
public HeatMapStyler setMin(double min)
-
getMax
public double getMax()
-
setMax
public HeatMapStyler setMax(double max)
-
getGradientColorColumnWeight
public int getGradientColorColumnWeight()
-
setGradientColorColumnWeight
public HeatMapStyler setGradientColorColumnWeight(int gradientColorColumnWeight)
-
getGradientColorColumnHeight
public int getGradientColorColumnHeight()
-
setGradientColorColumnHeight
public HeatMapStyler setGradientColorColumnHeight(int gradientColorColumnHeight)
-
getHeatMapValueDecimalPattern
public java.lang.String getHeatMapValueDecimalPattern()
-
setHeatMapValueDecimalPattern
public HeatMapStyler setHeatMapValueDecimalPattern(java.lang.String heatMapValueDecimalPattern)
-
getHeatMapDecimalValueFormatter
public java.util.function.Function<java.lang.Double,java.lang.String> getHeatMapDecimalValueFormatter()
-
setHeatMapDecimalValueFormatter
public HeatMapStyler setHeatMapDecimalValueFormatter(java.util.function.Function<java.lang.Double,java.lang.String> heatMapDecimalValueFormatter)
-
isPiecewiseRanged
public boolean isPiecewiseRanged()
-
setPiecewiseRanged
public HeatMapStyler setPiecewiseRanged(boolean piecewiseRanged)
-
-