Package org.jfree.chart.axis
Class CategoryAxis3D
java.lang.Object
org.jfree.chart.axis.Axis
org.jfree.chart.axis.CategoryAxis
org.jfree.chart.axis.CategoryAxis3D
- All Implemented Interfaces:
Serializable,Cloneable
public class CategoryAxis3D extends CategoryAxis implements Cloneable, Serializable
An axis that displays categories and has a 3D effect. Used for bar charts and
line charts.
- Author:
- Klaus Rheinwald
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.jfree.chart.axis.CategoryAxis
DEFAULT_AXIS_MARGIN, DEFAULT_CATEGORY_MARGINFields inherited from class org.jfree.chart.axis.Axis
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE -
Constructor Summary
Constructors Constructor Description CategoryAxis3D()Creates a new axis.CategoryAxis3D(String label)Creates a new axis using default attribute values. -
Method Summary
Modifier and Type Method Description Objectclone()Returns a clone of the axis.AxisStatedraw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, PlotRenderingInfo plotState)Draws the axis on a Java 2D graphics device (such as the screen or a printer).Methods inherited from class org.jfree.chart.axis.CategoryAxis
addCategoryLabelToolTip, clearCategoryLabelToolTips, configure, equals, getBottomCategoryLabelPosition, getCategoryEnd, getCategoryJava2DCoordinate, getCategoryLabelPositionOffset, getCategoryLabelPositions, getCategoryMargin, getCategoryMiddle, getCategoryStart, getLeftCategoryLabelPosition, getLowerMargin, getMaxCategoryLabelWidthRatio, getRightCategoryLabelPosition, getSkipCategoryLabelsToFit, getTopCategoryLabelPosition, getUpperMargin, isVerticalCategoryLabels, refreshTicks, removeCategoryLabelToolTip, reserveSpace, setBottomCategoryLabelPosition, setCategoryLabelPositionOffset, setCategoryLabelPositions, setCategoryMargin, setLeftCategoryLabelPosition, setLowerMargin, setMaxCategoryLabelWidthRatio, setRightCategoryLabelPosition, setSkipCategoryLabelsToFit, setSkipLabels, setTopCategoryLabelPosition, setUpperMargin, setVerticalCategoryLabelsMethods inherited from class org.jfree.chart.axis.Axis
addChangeListener, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelFont, getLabelInsets, getLabelPaint, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, isAxisLineVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, removeChangeListener, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelPaint, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
-
Constructor Details
-
CategoryAxis3D
public CategoryAxis3D()Creates a new axis. -
CategoryAxis3D
Creates a new axis using default attribute values.- Parameters:
label- the axis label (nullpermitted).
-
-
Method Details
-
draw
public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, org.jfree.ui.RectangleEdge edge, PlotRenderingInfo plotState)Draws the axis on a Java 2D graphics device (such as the screen or a printer).- Overrides:
drawin classCategoryAxis- Parameters:
g2- the graphics device (nullnot permitted).cursor- the cursor location.plotArea- the area within which the axis should be drawn (nullnot permitted).dataArea- the area within which the plot is being drawn (nullnot permitted).edge- the location of the axis (nullnot permitted).plotState- collects information about the plot (nullpermitted).- Returns:
- the axis state (never
null).
-
clone
Returns a clone of the axis.- Overrides:
clonein classCategoryAxis- Returns:
- A clone.
- Throws:
CloneNotSupportedException- If the axis is not cloneable for some reason.
-