Java org.jfree.chart.axis CategoryAxis fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.chart.axis CategoryAxis fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.chart.axis CategoryAxis.

The text is from its open source code.

Subclass

org.jfree.chart.axis.CategoryAxis has subclasses.
Click this link to see all its subclasses.

Field

doubleDEFAULT_CATEGORY_MARGIN
The default margin between categories (a percentage of the overall axis length).

Constructor

CategoryAxis(String label)
Constructs a category axis, using default values where necessary.
CategoryAxis()
Creates a new category axis with no label.

Method

voidaddCategoryLabelToolTip(Comparable category, String tooltip)
Adds a tooltip to the specified category and sends an AxisChangeEvent to all registered listeners.
voidclearCategoryLabelToolTips()
Clears the category label tooltips and sends an AxisChangeEvent to all registered listeners.
PaintgetAxisLinePaint()
Returns the paint used to draw the axis line.
doublegetCategoryEnd(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the end coordinate for the specified category.
doublegetCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the Java 2D coordinate for a category.
CategoryLabelPositionsgetCategoryLabelPositions()
Returns the category label position specification (this contains label positioning info for all four possible axis locations).
doublegetCategoryMargin()
Returns the category margin.
doublegetCategoryMiddle(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the middle coordinate for the specified category.
doublegetCategoryMiddle(Comparable category, List categories, Rectangle2D area, RectangleEdge edge)
A convenience method that returns the axis coordinate for the centre of a category.
doublegetCategorySeriesMiddle(int categoryIndex, int categoryCount, int seriesIndex, int seriesCount, double itemMargin, Rectangle2D area, RectangleEdge edge)
Returns the middle coordinate (in Java2D space) for a series within a category.
doublegetCategorySeriesMiddle(Comparable category, Comparable seriesKey, CategoryDataset dataset, double itemMargin, Rectangle2D area, RectangleEdge edge)
Returns the middle coordinate (in Java2D space) for a series within a category.
doublegetCategoryStart(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the starting coordinate for the specified category.
StringgetLabel()
Returns the label for the axis.
FontgetLabelFont()
Returns the font for the axis label.
PaintgetLabelPaint()
Returns the color/shade used to draw the axis label.
doublegetLowerMargin()
Returns the lower margin for the axis.
FontgetTickLabelFont()
Returns the font used for the tick labels (if showing).
PaintgetTickLabelPaint()
Returns the color/shade used for the tick labels.
PaintgetTickMarkPaint()
Returns the paint used to draw tick marks (if they are showing).
doublegetUpperMargin()
Returns the upper margin for the axis.
booleanisTickLabelsVisible()
Returns a flag indicating whether or not the tick labels are visible.
booleanisTickMarksVisible()
Returns the flag that indicates whether or not the tick marks are showing.
voidsetAxisLinePaint(Paint paint)
Sets the paint used to draw the axis line and sends an AxisChangeEvent to all registered listeners.
voidsetAxisLineStroke(Stroke stroke)
Sets the stroke used to draw the axis line and sends an AxisChangeEvent to all registered listeners.
voidsetAxisLineVisible(boolean visible)
Sets a flag that controls whether or not the axis line is visible and sends an AxisChangeEvent to all registered listeners.
voidsetCategoryLabelPositionOffset(int offset)
Sets the offset between the axis and the category labels (before label positioning is taken into account) and sends a change event to all registered listeners.
voidsetCategoryLabelPositions(CategoryLabelPositions positions)
Sets the category label position specification for the axis and sends an AxisChangeEvent to all registered listeners.
voidsetCategoryMargin(double margin)
Sets the category margin and sends an AxisChangeEvent to all registered listeners.
voidsetLabel(String label)
Sets the label for the axis and sends an AxisChangeEvent to all registered listeners.
voidsetLabelAngle(double angle)
Sets the angle for the label and sends an AxisChangeEvent to all registered listeners.
voidsetLabelFont(Font font)
Sets the font for the axis label and sends an AxisChangeEvent to all registered listeners.
voidsetLabelPaint(Paint paint)
Sets the paint used to draw the axis label and sends an AxisChangeEvent to all registered listeners.
voidsetLowerMargin(double margin)
Sets the lower margin for the axis and sends an AxisChangeEvent to all registered listeners.
voidsetMaximumCategoryLabelLines(int lines)
Sets the maximum number of lines to use for each category label and sends an AxisChangeEvent to all registered listeners.
voidsetMaximumCategoryLabelWidthRatio(float ratio)
Sets the maximum category label width ratio and sends an AxisChangeEvent to all registered listeners.
voidsetTickLabelFont(Font font)
Sets the font for the tick labels and sends an AxisChangeEvent to all registered listeners.
voidsetTickLabelPaint(Comparable category, Paint paint)
Sets the paint for the tick label for the specified category and sends an AxisChangeEvent to all registered listeners.
voidsetTickLabelPaint(Paint paint)
Sets the paint used to draw tick labels (if they are showing) and sends an AxisChangeEvent to all registered listeners.
voidsetTickLabelsVisible(boolean flag)
Sets the flag that determines whether or not the tick labels are visible and sends an AxisChangeEvent to all registered listeners.
voidsetTickMarkPaint(Paint paint)
Sets the paint used to draw tick marks and sends an AxisChangeEvent to all registered listeners.
voidsetTickMarksVisible(boolean flag)
Sets the flag that indicates whether or not the tick marks are showing and sends an AxisChangeEvent to all registered listeners.
voidsetUpperMargin(double margin)
Sets the upper margin for the axis and sends an AxisChangeEvent to all registered listeners.
voidsetVisible(boolean flag)
Sets a flag that controls whether or not the axis is visible and sends an AxisChangeEvent to all registered listeners.