Package org.jfree.chart.entity
Class AxisEntity
java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.AxisEntity
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable
A class that captures information about an
Axis belonging to a
chart.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAxisEntity(Shape area, Axis axis) Creates a new axis entity.AxisEntity(Shape area, Axis axis, String toolTipText) Creates a new axis entity.AxisEntity(Shape area, Axis axis, String toolTipText, String urlText) Creates a new axis entity. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEnsures symmetry between super/subclass implementations of equals.clone()Returns a clone of the entity.booleanTests the entity for equality with an arbitrary object.getAxis()Returns the axis that occupies the entity area.inthashCode()Returns a hash code for this instance.toString()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 Details
-
AxisEntity
Creates a new axis entity.- Parameters:
area- the area (nullnot permitted).axis- the axis (nullnot permitted).
-
AxisEntity
Creates a new axis entity.- Parameters:
area- the area (nullnot permitted).axis- the axis (nullnot permitted).toolTipText- the tool tip text (nullpermitted).
-
AxisEntity
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 Details
-
getAxis
Returns the axis that occupies the entity area.- Returns:
- The axis (never
null).
-
toString
Returns a string representation of the chart entity, useful for debugging.- Overrides:
toStringin classChartEntity- Returns:
- A string.
-
equals
Tests the entity for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object to test against (nullpermitted).- Returns:
- A boolean.
-
canEqual
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.- Overrides:
canEqualin classChartEntity- Parameters:
other- Object- Returns:
- true ONLY if the parameter is THIS class type
-
hashCode
Returns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-
clone
Returns a clone of the entity.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classChartEntity- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if there is a problem cloning the entity.
-