org.knowm.xchart.style
Class XYStyler
- java.lang.Object
-
- org.knowm.xchart.style.Styler
-
- org.knowm.xchart.style.AxesChartStyler
-
- org.knowm.xchart.style.XYStyler
-
public class XYStyler 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
-
-
Constructor Summary
Constructors Constructor and Description XYStyler()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.ColorgetCursorBackgroundColor()java.awt.ColorgetCursorColor()java.awt.FontgetCursorFont()java.awt.ColorgetCursorFontColor()floatgetCursorLineWidth()java.util.function.Function<java.lang.Double,java.lang.String>getCustomCursorXDataFormattingFunction()java.util.function.Function<java.lang.Double,java.lang.String>getCustomCursorYDataFormattingFunction()XYSeries.XYSeriesRenderStylegetDefaultSeriesRenderStyle()java.awt.ColorgetZoomSelectionColor()booleanisCursorEnabled()booleanisZoomEnabled()booleanisZoomResetByButton()booleanisZoomResetByDoubleClick()StylersetCursorBackgroundColor(java.awt.Color cursorBackgroundColor)StylersetCursorColor(java.awt.Color cursorColor)StylersetCursorEnabled(boolean isCursorEnabled)StylersetCursorFont(java.awt.Font cursorFont)StylersetCursorFontColor(java.awt.Color cursorFontColor)StylersetCursorLineWidth(float cursorLineWidth)voidsetCustomCursorXDataFormattingFunction(java.util.function.Function<java.lang.Double,java.lang.String> customCursorXDataFormattingFunction)Set the custom function for formatting the cursor tooltip based on the series X-Axis datavoidsetCustomCursorYDataFormattingFunction(java.util.function.Function<java.lang.Double,java.lang.String> customCursorYDataFormattingFunction)Set the custom function for formatting the cursor tooltip based on the series Y-Axis dataXYStylersetDefaultSeriesRenderStyle(XYSeries.XYSeriesRenderStyle xySeriesRenderStyle)Sets the default series render style for the chart (line, scatter, area, etc.) You can override the series render style individually on each Series object.voidsetTheme(Theme theme)Set the theme the styler should useStylersetZoomEnabled(boolean isZoomEnabled)voidsetZoomResetByButton(boolean zoomResetByButton)voidsetZoomResetByDoubleClick(boolean zoomResetByDoubleClick)voidsetZoomSelectionColor(java.awt.Color zoomSelectionColor)-
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, setLegendPosition, setLegendSeriesLineLength, setLegendVisible, setMarkerSize, setPlotBackgroundColor, setPlotBorderColor, setPlotBorderVisible, setPlotContentSize, setSeriesColors, setSeriesLines, setSeriesMarkers, setShowWithinAreaPoint, setToolTipBackgroundColor, setToolTipBorderColor, setToolTipFont, setToolTipHighlightColor, setToolTipsAlwaysVisible, setToolTipsEnabled, setToolTipType, setXAxisTitleColor, setYAxisGroupPosition, setYAxisGroupTitleColor, setYAxisLeftWidthHint, setYAxisTitleColor
-
-
-
-
Method Detail
-
setTheme
public void setTheme(Theme theme)
Set the theme the styler should use- Parameters:
theme-
-
getDefaultSeriesRenderStyle
public XYSeries.XYSeriesRenderStyle getDefaultSeriesRenderStyle()
-
setDefaultSeriesRenderStyle
public XYStyler setDefaultSeriesRenderStyle(XYSeries.XYSeriesRenderStyle xySeriesRenderStyle)
Sets the default series render style for the chart (line, scatter, area, etc.) You can override the series render style individually on each Series object.- Parameters:
xySeriesRenderStyle-
-
isZoomEnabled
public boolean isZoomEnabled()
-
setZoomEnabled
public Styler setZoomEnabled(boolean isZoomEnabled)
-
getZoomSelectionColor
public java.awt.Color getZoomSelectionColor()
-
setZoomSelectionColor
public void setZoomSelectionColor(java.awt.Color zoomSelectionColor)
-
isZoomResetByDoubleClick
public boolean isZoomResetByDoubleClick()
-
setZoomResetByDoubleClick
public void setZoomResetByDoubleClick(boolean zoomResetByDoubleClick)
-
isZoomResetByButton
public boolean isZoomResetByButton()
-
setZoomResetByButton
public void setZoomResetByButton(boolean zoomResetByButton)
-
isCursorEnabled
public boolean isCursorEnabled()
-
setCursorEnabled
public Styler setCursorEnabled(boolean isCursorEnabled)
-
getCursorColor
public java.awt.Color getCursorColor()
-
setCursorColor
public Styler setCursorColor(java.awt.Color cursorColor)
-
getCursorLineWidth
public float getCursorLineWidth()
-
setCursorLineWidth
public Styler setCursorLineWidth(float cursorLineWidth)
-
getCursorFont
public java.awt.Font getCursorFont()
-
setCursorFont
public Styler setCursorFont(java.awt.Font cursorFont)
-
getCursorFontColor
public java.awt.Color getCursorFontColor()
-
setCursorFontColor
public Styler setCursorFontColor(java.awt.Color cursorFontColor)
-
getCursorBackgroundColor
public java.awt.Color getCursorBackgroundColor()
-
setCursorBackgroundColor
public Styler setCursorBackgroundColor(java.awt.Color cursorBackgroundColor)
-
getCustomCursorXDataFormattingFunction
public java.util.function.Function<java.lang.Double,java.lang.String> getCustomCursorXDataFormattingFunction()
-
setCustomCursorXDataFormattingFunction
public void setCustomCursorXDataFormattingFunction(java.util.function.Function<java.lang.Double,java.lang.String> customCursorXDataFormattingFunction)
Set the custom function for formatting the cursor tooltip based on the series X-Axis data- Parameters:
customCursorXDataFormattingFunction-
-
getCustomCursorYDataFormattingFunction
public java.util.function.Function<java.lang.Double,java.lang.String> getCustomCursorYDataFormattingFunction()
-
setCustomCursorYDataFormattingFunction
public void setCustomCursorYDataFormattingFunction(java.util.function.Function<java.lang.Double,java.lang.String> customCursorYDataFormattingFunction)
Set the custom function for formatting the cursor tooltip based on the series Y-Axis data- Parameters:
customCursorYDataFormattingFunction-
-
-
DataMelt 3.0 © DataMelt by jWork.ORG