Package org.knowm.xchart.style
Class AxesChartStyler
java.lang.Object
org.knowm.xchart.style.Styler
org.knowm.xchart.style.AxesChartStyler
- Direct Known Subclasses:
BoxStyler
,BubbleStyler
,CategoryStyler
,HeatMapStyler
,OHLCStyler
,XYStyler
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
int
int
getYAxisGroupTickLabelsColorMap
(int yAxisGroup) getYAxisGroupTickMarksColorMap
(int yAxisGroup) getYAxisMax
(Integer yAxisGroup) getYAxisMin
(Integer yAxisGroup) int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
putYAxisGroupDecimalPatternMap
(int yIndex, String yAxisDecimalPattern) setAxisTickLabelsColor
(Color axisTickLabelsColor) sets the axis tick label colorsetAxisTickLabelsFont
(Font axisTicksFont) Set the x- and y-axis tick label fontsetAxisTickMarkLength
(int axisTickMarkLength) Set the axis tick mark length (in pixels)setAxisTickMarksColor
(Color axisTickColor) sets the axis tick mark colorsetAxisTickMarksStroke
(BasicStroke axisTickMarksStroke) sets the axis tick marks StrokesetAxisTickPadding
(int axisTickPadding) sets the padding (in pixels) between the tick labels and the tick markssetAxisTicksLineVisible
(boolean isAxisTicksLineVisible) sets the visibility of the line parallel to the plot edges that go along with the tick markssetAxisTicksMarksVisible
(boolean isAxisTicksMarksVisible) sets the visibility of the tick markssetAxisTicksVisible
(boolean isVisible) Set the x- and y-axis tick marks and labels visibilitysetAxisTitleFont
(Font axisTitleFont) Set the x- and y-axis title fontsetAxisTitlePadding
(int axisTitlePadding) sets the padding (in pixels) between the axis title and the tick labelssetAxisTitlesVisible
(boolean isVisible) Set the x- and y-axis titles visibilitysetDatePattern
(String datePattern) Set the String formatter for Data x-axissetErrorBarsColor
(Color errorBarsColor) Sets the color of the error barssetErrorBarsColorSeriesColor
(boolean isErrorBarsColorSeriesColor) Set true if the the error bar color should match the series colorSet the locale to use for rendering the chartsetPlotGridHorizontalLinesVisible
(boolean isPlotGridHorizontalLinesVisible) sets the visibility of the horizontal gridlines on the plot areasetPlotGridLinesColor
(Color plotGridLinesColor) set the plot area's grid lines colorsetPlotGridLinesStroke
(BasicStroke plotGridLinesStroke) set the plot area's grid lines StrokesetPlotGridLinesVisible
(boolean isPlotGridLinesVisible) sets the visibility of the gridlines inside the plot areasetPlotGridVerticalLinesVisible
(boolean isPlotGridVerticalLinesVisible) sets the visibility of the vertical gridlines on the plot areasetPlotMargin
(int plotMargin) sets the margin (in pixels) around the plot areasetPlotTicksMarksVisible
(boolean isPlotTicksMarksVisible) sets the visibility of the ticks marks inside the plot areasetTimezone
(TimeZone timezone) Set the timezone to use for formatting Date axis tick labelssetXAxisDecimalPattern
(String xAxisDecimalPattern) Set the decimal formatting pattern for the X-Axisvoid
setXAxisLabelAlignment
(AxesChartStyler.TextAlignment xAxisLabelAlignment) void
setXAxisLabelAlignmentVertical
(AxesChartStyler.TextAlignment xAxisLabelAlignmentVertical) setXAxisLabelRotation
(int xAxisLabelRotation) setXAxisLogarithmic
(boolean isXAxisLogarithmic) sets the X-Axis to be rendered with a logarithmic scale or notsetXAxisLogarithmicDecadeOnly
(boolean xAxisLogarithmicDecadeOnly) Set the decade only support for logarithmic Y-AxissetXAxisMax
(Double xAxisMax) void
setXAxisMaxLabelCount
(int xAxisMaxLabelCount) setXAxisMin
(Double xAxisMin) setXAxisTickLabelsColor
(Color xAxisTickLabelsColor) void
setxAxisTickLabelsFormattingFunction
(Function<Double, String> xAxisTickLabelsFormattingFunction) setXAxisTickMarksColor
(Color xAxisTickMarksColor) setXAxisTickMarkSpacingHint
(int xAxisTickMarkSpacingHint) set the spacing (in pixels) between tick marks for the X-AxissetXAxisTicksVisible
(boolean xAxisTicksVisible) Set the x-axis tick marks and labels visibilitysetXAxisTitleVisible
(boolean xAxisTitleVisible) Set the x-axis title visibilitysetYAxisDecimalPattern
(String yAxisDecimalPattern) Set the decimal formatting pattern for the Y-AxissetYAxisGroupTickLabelsColorMap
(int yAxisGroup, Color yAxisTickLabelsColor) setYAxisGroupTickMarksColorMap
(int yAxisGroup, Color yAxisTickMarksColor) setYAxisLabelAlignment
(AxesChartStyler.TextAlignment yAxisLabelAlignment) setYAxisLogarithmic
(boolean isYAxisLogarithmic) sets the Y-Axis to be rendered with a logarithmic scale or notsetYAxisLogarithmicDecadeOnly
(boolean yAxisLogarithmicDecadeOnly) Set the decade only support for logarithmic Y-AxissetYAxisMax
(Double yAxisMax) setYAxisMax
(Integer yAxisGroup, Double yAxisMax) setYAxisMin
(Double yAxisMin) setYAxisMin
(Integer yAxisGroup, Double yAxisMin) setYAxisTickLabelsColor
(Color yAxisTickLabelsColor) void
setyAxisTickLabelsFormattingFunction
(Function<Double, String> yAxisTickLabelsFormattingFunction) setYAxisTickMarksColor
(Color yAxisTickMarksColor) setYAxisTickMarkSpacingHint
(int yAxisTickMarkSpacingHint) set the spacing (in pixels) between tick marks for the Y-AxissetYAxisTicksVisible
(boolean yAxisTicksVisible) Set the y-axis tick marks and labels visibilitysetYAxisTitleVisible
(boolean yAxisTitleVisible) Set the y-axis title visibilityMethods 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
-
Constructor Details
-
AxesChartStyler
public AxesChartStyler()
-
-
Method Details
-
isXAxisTitleVisible
public boolean isXAxisTitleVisible() -
setXAxisTitleVisible
Set the x-axis title visibility- Parameters:
xAxisTitleVisible
-
-
isYAxisTitleVisible
public boolean isYAxisTitleVisible() -
setYAxisTitleVisible
Set the y-axis title visibility- Parameters:
yAxisTitleVisible
-
-
setAxisTitlesVisible
Set the x- and y-axis titles visibility- Parameters:
isVisible
-
-
getAxisTitleFont
-
setAxisTitleFont
Set the x- and y-axis title font- Parameters:
axisTitleFont
-
-
isXAxisTicksVisible
public boolean isXAxisTicksVisible() -
setXAxisTicksVisible
Set the x-axis tick marks and labels visibility- Parameters:
xAxisTicksVisible
-
-
isYAxisTicksVisible
public boolean isYAxisTicksVisible() -
setYAxisTicksVisible
Set the y-axis tick marks and labels visibility- Parameters:
yAxisTicksVisible
-
-
setAxisTicksVisible
Set the x- and y-axis tick marks and labels visibility- Parameters:
isVisible
-
-
getAxisTickLabelsFont
-
setAxisTickLabelsFont
Set the x- and y-axis tick label font- Parameters:
axisTicksFont
-
-
getAxisTickMarkLength
public int getAxisTickMarkLength() -
setAxisTickMarkLength
Set the axis tick mark length (in pixels)- Parameters:
axisTickMarkLength
-
-
getAxisTickPadding
public int getAxisTickPadding() -
setAxisTickPadding
sets the padding (in pixels) between the tick labels and the tick marks- Parameters:
axisTickPadding
-
-
getAxisTickMarksColor
-
setAxisTickMarksColor
sets the axis tick mark color- Parameters:
axisTickColor
-
-
getAxisTickMarksStroke
-
setAxisTickMarksStroke
sets the axis tick marks Stroke- Parameters:
axisTickMarksStroke
-
-
getAxisTickLabelsColor
-
setAxisTickLabelsColor
sets the axis tick label color- Parameters:
axisTickLabelsColor
-
-
isAxisTicksLineVisible
public boolean isAxisTicksLineVisible() -
setAxisTicksLineVisible
sets the visibility of the line parallel to the plot edges that go along with the tick marks- Parameters:
isAxisTicksLineVisible
-
-
isAxisTicksMarksVisible
public boolean isAxisTicksMarksVisible() -
setAxisTicksMarksVisible
sets the visibility of the tick marks- Parameters:
isAxisTicksMarksVisible
-
-
getPlotMargin
public int getPlotMargin() -
setPlotMargin
sets the margin (in pixels) around the plot area- Parameters:
plotMargin
-
-
getAxisTitlePadding
public int getAxisTitlePadding() -
setAxisTitlePadding
sets the padding (in pixels) between the axis title and the tick labels- Parameters:
axisTitlePadding
-
-
getXAxisTickMarkSpacingHint
public int getXAxisTickMarkSpacingHint() -
setXAxisTickMarkSpacingHint
set the spacing (in pixels) between tick marks for the X-Axis- Parameters:
xAxisTickMarkSpacingHint
-
-
getYAxisTickMarkSpacingHint
public int getYAxisTickMarkSpacingHint() -
setYAxisTickMarkSpacingHint
set the spacing (in pixels) between tick marks for the Y-Axis- Parameters:
yAxisTickMarkSpacingHint
-
-
isXAxisLogarithmic
public boolean isXAxisLogarithmic() -
setXAxisLogarithmic
sets the X-Axis to be rendered with a logarithmic scale or not- Parameters:
isXAxisLogarithmic
-
-
isYAxisLogarithmic
public boolean isYAxisLogarithmic() -
setYAxisLogarithmic
sets the Y-Axis to be rendered with a logarithmic scale or not- Parameters:
isYAxisLogarithmic
-
-
getXAxisMin
-
setXAxisMin
-
getXAxisMax
-
setXAxisMax
-
setYAxisMin
-
getYAxisMin
-
setYAxisMin
-
getYAxisMin
-
setYAxisMax
-
getYAxisMax
-
setYAxisMax
-
getYAxisMax
-
getXAxisMaxLabelCount
public int getXAxisMaxLabelCount() -
setXAxisMaxLabelCount
public void setXAxisMaxLabelCount(int xAxisMaxLabelCount) -
isPlotGridLinesVisible
public boolean isPlotGridLinesVisible() -
setPlotGridLinesVisible
sets the visibility of the gridlines inside the plot area- Parameters:
isPlotGridLinesVisible
-
-
isPlotGridHorizontalLinesVisible
public boolean isPlotGridHorizontalLinesVisible() -
setPlotGridHorizontalLinesVisible
sets the visibility of the horizontal gridlines on the plot area- Parameters:
isPlotGridHorizontalLinesVisible
-
-
isPlotGridVerticalLinesVisible
public boolean isPlotGridVerticalLinesVisible() -
setPlotGridVerticalLinesVisible
sets the visibility of the vertical gridlines on the plot area- Parameters:
isPlotGridVerticalLinesVisible
-
-
isPlotTicksMarksVisible
public boolean isPlotTicksMarksVisible() -
setPlotTicksMarksVisible
sets the visibility of the ticks marks inside the plot area- Parameters:
isPlotTicksMarksVisible
-
-
getPlotGridLinesColor
-
setPlotGridLinesColor
set the plot area's grid lines color- Parameters:
plotGridLinesColor
-
-
getPlotGridLinesStroke
-
setPlotGridLinesStroke
set the plot area's grid lines Stroke- Parameters:
plotGridLinesStroke
-
-
getErrorBarsColor
-
setErrorBarsColor
Sets the color of the error bars- Parameters:
errorBarsColor
-
-
isErrorBarsColorSeriesColor
public boolean isErrorBarsColorSeriesColor() -
setErrorBarsColorSeriesColor
Set true if the the error bar color should match the series color- Returns:
-
getLocale
-
setLocale
Set the locale to use for rendering the chart- Parameters:
locale
- - the locale to use when formatting Strings and dates for the axis tick labels
-
getTimezone
-
setTimezone
Set the timezone to use for formatting Date axis tick labels- Parameters:
timezone
- the timezone to use when formatting date data
-
getDatePattern
-
setDatePattern
Set the String formatter for Data x-axis- Parameters:
datePattern
- - the pattern describing the date and time format
-
getXAxisDecimalPattern
-
setXAxisDecimalPattern
Set the decimal formatting pattern for the X-Axis- Parameters:
xAxisDecimalPattern
-
-
getYAxisDecimalPattern
-
setYAxisDecimalPattern
Set the decimal formatting pattern for the Y-Axis- Parameters:
yAxisDecimalPattern
-
-
getYAxisGroupDecimalPatternMap
-
putYAxisGroupDecimalPatternMap
-
isXAxisLogarithmicDecadeOnly
public boolean isXAxisLogarithmicDecadeOnly() -
setXAxisLogarithmicDecadeOnly
Set the decade only support for logarithmic Y-Axis- Parameters:
xAxisLogarithmicDecadeOnly
-
-
isYAxisLogarithmicDecadeOnly
public boolean isYAxisLogarithmicDecadeOnly() -
setYAxisLogarithmicDecadeOnly
Set the decade only support for logarithmic Y-Axis- Parameters:
yAxisLogarithmicDecadeOnly
-
-
getxAxisTickLabelsFormattingFunction
-
setxAxisTickLabelsFormattingFunction
-
getyAxisTickLabelsFormattingFunction
-
setyAxisTickLabelsFormattingFunction
-
getXAxisTickLabelsColor
-
setXAxisTickLabelsColor
-
getYAxisTickLabelsColor
-
setYAxisTickLabelsColor
-
getXAxisTickMarksColor
-
setXAxisTickMarksColor
-
getYAxisTickMarksColor
-
setYAxisTickMarksColor
-
getYAxisGroupTickLabelsColorMap
-
setYAxisGroupTickLabelsColorMap
-
getYAxisGroupTickMarksColorMap
-
setYAxisGroupTickMarksColorMap
-
getXAxisLabelAlignment
-
setXAxisLabelAlignment
-
getXAxisLabelAlignmentVertical
-
setXAxisLabelAlignmentVertical
public void setXAxisLabelAlignmentVertical(AxesChartStyler.TextAlignment xAxisLabelAlignmentVertical) -
getYAxisLabelAlignment
-
setYAxisLabelAlignment
-
getXAxisLabelRotation
public int getXAxisLabelRotation() -
setXAxisLabelRotation
-