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 Color
getAxisTickLabelsColor()
Font
getAxisTickLabelsFont()
int
getAxisTickMarkLength()
Color
getAxisTickMarksColor()
Stroke
getAxisTickMarksStroke()
int
getAxisTickPadding()
Font
getAxisTitleFont()
int
getAxisTitlePadding()
String
getDatePattern()
Color
getErrorBarsColor()
Locale
getLocale()
int
getMarkerSize()
Color
getPlotGridLinesColor()
Stroke
getPlotGridLinesStroke()
int
getPlotMargin()
TimeZone
getTimezone()
String
getXAxisDecimalPattern()
Styler.TextAlignment
getXAxisLabelAlignment()
Styler.TextAlignment
getXAxisLabelAlignmentVertical()
int
getXAxisLabelRotation()
Double
getXAxisMax()
Double
getXAxisMin()
int
getXAxisTickMarkSpacingHint()
String
getYAxisDecimalPattern()
Styler.TextAlignment
getYAxisLabelAlignment()
Double
getYAxisMax()
Double
getYAxisMax(Integer yAxisGroup)
Double
getYAxisMin()
Double
getYAxisMin(Integer yAxisGroup)
int
getYAxisTickMarkSpacingHint()
boolean
isAxisTicksLineVisible()
boolean
isAxisTicksMarksVisible()
boolean
isErrorBarsColorSeriesColor()
boolean
isPlotGridHorizontalLinesVisible()
boolean
isPlotGridLinesVisible()
boolean
isPlotGridVerticalLinesVisible()
boolean
isPlotTicksMarksVisible()
boolean
isXAxisLogarithmic()
boolean
isXAxisLogarithmicDecadeOnly()
boolean
isXAxisTicksVisible()
boolean
isXAxisTitleVisible()
boolean
isYAxisLogarithmic()
boolean
isYAxisLogarithmicDecadeOnly()
boolean
isYAxisTicksVisible()
boolean
isYAxisTitleVisible()
AxesChartStyler
setAxisTickLabelsColor(Color axisTickLabelsColor)
sets the axis tick label colorAxesChartStyler
setAxisTickLabelsFont(Font axisTicksFont)
Set the x- and y-axis tick label fontAxesChartStyler
setAxisTickMarkLength(int axisTickMarkLength)
Set the axis tick mark length (in pixels)AxesChartStyler
setAxisTickMarksColor(Color axisTickColor)
sets the axis tick mark colorAxesChartStyler
setAxisTickMarksStroke(Stroke axisTickMarksStroke)
sets the axis tick marks StrokeAxesChartStyler
setAxisTickPadding(int axisTickPadding)
sets the padding (in pixels) between the tick labels and the tick marksAxesChartStyler
setAxisTicksLineVisible(boolean isAxisTicksLineVisible)
sets the visibility of the line parallel to the plot edges that go along with the tick marksAxesChartStyler
setAxisTicksMarksVisible(boolean isAxisTicksMarksVisible)
sets the visibility of the tick marksAxesChartStyler
setAxisTicksVisible(boolean isVisible)
Set the x- and y-axis tick marks and labels visibilityAxesChartStyler
setAxisTitleFont(Font axisTitleFont)
Set the x- and y-axis title fontAxesChartStyler
setAxisTitlePadding(int axisTitlePadding)
sets the padding (in pixels) between the axis title and the tick labelsAxesChartStyler
setAxisTitlesVisible(boolean isVisible)
Set the x- and y-axis titles visibilityAxesChartStyler
setDatePattern(String datePattern)
Set the String formatter for Data x-axisAxesChartStyler
setErrorBarsColor(Color errorBarsColor)
Sets the color of the error barsAxesChartStyler
setErrorBarsColorSeriesColor(boolean isErrorBarsColorSeriesColor)
Set true if the the error bar color should match the series colorAxesChartStyler
setLocale(Locale locale)
Set the locale to use for rendering the chartAxesChartStyler
setMarkerSize(int markerSize)
Sets the size of the markers (in pixels)AxesChartStyler
setPlotGridHorizontalLinesVisible(boolean isPlotGridHorizontalLinesVisible)
sets the visibility of the horizontal gridlines on the plot areaAxesChartStyler
setPlotGridLinesColor(Color plotGridLinesColor)
set the plot area's grid lines colorAxesChartStyler
setPlotGridLinesStroke(Stroke plotGridLinesStroke)
set the plot area's grid lines StrokeAxesChartStyler
setPlotGridLinesVisible(boolean isPlotGridLinesVisible)
sets the visibility of the gridlines inside the plot areaAxesChartStyler
setPlotGridVerticalLinesVisible(boolean isPlotGridVerticalLinesVisible)
sets the visibility of the vertical gridlines on the plot areaAxesChartStyler
setPlotMargin(int plotMargin)
sets the margin (in pixels) around the plot areaAxesChartStyler
setPlotTicksMarksVisible(boolean isPlotTicksMarksVisible)
sets the visibility of the ticks marks inside the plot areaAxesChartStyler
setTimezone(TimeZone timezone)
Set the timezone to use for formatting Date axis tick labelsAxesChartStyler
setXAxisDecimalPattern(String xAxisDecimalPattern)
Set the decimal formatting pattern for the X-Axisvoid
setXAxisLabelAlignment(Styler.TextAlignment xAxisLabelAlignment)
void
setXAxisLabelAlignmentVertical(Styler.TextAlignment xAxisLabelAlignmentVertical)
AxesChartStyler
setXAxisLabelRotation(int xAxisLabelRotation)
AxesChartStyler
setXAxisLogarithmic(boolean isXAxisLogarithmic)
sets the X-Axis to be rendered with a logarithmic scale or notAxesChartStyler
setXAxisLogarithmicDecadeOnly(boolean xAxisLogarithmicDecadeOnly)
Set the decade only support for logarithmic Y-AxisAxesChartStyler
setXAxisMax(Double xAxisMax)
AxesChartStyler
setXAxisMin(Double xAxisMin)
AxesChartStyler
setXAxisTickMarkSpacingHint(int xAxisTickMarkSpacingHint)
set the spacing (in pixels) between tick marks for the X-AxisAxesChartStyler
setXAxisTicksVisible(boolean xAxisTicksVisible)
Set the x-axis tick marks and labels visibilityAxesChartStyler
setXAxisTitleVisible(boolean xAxisTitleVisible)
Set the x-axis title visibilityAxesChartStyler
setYAxisDecimalPattern(String yAxisDecimalPattern)
Set the decimal formatting pattern for the Y-AxisAxesChartStyler
setYAxisLabelAlignment(Styler.TextAlignment yAxisLabelAlignment)
AxesChartStyler
setYAxisLogarithmic(boolean isYAxisLogarithmic)
sets the Y-Axis to be rendered with a logarithmic scale or notAxesChartStyler
setYAxisLogarithmicDecadeOnly(boolean yAxisLogarithmicDecadeOnly)
Set the decade only support for logarithmic Y-AxisAxesChartStyler
setYAxisMax(Double yAxisMax)
AxesChartStyler
setYAxisMax(Integer yAxisGroup, Double yAxisMax)
AxesChartStyler
setYAxisMin(Double yAxisMin)
AxesChartStyler
setYAxisMin(Integer yAxisGroup, Double yAxisMin)
AxesChartStyler
setYAxisTickMarkSpacingHint(int yAxisTickMarkSpacingHint)
set the spacing (in pixels) between tick marks for the Y-AxisAxesChartStyler
setYAxisTicksVisible(boolean yAxisTicksVisible)
Set the y-axis tick marks and labels visibilityAxesChartStyler
setYAxisTitleVisible(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)
-
-