- java.lang.Object
-
- org.jfree.chart.axis.Axis
-
- org.jfree.chart.axis.CategoryAxis
-
- All Implemented Interfaces:
Serializable,Cloneable,ChartElement
- Direct Known Subclasses:
ExtendedCategoryAxis,SubCategoryAxis
public class CategoryAxis extends Axis implements Cloneable, Serializable
An axis that displays categories.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_AXIS_MARGINThe default margin for the axis (used for both lower and upper margins).static doubleDEFAULT_CATEGORY_MARGINThe default margin between categories (a percentage of the overall axis length).-
Fields 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 CategoryAxis()Creates a new category axis with no label.CategoryAxis(String label)Constructs a category axis, using default values where necessary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCategoryLabelToolTip(Comparable category, String tooltip)Adds a tooltip to the specified category and sends anAxisChangeEventto all registered listeners.voidaddCategoryLabelURL(Comparable category, String url)Adds a URL (to be used in image maps) to the specified category and sends anAxisChangeEventto all registered listeners.protected doublecalculateCategoryGapSize(int categoryCount, Rectangle2D area, RectangleEdge edge)Calculates the size (width or height, depending on the location of the axis) of a category gap.protected doublecalculateCategoryLabelHeight(TextBlock block, CategoryLabelPosition position, RectangleInsets insets, Graphics2D g2)Calculates the height of a category label when rendered.protected doublecalculateCategoryLabelWidth(TextBlock label, CategoryLabelPosition position, RectangleInsets insets, Graphics2D g2)Calculates the width of a category label when rendered.protected doublecalculateCategorySize(int categoryCount, Rectangle2D area, RectangleEdge edge)Calculates the size (width or height, depending on the location of the axis) of a category.voidclearCategoryLabelToolTips()Clears the category label tooltips and sends anAxisChangeEventto all registered listeners.voidclearCategoryLabelURLs()Clears the category label URLs and sends anAxisChangeEventto all registered listeners.Objectclone()Creates a clone of the axis.voidconfigure()Configures the axis against the current plot.protected TextBlockcreateLabel(Comparable category, float width, RectangleEdge edge, Graphics2D g2)Creates a label.AxisStatedraw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)Draws the axis on a Java 2D graphics device (such as the screen or a printer).protected AxisStatedrawCategoryLabels(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)Draws the category labels and returns the updated axis state.voiddrawTickMarks(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge, AxisState state)Draws the tick marks.booleanequals(Object obj)Tests this axis for equality with an arbitrary object.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.intgetCategoryLabelPositionOffset()Returns the offset between the axis and the category labels (before label positioning is taken into account).CategoryLabelPositionsgetCategoryLabelPositions()Returns the category label position specification (this contains label positioning info for all four possible axis locations).StringgetCategoryLabelToolTip(Comparable category)Returns the tool tip text for the label belonging to the specified category.StringgetCategoryLabelURL(Comparable category)Returns the URL for the label belonging to the specified category.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.doublegetLowerMargin()Returns the lower margin for the axis.intgetMaximumCategoryLabelLines()Returns the maximum number of lines to use for each category label.floatgetMaximumCategoryLabelWidthRatio()Returns the category label width ratio.FontgetTickLabelFont(Comparable category)Returns the font for the tick label for the given category.PaintgetTickLabelPaint(Comparable category)Returns the paint for the tick label for the given category.doublegetUpperMargin()Returns the upper margin for the axis.inthashCode()Returns a hash code for this object.ListrefreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)Creates a temporary list of ticks that can be used when drawing the axis.voidremoveCategoryLabelToolTip(Comparable category)Removes the tooltip for the specified category and, if there was a value associated with that category, sends anAxisChangeEventto all registered listeners.voidremoveCategoryLabelURL(Comparable category)Removes the URL for the specified category and, if there was a URL associated with that category, sends anAxisChangeEventto all registered listeners.AxisSpacereserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)Estimates the space required for the axis, given a specific drawing area.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 anAxisChangeEventto all registered listeners.voidsetCategoryMargin(double margin)Sets the category margin and sends anAxisChangeEventto all registered listeners.voidsetLowerMargin(double margin)Sets the lower margin for the axis and sends anAxisChangeEventto all registered listeners.voidsetMaximumCategoryLabelLines(int lines)Sets the maximum number of lines to use for each category label and sends anAxisChangeEventto all registered listeners.voidsetMaximumCategoryLabelWidthRatio(float ratio)Sets the maximum category label width ratio and sends anAxisChangeEventto all registered listeners.voidsetTickLabelFont(Comparable category, Font font)Sets the font for the tick label for the specified category and sends anAxisChangeEventto all registered listeners.voidsetTickLabelPaint(Comparable category, Paint paint)Sets the paint for the tick label for the specified category and sends anAxisChangeEventto all registered listeners.voidsetUpperMargin(double margin)Sets the upper margin for the axis and sends anAxisChangeEventto all registered listeners.-
Methods inherited from class org.jfree.chart.axis.Axis
addChangeListener, createAndAddEntity, createAttributedLabel, drawAttributedLabel, drawAxisLine, drawLabel, fireChangeEvent, getAttributedLabel, getAxisLinePaint, getAxisLineStroke, getFixedDimension, getLabel, getLabelAngle, getLabelEnclosure, getLabelFont, getLabelInsets, getLabelLocation, getLabelPaint, getMinorTickMarkInsideLength, getMinorTickMarkOutsideLength, getPlot, getTickLabelFont, getTickLabelInsets, getTickLabelPaint, getTickMarkInsideLength, getTickMarkOutsideLength, getTickMarkPaint, getTickMarkStroke, hasListener, isAxisLineVisible, isMinorTickMarksVisible, isTickLabelsVisible, isTickMarksVisible, isVisible, labelAnchorH, labelAnchorV, labelLocationX, labelLocationY, notifyListeners, receive, removeChangeListener, setAttributedLabel, setAttributedLabel, setAxisLinePaint, setAxisLineStroke, setAxisLineVisible, setFixedDimension, setLabel, setLabelAngle, setLabelFont, setLabelInsets, setLabelInsets, setLabelLocation, setLabelPaint, setMinorTickMarkInsideLength, setMinorTickMarkOutsideLength, setMinorTickMarksVisible, setPlot, setTickLabelFont, setTickLabelInsets, setTickLabelPaint, setTickLabelsVisible, setTickMarkInsideLength, setTickMarkOutsideLength, setTickMarkPaint, setTickMarkStroke, setTickMarksVisible, setVisible
-
-
-
-
Field Detail
-
DEFAULT_AXIS_MARGIN
public static final double DEFAULT_AXIS_MARGIN
The default margin for the axis (used for both lower and upper margins).- See Also:
- Constant Field Values
-
DEFAULT_CATEGORY_MARGIN
public static final double DEFAULT_CATEGORY_MARGIN
The default margin between categories (a percentage of the overall axis length).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CategoryAxis
public CategoryAxis()
Creates a new category axis with no label.
-
CategoryAxis
public CategoryAxis(String label)
Constructs a category axis, using default values where necessary.- Parameters:
label- the axis label (nullpermitted).
-
-
Method Detail
-
getLowerMargin
public double getLowerMargin()
Returns the lower margin for the axis.- Returns:
- The margin.
- See Also:
getUpperMargin(),setLowerMargin(double)
-
setLowerMargin
public void setLowerMargin(double margin)
Sets the lower margin for the axis and sends anAxisChangeEventto all registered listeners.- Parameters:
margin- the margin as a percentage of the axis length (for example, 0.05 is five percent).- See Also:
getLowerMargin()
-
getUpperMargin
public double getUpperMargin()
Returns the upper margin for the axis.- Returns:
- The margin.
- See Also:
getLowerMargin(),setUpperMargin(double)
-
setUpperMargin
public void setUpperMargin(double margin)
Sets the upper margin for the axis and sends anAxisChangeEventto all registered listeners.- Parameters:
margin- the margin as a percentage of the axis length (for example, 0.05 is five percent).- See Also:
getUpperMargin()
-
getCategoryMargin
public double getCategoryMargin()
Returns the category margin.- Returns:
- The margin.
- See Also:
setCategoryMargin(double)
-
setCategoryMargin
public void setCategoryMargin(double margin)
Sets the category margin and sends anAxisChangeEventto all registered listeners. The overall category margin is distributed over N-1 gaps, where N is the number of categories on the axis.- Parameters:
margin- the margin as a percentage of the axis length (for example, 0.05 is five percent).- See Also:
getCategoryMargin()
-
getMaximumCategoryLabelLines
public int getMaximumCategoryLabelLines()
Returns the maximum number of lines to use for each category label.- Returns:
- The maximum number of lines.
- See Also:
setMaximumCategoryLabelLines(int)
-
setMaximumCategoryLabelLines
public void setMaximumCategoryLabelLines(int lines)
Sets the maximum number of lines to use for each category label and sends anAxisChangeEventto all registered listeners.- Parameters:
lines- the maximum number of lines.- See Also:
getMaximumCategoryLabelLines()
-
getMaximumCategoryLabelWidthRatio
public float getMaximumCategoryLabelWidthRatio()
Returns the category label width ratio.- Returns:
- The ratio.
- See Also:
setMaximumCategoryLabelWidthRatio(float)
-
setMaximumCategoryLabelWidthRatio
public void setMaximumCategoryLabelWidthRatio(float ratio)
Sets the maximum category label width ratio and sends anAxisChangeEventto all registered listeners.- Parameters:
ratio- the ratio.- See Also:
getMaximumCategoryLabelWidthRatio()
-
getCategoryLabelPositionOffset
public int getCategoryLabelPositionOffset()
Returns the offset between the axis and the category labels (before label positioning is taken into account).- Returns:
- The offset (in Java2D units).
- See Also:
setCategoryLabelPositionOffset(int)
-
setCategoryLabelPositionOffset
public 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.- Parameters:
offset- the offset (in Java2D units).- See Also:
getCategoryLabelPositionOffset()
-
getCategoryLabelPositions
public CategoryLabelPositions getCategoryLabelPositions()
Returns the category label position specification (this contains label positioning info for all four possible axis locations).- Returns:
- The positions (never
null). - See Also:
setCategoryLabelPositions(CategoryLabelPositions)
-
setCategoryLabelPositions
public void setCategoryLabelPositions(CategoryLabelPositions positions)
Sets the category label position specification for the axis and sends anAxisChangeEventto all registered listeners.- Parameters:
positions- the positions (nullnot permitted).- See Also:
getCategoryLabelPositions()
-
getTickLabelFont
public Font getTickLabelFont(Comparable category)
Returns the font for the tick label for the given category.- Parameters:
category- the category (nullnot permitted).- Returns:
- The font (never
null). - See Also:
setTickLabelFont(Comparable, Font)
-
setTickLabelFont
public void setTickLabelFont(Comparable category, Font font)
Sets the font for the tick label for the specified category and sends anAxisChangeEventto all registered listeners.- Parameters:
category- the category (nullnot permitted).font- the font (nullpermitted).- See Also:
getTickLabelFont(Comparable)
-
getTickLabelPaint
public Paint getTickLabelPaint(Comparable category)
Returns the paint for the tick label for the given category.- Parameters:
category- the category (nullnot permitted).- Returns:
- The paint (never
null). - See Also:
Axis.setTickLabelPaint(Paint)
-
setTickLabelPaint
public void setTickLabelPaint(Comparable category, Paint paint)
Sets the paint for the tick label for the specified category and sends anAxisChangeEventto all registered listeners.- Parameters:
category- the category (nullnot permitted).paint- the paint (nullpermitted).- See Also:
getTickLabelPaint(Comparable)
-
addCategoryLabelToolTip
public void addCategoryLabelToolTip(Comparable category, String tooltip)
Adds a tooltip to the specified category and sends anAxisChangeEventto all registered listeners.- Parameters:
category- the category (nullnot permitted).tooltip- the tooltip text (nullpermitted).- See Also:
removeCategoryLabelToolTip(Comparable)
-
getCategoryLabelToolTip
public String getCategoryLabelToolTip(Comparable category)
Returns the tool tip text for the label belonging to the specified category.- Parameters:
category- the category (nullnot permitted).- Returns:
- The tool tip text (possibly
null). - See Also:
addCategoryLabelToolTip(Comparable, String),removeCategoryLabelToolTip(Comparable)
-
removeCategoryLabelToolTip
public void removeCategoryLabelToolTip(Comparable category)
Removes the tooltip for the specified category and, if there was a value associated with that category, sends anAxisChangeEventto all registered listeners.- Parameters:
category- the category (nullnot permitted).- See Also:
addCategoryLabelToolTip(Comparable, String),clearCategoryLabelToolTips()
-
clearCategoryLabelToolTips
public void clearCategoryLabelToolTips()
Clears the category label tooltips and sends anAxisChangeEventto all registered listeners.
-
addCategoryLabelURL
public void addCategoryLabelURL(Comparable category, String url)
Adds a URL (to be used in image maps) to the specified category and sends anAxisChangeEventto all registered listeners.- Parameters:
category- the category (nullnot permitted).url- the URL text (nullpermitted).- See Also:
removeCategoryLabelURL(Comparable)
-
getCategoryLabelURL
public String getCategoryLabelURL(Comparable category)
Returns the URL for the label belonging to the specified category.- Parameters:
category- the category (nullnot permitted).- Returns:
- The URL text (possibly
null). - See Also:
addCategoryLabelURL(Comparable, String),removeCategoryLabelURL(Comparable)
-
removeCategoryLabelURL
public void removeCategoryLabelURL(Comparable category)
Removes the URL for the specified category and, if there was a URL associated with that category, sends anAxisChangeEventto all registered listeners.- Parameters:
category- the category (nullnot permitted).- See Also:
addCategoryLabelURL(Comparable, String),clearCategoryLabelURLs()
-
clearCategoryLabelURLs
public void clearCategoryLabelURLs()
Clears the category label URLs and sends anAxisChangeEventto all registered listeners.
-
getCategoryJava2DCoordinate
public double getCategoryJava2DCoordinate(CategoryAnchor anchor, int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the Java 2D coordinate for a category.- Parameters:
anchor- the anchor point (nullnot permitted).category- the category index.categoryCount- the category count.area- the data area.edge- the location of the axis.- Returns:
- The coordinate.
-
getCategoryStart
public double getCategoryStart(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the starting coordinate for the specified category.- Parameters:
category- the category.categoryCount- the number of categories.area- the data area.edge- the axis location.- Returns:
- The coordinate.
- See Also:
getCategoryMiddle(int, int, Rectangle2D, RectangleEdge),getCategoryEnd(int, int, Rectangle2D, RectangleEdge)
-
getCategoryMiddle
public double getCategoryMiddle(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the middle coordinate for the specified category.- Parameters:
category- the category.categoryCount- the number of categories.area- the data area.edge- the axis location.- Returns:
- The coordinate.
- See Also:
getCategoryStart(int, int, Rectangle2D, RectangleEdge),getCategoryEnd(int, int, Rectangle2D, RectangleEdge)
-
getCategoryEnd
public double getCategoryEnd(int category, int categoryCount, Rectangle2D area, RectangleEdge edge)
Returns the end coordinate for the specified category.- Parameters:
category- the category.categoryCount- the number of categories.area- the data area.edge- the axis location.- Returns:
- The coordinate.
- See Also:
getCategoryStart(int, int, Rectangle2D, RectangleEdge),getCategoryMiddle(int, int, Rectangle2D, RectangleEdge)
-
getCategoryMiddle
public double getCategoryMiddle(Comparable category, List categories, Rectangle2D area, RectangleEdge edge)
A convenience method that returns the axis coordinate for the centre of a category.- Parameters:
category- the category key (nullnot permitted).categories- the categories (nullnot permitted).area- the data area (nullnot permitted).edge- the edge along which the axis lies (nullnot permitted).- Returns:
- The centre coordinate.
- See Also:
getCategorySeriesMiddle(Comparable, Comparable, CategoryDataset, double, Rectangle2D, RectangleEdge)
-
getCategorySeriesMiddle
public 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.- Parameters:
category- the category (nullnot permitted).seriesKey- the series key (nullnot permitted).dataset- the dataset (nullnot permitted).itemMargin- the item margin (0.0 <= itemMargin < 1.0);area- the area (nullnot permitted).edge- the edge (nullnot permitted).- Returns:
- The coordinate in Java2D space.
-
getCategorySeriesMiddle
public 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.- Parameters:
categoryIndex- the category index.categoryCount- the category count.seriesIndex- the series index.seriesCount- the series count.itemMargin- the item margin (0.0 <= itemMargin < 1.0);area- the area (nullnot permitted).edge- the edge (nullnot permitted).- Returns:
- The coordinate in Java2D space.
-
calculateCategorySize
protected double calculateCategorySize(int categoryCount, Rectangle2D area, RectangleEdge edge)
Calculates the size (width or height, depending on the location of the axis) of a category.- Parameters:
categoryCount- the number of categories.area- the area within which the categories will be drawn.edge- the axis location.- Returns:
- The category size.
-
calculateCategoryGapSize
protected double calculateCategoryGapSize(int categoryCount, Rectangle2D area, RectangleEdge edge)
Calculates the size (width or height, depending on the location of the axis) of a category gap.- Parameters:
categoryCount- the number of categories.area- the area within which the categories will be drawn.edge- the axis location.- Returns:
- The category gap width.
-
reserveSpace
public AxisSpace reserveSpace(Graphics2D g2, Plot plot, Rectangle2D plotArea, RectangleEdge edge, AxisSpace space)
Estimates the space required for the axis, given a specific drawing area.- Specified by:
reserveSpacein classAxis- Parameters:
g2- the graphics device (used to obtain font information).plot- the plot that the axis belongs to.plotArea- the area within which the axis should be drawn.edge- the axis location (nullnot permitted).space- the space already reserved.- Returns:
- The space required to draw the axis.
-
configure
public void configure()
Configures the axis against the current plot.
-
draw
public AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState)
Draws the axis on a Java 2D graphics device (such as the screen or a printer).- Specified by:
drawin classAxis- 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).
-
drawCategoryLabels
protected AxisState drawCategoryLabels(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, AxisState state, PlotRenderingInfo plotState)
Draws the category labels and returns the updated axis state.- Parameters:
g2- the graphics device (nullnot permitted).plotArea- the plot area (nullnot permitted).dataArea- the area inside the axes (nullnot permitted).edge- the axis location (nullnot permitted).state- the axis state (nullnot permitted).plotState- collects information about the plot (nullpermitted).- Returns:
- The updated axis state (never
null).
-
refreshTicks
public List refreshTicks(Graphics2D g2, AxisState state, Rectangle2D dataArea, RectangleEdge edge)
Creates a temporary list of ticks that can be used when drawing the axis.- Specified by:
refreshTicksin classAxis- Parameters:
g2- the graphics device (used to get font measurements).state- the axis state.dataArea- the area inside the axes.edge- the location of the axis.- Returns:
- A list of ticks.
-
drawTickMarks
public void drawTickMarks(Graphics2D g2, double cursor, Rectangle2D dataArea, RectangleEdge edge, AxisState state)
Draws the tick marks.- Parameters:
g2- the graphics target.cursor- the cursor position (an offset when drawing multiple axes)dataArea- the area for plotting the data.edge- the location of the axis.state- the axis state.
-
createLabel
protected TextBlock createLabel(Comparable category, float width, RectangleEdge edge, Graphics2D g2)
Creates a label.- Parameters:
category- the category.width- the available width.edge- the edge on which the axis appears.g2- the graphics device.- Returns:
- A label.
-
calculateCategoryLabelWidth
protected double calculateCategoryLabelWidth(TextBlock label, CategoryLabelPosition position, RectangleInsets insets, Graphics2D g2)
Calculates the width of a category label when rendered.- Parameters:
label- the text block (nullnot permitted).position- the position.insets- the label insets.g2- the graphics device.- Returns:
- The width.
-
calculateCategoryLabelHeight
protected double calculateCategoryLabelHeight(TextBlock block, CategoryLabelPosition position, RectangleInsets insets, Graphics2D g2)
Calculates the height of a category label when rendered.- Parameters:
block- the text block (nullnot permitted).position- the label position (nullnot permitted).insets- the label insets (nullnot permitted).g2- the graphics device (nullnot permitted).- Returns:
- The height.
-
clone
public Object clone() throws CloneNotSupportedException
Creates a clone of the axis.- Overrides:
clonein classAxis- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if some component of the axis does not support cloning.
-
-