Example usage for Java org.jfree.chart.axis CategoryAxis fields, constructors, methods, implement or subclass
The text is from its open source code.
double | DEFAULT_CATEGORY_MARGIN The default margin between categories (a percentage of the overall axis length). |
CategoryAxis(String label) Constructs a category axis, using default values where necessary. | |
CategoryAxis() Creates a new category axis with no label. |
void | addCategoryLabelToolTip(Comparable category, String tooltip) Adds a tooltip to the specified category and sends an AxisChangeEvent to all registered listeners. |
void | clearCategoryLabelToolTips() Clears the category label tooltips and sends an AxisChangeEvent to all registered listeners. |
Paint | getAxisLinePaint() Returns the paint used to draw the axis line. |
double | getCategoryEnd(int category, int categoryCount, Rectangle2D area, RectangleEdge edge) Returns the end coordinate for the specified category. |
double | getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge) Returns the Java 2D coordinate for a category. |
CategoryLabelPositions | getCategoryLabelPositions() Returns the category label position specification (this contains label positioning info for all four possible axis locations). |
double | getCategoryMargin() Returns the category margin. |
double | getCategoryMiddle(int category, int categoryCount, Rectangle2D area, RectangleEdge edge) Returns the middle coordinate for the specified category. |
double | getCategoryMiddle(Comparable category, List categories, Rectangle2D area, RectangleEdge edge) A convenience method that returns the axis coordinate for the centre of a category. |
double | getCategorySeriesMiddle(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. |
double | getCategorySeriesMiddle(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. |
double | getCategoryStart(int category, int categoryCount, Rectangle2D area, RectangleEdge edge) Returns the starting coordinate for the specified category. |
String | getLabel() Returns the label for the axis. |
Font | getLabelFont() Returns the font for the axis label. |
Paint | getLabelPaint() Returns the color/shade used to draw the axis label. |
double | getLowerMargin() Returns the lower margin for the axis. |
Font | getTickLabelFont() Returns the font used for the tick labels (if showing). |
Paint | getTickLabelPaint() Returns the color/shade used for the tick labels. |
Paint | getTickMarkPaint() Returns the paint used to draw tick marks (if they are showing). |
double | getUpperMargin() Returns the upper margin for the axis. |
boolean | isTickLabelsVisible() Returns a flag indicating whether or not the tick labels are visible. |
boolean | isTickMarksVisible() Returns the flag that indicates whether or not the tick marks are showing. |
void | setAxisLinePaint(Paint paint) Sets the paint used to draw the axis line and sends an AxisChangeEvent to all registered listeners. |
void | setAxisLineStroke(Stroke stroke) Sets the stroke used to draw the axis line and sends an AxisChangeEvent to all registered listeners. |
void | setAxisLineVisible(boolean visible) Sets a flag that controls whether or not the axis line is visible and sends an AxisChangeEvent to all registered listeners. |
void | setCategoryLabelPositionOffset(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. |
void | setCategoryLabelPositions(CategoryLabelPositions positions) Sets the category label position specification for the axis and sends an AxisChangeEvent to all registered listeners. |
void | setCategoryMargin(double margin) Sets the category margin and sends an AxisChangeEvent to all registered listeners. |
void | setLabel(String label) Sets the label for the axis and sends an AxisChangeEvent to all registered listeners. |
void | setLabelAngle(double angle) Sets the angle for the label and sends an AxisChangeEvent to all registered listeners. |
void | setLabelFont(Font font) Sets the font for the axis label and sends an AxisChangeEvent to all registered listeners. |
void | setLabelPaint(Paint paint) Sets the paint used to draw the axis label and sends an AxisChangeEvent to all registered listeners. |
void | setLowerMargin(double margin) Sets the lower margin for the axis and sends an AxisChangeEvent to all registered listeners. |
void | setMaximumCategoryLabelLines(int lines) Sets the maximum number of lines to use for each category label and sends an AxisChangeEvent to all registered listeners. |
void | setMaximumCategoryLabelWidthRatio(float ratio) Sets the maximum category label width ratio and sends an AxisChangeEvent to all registered listeners. |
void | setTickLabelFont(Font font) Sets the font for the tick labels and sends an AxisChangeEvent to all registered listeners. |
void | setTickLabelPaint(Comparable category, Paint paint) Sets the paint for the tick label for the specified category and sends an AxisChangeEvent to all registered listeners. |
void | setTickLabelPaint(Paint paint) Sets the paint used to draw tick labels (if they are showing) and sends an AxisChangeEvent to all registered listeners. |
void | setTickLabelsVisible(boolean flag) Sets the flag that determines whether or not the tick labels are visible and sends an AxisChangeEvent to all registered listeners. |
void | setTickMarkPaint(Paint paint) Sets the paint used to draw tick marks and sends an AxisChangeEvent to all registered listeners. |
void | setTickMarksVisible(boolean flag) Sets the flag that indicates whether or not the tick marks are showing and sends an AxisChangeEvent to all registered listeners. |
void | setUpperMargin(double margin) Sets the upper margin for the axis and sends an AxisChangeEvent to all registered listeners. |
void | setVisible(boolean flag) Sets a flag that controls whether or not the axis is visible and sends an AxisChangeEvent to all registered listeners. |