Package org.knowm.xchart.style
Class AxesChartStyler
- java.lang.Object
 - 
- org.knowm.xchart.style.Styler
 - 
- org.knowm.xchart.style.AxesChartStyler
 
 
 
- 
- Direct Known Subclasses:
 BubbleStyler,CategoryStyler,OHLCStyler,XYStyler
public abstract class AxesChartStyler extends Styler
- Author:
 - timmolter
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class org.knowm.xchart.style.Styler
Styler.ChartTheme, Styler.LegendLayout, Styler.LegendPosition, Styler.TextAlignment, Styler.ToolTipType, Styler.YAxisPosition 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AxesChartStyler() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetAxisTickLabelsColor()FontgetAxisTickLabelsFont()intgetAxisTickMarkLength()ColorgetAxisTickMarksColor()StrokegetAxisTickMarksStroke()intgetAxisTickPadding()FontgetAxisTitleFont()intgetAxisTitlePadding()StringgetDatePattern()ColorgetErrorBarsColor()LocalegetLocale()intgetMarkerSize()ColorgetPlotGridLinesColor()StrokegetPlotGridLinesStroke()intgetPlotMargin()TimeZonegetTimezone()StringgetXAxisDecimalPattern()Styler.TextAlignmentgetXAxisLabelAlignment()Styler.TextAlignmentgetXAxisLabelAlignmentVertical()intgetXAxisLabelRotation()DoublegetXAxisMax()DoublegetXAxisMin()intgetXAxisTickMarkSpacingHint()StringgetYAxisDecimalPattern()Styler.TextAlignmentgetYAxisLabelAlignment()DoublegetYAxisMax()DoublegetYAxisMax(Integer yAxisGroup)DoublegetYAxisMin()DoublegetYAxisMin(Integer yAxisGroup)intgetYAxisTickMarkSpacingHint()booleanisAxisTicksLineVisible()booleanisAxisTicksMarksVisible()booleanisErrorBarsColorSeriesColor()booleanisPlotGridHorizontalLinesVisible()booleanisPlotGridLinesVisible()booleanisPlotGridVerticalLinesVisible()booleanisPlotTicksMarksVisible()booleanisXAxisLogarithmic()booleanisXAxisLogarithmicDecadeOnly()booleanisXAxisTicksVisible()booleanisXAxisTitleVisible()booleanisYAxisLogarithmic()booleanisYAxisLogarithmicDecadeOnly()booleanisYAxisTicksVisible()booleanisYAxisTitleVisible()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(Stroke 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 chartAxesChartStylersetMarkerSize(int markerSize)Sets the size of the markers (in pixels)AxesChartStylersetPlotGridHorizontalLinesVisible(boolean isPlotGridHorizontalLinesVisible)sets the visibility of the horizontal gridlines on the plot areaAxesChartStylersetPlotGridLinesColor(Color plotGridLinesColor)set the plot area's grid lines colorAxesChartStylersetPlotGridLinesStroke(Stroke 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(Styler.TextAlignment xAxisLabelAlignment)voidsetXAxisLabelAlignmentVertical(Styler.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)AxesChartStylersetXAxisMin(Double xAxisMin)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-AxisAxesChartStylersetYAxisLabelAlignment(Styler.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)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 visibility- 
Methods inherited from class org.knowm.xchart.style.Styler
getAnnotationsFont, getAntiAlias, getBaseFont, getChartBackgroundColor, getChartFontColor, getChartPadding, getChartTitleBoxBackgroundColor, getChartTitleBoxBorderColor, getChartTitleFont, getChartTitlePadding, getDecimalPattern, getLegendBackgroundColor, getLegendBorderColor, getLegendFont, getLegendLayout, getLegendPadding, getLegendPosition, getLegendSeriesLineLength, getPlotBackgroundColor, getPlotBorderColor, getPlotContentSize, getSeriesColors, getSeriesLines, getSeriesMarkers, getTheme, getToolTipBackgroundColor, getToolTipBorderColor, getToolTipFont, getToolTipHighlightColor, getToolTipType, getYAxisGroupPosistion, hasAnnotations, isChartTitleBoxVisible, isChartTitleVisible, isLegendVisible, isPlotBorderVisible, isToolTipsAlwaysVisible, isToolTipsEnabled, setAnnotationsFont, setAntiAlias, setBaseFont, setChartBackgroundColor, setChartFontColor, setChartPadding, setChartTitleBoxBackgroundColor, setChartTitleBoxBorderColor, setChartTitleBoxVisible, setChartTitleFont, setChartTitlePadding, setChartTitleVisible, setDecimalPattern, setHasAnnotations, setLegendBackgroundColor, setLegendBorderColor, setLegendFont, setLegendLayout, setLegendPadding, setLegendPosition, setLegendSeriesLineLength, setLegendVisible, setPlotBackgroundColor, setPlotBorderColor, setPlotBorderVisible, setPlotContentSize, setSeriesColors, setSeriesLines, setSeriesMarkers, setToolTipBackgroundColor, setToolTipBorderColor, setToolTipFont, setToolTipHighlightColor, setToolTipsAlwaysVisible, setToolTipsEnabled, setToolTipType, setYAxisGroupPosition 
 - 
 
 - 
 
- 
- 
Method Detail
- 
isXAxisTitleVisible
public boolean isXAxisTitleVisible()
 
- 
setXAxisTitleVisible
public AxesChartStyler setXAxisTitleVisible(boolean xAxisTitleVisible)
Set the x-axis title visibility- Parameters:
 xAxisTitleVisible-
 
- 
isYAxisTitleVisible
public boolean isYAxisTitleVisible()
 
- 
setYAxisTitleVisible
public AxesChartStyler setYAxisTitleVisible(boolean yAxisTitleVisible)
Set the y-axis title visibility- Parameters:
 yAxisTitleVisible-
 
- 
setAxisTitlesVisible
public AxesChartStyler setAxisTitlesVisible(boolean isVisible)
Set the x- and y-axis titles visibility- Parameters:
 isVisible-
 
- 
getAxisTitleFont
public Font getAxisTitleFont()
 
- 
setAxisTitleFont
public AxesChartStyler setAxisTitleFont(Font axisTitleFont)
Set the x- and y-axis title font- Parameters:
 axisTitleFont-
 
- 
isXAxisTicksVisible
public boolean isXAxisTicksVisible()
 
- 
setXAxisTicksVisible
public AxesChartStyler setXAxisTicksVisible(boolean xAxisTicksVisible)
Set the x-axis tick marks and labels visibility- Parameters:
 xAxisTicksVisible-
 
- 
isYAxisTicksVisible
public boolean isYAxisTicksVisible()
 
- 
setYAxisTicksVisible
public AxesChartStyler setYAxisTicksVisible(boolean yAxisTicksVisible)
Set the y-axis tick marks and labels visibility- Parameters:
 yAxisTicksVisible-
 
- 
setAxisTicksVisible
public AxesChartStyler setAxisTicksVisible(boolean isVisible)
Set the x- and y-axis tick marks and labels visibility- Parameters:
 isVisible-
 
- 
getAxisTickLabelsFont
public Font getAxisTickLabelsFont()
 
- 
setAxisTickLabelsFont
public AxesChartStyler setAxisTickLabelsFont(Font axisTicksFont)
Set the x- and y-axis tick label font- Parameters:
 axisTicksFont-
 
- 
getAxisTickMarkLength
public int getAxisTickMarkLength()
 
- 
setAxisTickMarkLength
public AxesChartStyler setAxisTickMarkLength(int axisTickMarkLength)
Set the axis tick mark length (in pixels)- Parameters:
 axisTickMarkLength-
 
- 
getAxisTickPadding
public int getAxisTickPadding()
 
- 
setAxisTickPadding
public AxesChartStyler setAxisTickPadding(int axisTickPadding)
sets the padding (in pixels) between the tick labels and the tick marks- Parameters:
 axisTickPadding-
 
- 
getAxisTickMarksColor
public Color getAxisTickMarksColor()
 
- 
setAxisTickMarksColor
public AxesChartStyler setAxisTickMarksColor(Color axisTickColor)
sets the axis tick mark color- Parameters:
 axisTickColor-
 
- 
getAxisTickMarksStroke
public Stroke getAxisTickMarksStroke()
 
- 
setAxisTickMarksStroke
public AxesChartStyler setAxisTickMarksStroke(Stroke axisTickMarksStroke)
sets the axis tick marks Stroke- Parameters:
 axisTickMarksStroke-
 
- 
getAxisTickLabelsColor
public Color getAxisTickLabelsColor()
 
- 
setAxisTickLabelsColor
public AxesChartStyler setAxisTickLabelsColor(Color axisTickLabelsColor)
sets the axis tick label color- Parameters:
 axisTickLabelsColor-
 
- 
isAxisTicksLineVisible
public boolean isAxisTicksLineVisible()
 
- 
setAxisTicksLineVisible
public AxesChartStyler setAxisTicksLineVisible(boolean isAxisTicksLineVisible)
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
public AxesChartStyler setAxisTicksMarksVisible(boolean isAxisTicksMarksVisible)
sets the visibility of the tick marks- Parameters:
 isAxisTicksMarksVisible-
 
- 
getPlotMargin
public int getPlotMargin()
 
- 
setPlotMargin
public AxesChartStyler setPlotMargin(int plotMargin)
sets the margin (in pixels) around the plot area- Parameters:
 plotMargin-
 
- 
getAxisTitlePadding
public int getAxisTitlePadding()
 
- 
setAxisTitlePadding
public AxesChartStyler setAxisTitlePadding(int axisTitlePadding)
sets the padding (in pixels) between the axis title and the tick labels- Parameters:
 axisTitlePadding-
 
- 
getXAxisTickMarkSpacingHint
public int getXAxisTickMarkSpacingHint()
 
- 
setXAxisTickMarkSpacingHint
public AxesChartStyler setXAxisTickMarkSpacingHint(int xAxisTickMarkSpacingHint)
set the spacing (in pixels) between tick marks for the X-Axis- Parameters:
 xAxisTickMarkSpacingHint-
 
- 
getYAxisTickMarkSpacingHint
public int getYAxisTickMarkSpacingHint()
 
- 
setYAxisTickMarkSpacingHint
public AxesChartStyler setYAxisTickMarkSpacingHint(int yAxisTickMarkSpacingHint)
set the spacing (in pixels) between tick marks for the Y-Axis- Parameters:
 yAxisTickMarkSpacingHint-
 
- 
isXAxisLogarithmic
public boolean isXAxisLogarithmic()
 
- 
setXAxisLogarithmic
public AxesChartStyler setXAxisLogarithmic(boolean isXAxisLogarithmic)
sets the X-Axis to be rendered with a logarithmic scale or not- Parameters:
 isXAxisLogarithmic-
 
- 
isYAxisLogarithmic
public boolean isYAxisLogarithmic()
 
- 
setYAxisLogarithmic
public AxesChartStyler setYAxisLogarithmic(boolean isYAxisLogarithmic)
sets the Y-Axis to be rendered with a logarithmic scale or not- Parameters:
 isYAxisLogarithmic-
 
- 
getXAxisMin
public Double getXAxisMin()
 
- 
setXAxisMin
public AxesChartStyler setXAxisMin(Double xAxisMin)
 
- 
getXAxisMax
public Double getXAxisMax()
 
- 
setXAxisMax
public AxesChartStyler setXAxisMax(Double xAxisMax)
 
- 
setYAxisMin
public AxesChartStyler setYAxisMin(Integer yAxisGroup, Double yAxisMin)
 
- 
getYAxisMin
public Double getYAxisMin()
 
- 
setYAxisMin
public AxesChartStyler setYAxisMin(Double yAxisMin)
 
- 
setYAxisMax
public AxesChartStyler setYAxisMax(Integer yAxisGroup, Double yAxisMax)
 
- 
getYAxisMax
public Double getYAxisMax()
 
- 
setYAxisMax
public AxesChartStyler setYAxisMax(Double yAxisMax)
 
- 
getXAxisLabelAlignment
public Styler.TextAlignment getXAxisLabelAlignment()
 
- 
setXAxisLabelAlignment
public void setXAxisLabelAlignment(Styler.TextAlignment xAxisLabelAlignment)
 
- 
getYAxisLabelAlignment
public Styler.TextAlignment getYAxisLabelAlignment()
 
- 
setYAxisLabelAlignment
public AxesChartStyler setYAxisLabelAlignment(Styler.TextAlignment yAxisLabelAlignment)
 
- 
getXAxisLabelRotation
public int getXAxisLabelRotation()
 
- 
setXAxisLabelRotation
public AxesChartStyler setXAxisLabelRotation(int xAxisLabelRotation)
 
- 
isPlotGridLinesVisible
public boolean isPlotGridLinesVisible()
 
- 
setPlotGridLinesVisible
public AxesChartStyler setPlotGridLinesVisible(boolean isPlotGridLinesVisible)
sets the visibility of the gridlines inside the plot area- Parameters:
 isPlotGridLinesVisible-
 
- 
isPlotGridHorizontalLinesVisible
public boolean isPlotGridHorizontalLinesVisible()
 
- 
setPlotGridHorizontalLinesVisible
public AxesChartStyler setPlotGridHorizontalLinesVisible(boolean isPlotGridHorizontalLinesVisible)
sets the visibility of the horizontal gridlines on the plot area- Parameters:
 isPlotGridHorizontalLinesVisible-
 
- 
isPlotGridVerticalLinesVisible
public boolean isPlotGridVerticalLinesVisible()
 
- 
setPlotGridVerticalLinesVisible
public AxesChartStyler setPlotGridVerticalLinesVisible(boolean isPlotGridVerticalLinesVisible)
sets the visibility of the vertical gridlines on the plot area- Parameters:
 isPlotGridVerticalLinesVisible-
 
- 
isPlotTicksMarksVisible
public boolean isPlotTicksMarksVisible()
 
- 
setPlotTicksMarksVisible
public AxesChartStyler setPlotTicksMarksVisible(boolean isPlotTicksMarksVisible)
sets the visibility of the ticks marks inside the plot area- Parameters:
 isPlotTicksMarksVisible-
 
- 
getPlotGridLinesColor
public Color getPlotGridLinesColor()
 
- 
setPlotGridLinesColor
public AxesChartStyler setPlotGridLinesColor(Color plotGridLinesColor)
set the plot area's grid lines color- Parameters:
 plotGridLinesColor-
 
- 
getPlotGridLinesStroke
public Stroke getPlotGridLinesStroke()
 
- 
setPlotGridLinesStroke
public AxesChartStyler setPlotGridLinesStroke(Stroke plotGridLinesStroke)
set the plot area's grid lines Stroke- Parameters:
 plotGridLinesStroke-
 
- 
getMarkerSize
public int getMarkerSize()
 
- 
setMarkerSize
public AxesChartStyler setMarkerSize(int markerSize)
Sets the size of the markers (in pixels)- Parameters:
 markerSize-
 
- 
getErrorBarsColor
public Color getErrorBarsColor()
 
- 
setErrorBarsColor
public AxesChartStyler setErrorBarsColor(Color errorBarsColor)
Sets the color of the error bars- Parameters:
 errorBarsColor-
 
- 
isErrorBarsColorSeriesColor
public boolean isErrorBarsColorSeriesColor()
 
- 
setErrorBarsColorSeriesColor
public AxesChartStyler setErrorBarsColorSeriesColor(boolean isErrorBarsColorSeriesColor)
Set true if the the error bar color should match the series color- Returns:
 
 
- 
getLocale
public Locale getLocale()
 
- 
setLocale
public AxesChartStyler setLocale(Locale locale)
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
public TimeZone getTimezone()
 
- 
setTimezone
public AxesChartStyler setTimezone(TimeZone timezone)
Set the timezone to use for formatting Date axis tick labels- Parameters:
 timezone- the timezone to use when formatting date data
 
- 
getDatePattern
public String getDatePattern()
 
- 
setDatePattern
public AxesChartStyler setDatePattern(String datePattern)
Set the String formatter for Data x-axis- Parameters:
 datePattern- - the pattern describing the date and time format
 
- 
getXAxisDecimalPattern
public String getXAxisDecimalPattern()
 
- 
setXAxisDecimalPattern
public AxesChartStyler setXAxisDecimalPattern(String xAxisDecimalPattern)
Set the decimal formatting pattern for the X-Axis- Parameters:
 xAxisDecimalPattern-
 
- 
getYAxisDecimalPattern
public String getYAxisDecimalPattern()
 
- 
setYAxisDecimalPattern
public AxesChartStyler setYAxisDecimalPattern(String yAxisDecimalPattern)
Set the decimal formatting pattern for the Y-Axis- Parameters:
 yAxisDecimalPattern-
 
- 
isXAxisLogarithmicDecadeOnly
public boolean isXAxisLogarithmicDecadeOnly()
 
- 
setXAxisLogarithmicDecadeOnly
public AxesChartStyler setXAxisLogarithmicDecadeOnly(boolean xAxisLogarithmicDecadeOnly)
Set the decade only support for logarithmic Y-Axis- Parameters:
 xAxisLogarithmicDecadeOnly-
 
- 
isYAxisLogarithmicDecadeOnly
public boolean isYAxisLogarithmicDecadeOnly()
 
- 
setYAxisLogarithmicDecadeOnly
public AxesChartStyler setYAxisLogarithmicDecadeOnly(boolean yAxisLogarithmicDecadeOnly)
Set the decade only support for logarithmic Y-Axis- Parameters:
 yAxisLogarithmicDecadeOnly-
 
- 
getXAxisLabelAlignmentVertical
public Styler.TextAlignment getXAxisLabelAlignmentVertical()
 
- 
setXAxisLabelAlignmentVertical
public void setXAxisLabelAlignmentVertical(Styler.TextAlignment xAxisLabelAlignmentVertical)
 
 - 
 
 -