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
public abstract class AxesChartStyler extends Styler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAxesChartStyler.TextAlignmentNested 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 Description AxesChartStyler() -
Method Summary
Modifier and Type Method Description ColorgetAxisTickLabelsColor()FontgetAxisTickLabelsFont()intgetAxisTickMarkLength()ColorgetAxisTickMarksColor()BasicStrokegetAxisTickMarksStroke()intgetAxisTickPadding()FontgetAxisTitleFont()intgetAxisTitlePadding()StringgetDatePattern()ColorgetErrorBarsColor()LocalegetLocale()ColorgetPlotGridLinesColor()BasicStrokegetPlotGridLinesStroke()intgetPlotMargin()TimeZonegetTimezone()StringgetXAxisDecimalPattern()AxesChartStyler.TextAlignmentgetXAxisLabelAlignment()AxesChartStyler.TextAlignmentgetXAxisLabelAlignmentVertical()intgetXAxisLabelRotation()DoublegetXAxisMax()intgetXAxisMaxLabelCount()DoublegetXAxisMin()ColorgetXAxisTickLabelsColor()Function<Double,String>getxAxisTickLabelsFormattingFunction()ColorgetXAxisTickMarksColor()intgetXAxisTickMarkSpacingHint()StringgetYAxisDecimalPattern()Map<Integer,String>getYAxisGroupDecimalPatternMap()ColorgetYAxisGroupTickLabelsColorMap(int yAxisGroup)ColorgetYAxisGroupTickMarksColorMap(int yAxisGroup)AxesChartStyler.TextAlignmentgetYAxisLabelAlignment()DoublegetYAxisMax()DoublegetYAxisMax(Integer yAxisGroup)DoublegetYAxisMin()DoublegetYAxisMin(Integer yAxisGroup)ColorgetYAxisTickLabelsColor()Function<Double,String>getyAxisTickLabelsFormattingFunction()ColorgetYAxisTickMarksColor()intgetYAxisTickMarkSpacingHint()booleanisAxisTicksLineVisible()booleanisAxisTicksMarksVisible()booleanisErrorBarsColorSeriesColor()booleanisPlotGridHorizontalLinesVisible()booleanisPlotGridLinesVisible()booleanisPlotGridVerticalLinesVisible()booleanisPlotTicksMarksVisible()booleanisXAxisLogarithmic()booleanisXAxisLogarithmicDecadeOnly()booleanisXAxisTicksVisible()booleanisXAxisTitleVisible()booleanisYAxisLogarithmic()booleanisYAxisLogarithmicDecadeOnly()booleanisYAxisTicksVisible()booleanisYAxisTitleVisible()voidputYAxisGroupDecimalPatternMap(int yIndex, String yAxisDecimalPattern)AxesChartStylersetAxisTickLabelsColor(Color axisTickLabelsColor)sets the axis tick label colorAxesChartStylersetAxisTickLabelsFont(Font axisTicksFont)Set the x- and y-axis tick label fontAxesChartStylersetAxisTickMarkLength(int axisTickMarkLength)Set the axis tick mark length (in pixels)AxesChartStylersetAxisTickMarksColor(Color axisTickColor)sets the axis tick mark colorAxesChartStylersetAxisTickMarksStroke(BasicStroke axisTickMarksStroke)sets the axis tick marks StrokeAxesChartStylersetAxisTickPadding(int axisTickPadding)sets the padding (in pixels) between the tick labels and the tick marksAxesChartStylersetAxisTicksLineVisible(boolean isAxisTicksLineVisible)sets the visibility of the line parallel to the plot edges that go along with the tick marksAxesChartStylersetAxisTicksMarksVisible(boolean isAxisTicksMarksVisible)sets the visibility of the tick marksAxesChartStylersetAxisTicksVisible(boolean isVisible)Set the x- and y-axis tick marks and labels visibilityAxesChartStylersetAxisTitleFont(Font axisTitleFont)Set the x- and y-axis title fontAxesChartStylersetAxisTitlePadding(int axisTitlePadding)sets the padding (in pixels) between the axis title and the tick labelsAxesChartStylersetAxisTitlesVisible(boolean isVisible)Set the x- and y-axis titles visibilityAxesChartStylersetDatePattern(String datePattern)Set the String formatter for Data x-axisAxesChartStylersetErrorBarsColor(Color errorBarsColor)Sets the color of the error barsAxesChartStylersetErrorBarsColorSeriesColor(boolean isErrorBarsColorSeriesColor)Set true if the the error bar color should match the series colorAxesChartStylersetLocale(Locale locale)Set the locale to use for rendering the chartAxesChartStylersetPlotGridHorizontalLinesVisible(boolean isPlotGridHorizontalLinesVisible)sets the visibility of the horizontal gridlines on the plot areaAxesChartStylersetPlotGridLinesColor(Color plotGridLinesColor)set the plot area's grid lines colorAxesChartStylersetPlotGridLinesStroke(BasicStroke plotGridLinesStroke)set the plot area's grid lines StrokeAxesChartStylersetPlotGridLinesVisible(boolean isPlotGridLinesVisible)sets the visibility of the gridlines inside the plot areaAxesChartStylersetPlotGridVerticalLinesVisible(boolean isPlotGridVerticalLinesVisible)sets the visibility of the vertical gridlines on the plot areaAxesChartStylersetPlotMargin(int plotMargin)sets the margin (in pixels) around the plot areaAxesChartStylersetPlotTicksMarksVisible(boolean isPlotTicksMarksVisible)sets the visibility of the ticks marks inside the plot areaAxesChartStylersetTimezone(TimeZone timezone)Set the timezone to use for formatting Date axis tick labelsAxesChartStylersetXAxisDecimalPattern(String xAxisDecimalPattern)Set the decimal formatting pattern for the X-AxisvoidsetXAxisLabelAlignment(AxesChartStyler.TextAlignment xAxisLabelAlignment)voidsetXAxisLabelAlignmentVertical(AxesChartStyler.TextAlignment xAxisLabelAlignmentVertical)AxesChartStylersetXAxisLabelRotation(int xAxisLabelRotation)AxesChartStylersetXAxisLogarithmic(boolean isXAxisLogarithmic)sets the X-Axis to be rendered with a logarithmic scale or notAxesChartStylersetXAxisLogarithmicDecadeOnly(boolean xAxisLogarithmicDecadeOnly)Set the decade only support for logarithmic Y-AxisAxesChartStylersetXAxisMax(Double xAxisMax)voidsetXAxisMaxLabelCount(int xAxisMaxLabelCount)AxesChartStylersetXAxisMin(Double xAxisMin)AxesChartStylersetXAxisTickLabelsColor(Color xAxisTickLabelsColor)voidsetxAxisTickLabelsFormattingFunction(Function<Double,String> xAxisTickLabelsFormattingFunction)AxesChartStylersetXAxisTickMarksColor(Color xAxisTickMarksColor)AxesChartStylersetXAxisTickMarkSpacingHint(int xAxisTickMarkSpacingHint)set the spacing (in pixels) between tick marks for the X-AxisAxesChartStylersetXAxisTicksVisible(boolean xAxisTicksVisible)Set the x-axis tick marks and labels visibilityAxesChartStylersetXAxisTitleVisible(boolean xAxisTitleVisible)Set the x-axis title visibilityAxesChartStylersetYAxisDecimalPattern(String yAxisDecimalPattern)Set the decimal formatting pattern for the Y-AxisAxesChartStylersetYAxisGroupTickLabelsColorMap(int yAxisGroup, Color yAxisTickLabelsColor)AxesChartStylersetYAxisGroupTickMarksColorMap(int yAxisGroup, Color yAxisTickMarksColor)AxesChartStylersetYAxisLabelAlignment(AxesChartStyler.TextAlignment yAxisLabelAlignment)AxesChartStylersetYAxisLogarithmic(boolean isYAxisLogarithmic)sets the Y-Axis to be rendered with a logarithmic scale or notAxesChartStylersetYAxisLogarithmicDecadeOnly(boolean yAxisLogarithmicDecadeOnly)Set the decade only support for logarithmic Y-AxisAxesChartStylersetYAxisMax(Double yAxisMax)AxesChartStylersetYAxisMax(Integer yAxisGroup, Double yAxisMax)AxesChartStylersetYAxisMin(Double yAxisMin)AxesChartStylersetYAxisMin(Integer yAxisGroup, Double yAxisMin)AxesChartStylersetYAxisTickLabelsColor(Color yAxisTickLabelsColor)voidsetyAxisTickLabelsFormattingFunction(Function<Double,String> yAxisTickLabelsFormattingFunction)AxesChartStylersetYAxisTickMarksColor(Color yAxisTickMarksColor)AxesChartStylersetYAxisTickMarkSpacingHint(int yAxisTickMarkSpacingHint)set the spacing (in pixels) between tick marks for the Y-AxisAxesChartStylersetYAxisTicksVisible(boolean yAxisTicksVisible)Set the y-axis tick marks and labels visibilityAxesChartStylersetYAxisTitleVisible(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
-