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 TypeMethodDescriptionbooleanTests this dimension for equality with an arbitrary object.doubleReturns the height.doublegetWidth()Returns the width.voidsetSize(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:
getWidthin classDimension2D- Returns:
- The width.
-
getHeight
Returns the height.- Specified by:
getHeightin classDimension2D- Returns:
- The height.
-
setSize
Sets the size.- Specified by:
setSizein 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.
-