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

public abstract class AbstractAxis<T> extends Object
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 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

      public AbstractAxis<T> setLabelsFont(javafx.scene.text.Font font)
      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

      public AbstractAxis<T> setLabelsFontSize(int fontSize)
      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

      public AbstractAxis<T> setLabelsColor(Color color)
      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

      public AbstractAxis<T> setLabelsColor(javafx.scene.paint.Color color)
      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

      public AbstractAxis<T> setGridLinesVisible(boolean visible)
      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 - true if grid lines should be drawn, false otherwise
      Returns:
      reference to this object
      See Also:
    • setGridLinesColor

      public AbstractAxis<T> setGridLinesColor(Color color)
      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

      public AbstractAxis<T> setGridLinesColor(javafx.scene.paint.Color color)
      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

      public AbstractAxis<T> setGridLinesWidth(int width)
      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: