Class AbstractAxis<T>
java.lang.Object
com.amalgamasimulation.charts.axes.AbstractAxis<T>
- Type Parameters:
T- axis value type
- Direct Known Subclasses:
BarChartCategoryXAxis,BarChartNumericYAxis,GanttChartCategoryYAxis,GanttChartNumericXAxis,GanttChartTimeXAxis,HeatmapChartXAxis,HeatmapChartYAxis,LineChartNumericXAxis,LineChartNumericYAxis,LineChartTimeXAxis
Base class that represents an axis drawn on a chart area. It holds properties
for the axis ranging, as well as ticks and labels along the axis.
- Author:
- Aleksey Kirillov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.amalgamasimulation.charts.internals.axes.IChartAxisInternalprotected abstract com.amalgamasimulation.charts.internals.charts.ChartInternal<?, ?, ?, ?> javafx.scene.paint.ColorReturns the color of this axis labels.javafx.scene.text.FontReturns the font of this axis labels.intReturns the font size of this axis labels.setGridLinesColor(Color color) Sets the new color to the grid lines of this axis.setGridLinesColor(javafx.scene.paint.Color color) Sets the new color to the grid lines.setGridLinesVisible(boolean visible) Specifies whether grid lines should be drawn and redraws this axis and it's parent chart if the visibility is changed.setGridLinesWidth(int width) Sets the new width to the grid lines of this axis, in pixels.setLabelsColor(Color color) Sets the new color to this axis labels.setLabelsColor(javafx.scene.paint.Color color) Sets the new color to this axis labels.setLabelsFont(javafx.scene.text.Font font) Sets the new font to this axis labels.setLabelsFontSize(int fontSize) Sets the new font size to this axis labels.
-
Constructor Details
-
AbstractAxis
public AbstractAxis()
-
-
Method Details
-
getAxisInternal
protected abstract com.amalgamasimulation.charts.internals.axes.IChartAxisInternal getAxisInternal() -
getChartInternal
protected abstract com.amalgamasimulation.charts.internals.charts.ChartInternal<?,?, getChartInternal()?, ?> -
setLabelsFont
Sets the new font to this axis labels. Redraws this axis and it's parent chart if font is changed.- Parameters:
font- new axis labels font- Returns:
- reference to this object
- See Also:
-
setLabelsFontSize
Sets the new font size to this axis labels. Redraws this axis and it's parent chart if font size is changed.- Parameters:
fontSize- new axis labels font size- Returns:
- reference to this object
- See Also:
-
setLabelsColor
Sets the new color to this axis labels. Redraws this axis and it's parent chart if color is changed.- Parameters:
color- new axis labels color- Returns:
- reference to this object
- See Also:
-
setLabelsColor
Sets the new color to this axis labels. Redraws this axis and it's parent chart if color is changed.- Parameters:
color- new axis labels color- Returns:
- reference to this object
- See Also:
-
getLabelsFont
public javafx.scene.text.Font getLabelsFont()Returns the font of this axis labels.- Returns:
- the font of this axis labels
-
getLabelsFontSize
public int getLabelsFontSize()Returns the font size of this axis labels.- Returns:
- the font size of this axis labels
-
getLabelsColor
public javafx.scene.paint.Color getLabelsColor()Returns the color of this axis labels.- Returns:
- the color of this axis labels
-
setGridLinesVisible
Specifies whether grid lines should be drawn and redraws this axis and it's parent chart if the visibility is changed. Redraws this chart if visibility is changed.- Parameters:
visible-trueif grid lines should be drawn,falseotherwise- Returns:
- reference to this object
- See Also:
-
setGridLinesColor
Sets the new color to the grid lines of this axis. Transparent and semi-transparent colors are allowed. Redraws this axis and it's parent chart if color is changed.- Parameters:
color- new grid line color- Returns:
- reference to this object
- See Also:
-
setGridLinesColor
Sets the new color to the grid lines. Transparent and semi-transparent colors are allowed. Redraws this axis and it's parent chart if color is changed.- Parameters:
color- new grid line color- Returns:
- reference to this object
- See Also:
-
setGridLinesWidth
Sets the new width to the grid lines of this axis, in pixels. Redraws this axis and it's parent chart if width is changed.- Parameters:
width- new grid lines width, in pixels- Returns:
- reference to this object
- See Also:
-