Package org.jfree.chart.entity
Class AxisEntity
- java.lang.Object
-
- org.jfree.chart.entity.ChartEntity
-
- org.jfree.chart.entity.AxisEntity
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.jfree.util.PublicCloneable
public class AxisEntity extends ChartEntity
A class that captures information about anAxisbelonging to a chart.- Since:
- 1.0.13
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AxisEntity(java.awt.Shape area, Axis axis)Creates a new axis entity.AxisEntity(java.awt.Shape area, Axis axis, java.lang.String toolTipText)Creates a new axis entity.AxisEntity(java.awt.Shape area, Axis axis, java.lang.String toolTipText, java.lang.String urlText)Creates a new axis entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a clone of the entity.booleanequals(java.lang.Object obj)Tests the entity for equality with an arbitrary object.AxisgetAxis()Returns the axis that occupies the entity area.inthashCode()Returns a hash code for this instance.java.lang.StringtoString()Returns a string representation of the chart entity, useful for debugging.-
Methods inherited from class org.jfree.chart.entity.ChartEntity
getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
-
-
-
-
Constructor Detail
-
AxisEntity
public AxisEntity(java.awt.Shape area, Axis axis)
Creates a new axis entity.- Parameters:
area- the area (nullnot permitted).axis- the axis (nullnot permitted).
-
AxisEntity
public AxisEntity(java.awt.Shape area, Axis axis, java.lang.String toolTipText)
Creates a new axis entity.- Parameters:
area- the area (nullnot permitted).axis- the axis (nullnot permitted).toolTipText- the tool tip text (nullpermitted).
-
AxisEntity
public AxisEntity(java.awt.Shape area, Axis axis, java.lang.String toolTipText, java.lang.String urlText)
Creates a new axis entity.- Parameters:
area- the area (nullnot permitted).axis- the axis (nullnot permitted).toolTipText- the tool tip text (nullpermitted).urlText- the URL text for HTML image maps (nullpermitted).
-
-
Method Detail
-
getAxis
public Axis getAxis()
Returns the axis that occupies the entity area.- Returns:
- The axis (never
null).
-
toString
public java.lang.String toString()
Returns a string representation of the chart entity, useful for debugging.- Overrides:
toStringin classChartEntity- Returns:
- A string.
-
equals
public boolean equals(java.lang.Object obj)
Tests the entity for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object to test against (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Returns a clone of the entity.- Specified by:
clonein interfaceorg.jfree.util.PublicCloneable- Overrides:
clonein classChartEntity- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException- if there is a problem cloning the entity.
-
-