java.lang.Object
java.awt.geom.Dimension2D
org.jfree.chart3d.table.ElementDimension
- All Implemented Interfaces:
Serializable
,Cloneable
An element dimension (in fact a simple implementation of the
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
Dimension2D
interface).
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionElementDimension
(double width, double height) Creates a new dimension object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests this dimension for equality with an arbitrary object.double
Returns the height.double
getWidth()
Returns the width.void
setSize
(double width, double height) Sets the size.toString()
Returns a string representation of this dimension, primarily for debugging purposes.Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
-
Constructor Details
-
ElementDimension
Creates a new dimension object.- Parameters:
width
- the width.height
- the height.
-
-
Method Details
-
getWidth
Returns the width.- Specified by:
getWidth
in classDimension2D
- Returns:
- The width.
-
getHeight
Returns the height.- Specified by:
getHeight
in classDimension2D
- Returns:
- The height.
-
setSize
Sets the size.- Specified by:
setSize
in classDimension2D
- Parameters:
width
- the width.height
- the height.
-
equals
Tests this dimension for equality with an arbitrary object. -
toString
Returns a string representation of this dimension, primarily for debugging purposes.
-