- java.lang.Object
- 
- javafx.geometry.Dimension2D
 
- 
 public class Dimension2D extends Object A 2D dimension object that contains a width and a height.- Since:
- JavaFX 2.0
 
- 
- 
Constructor SummaryConstructors Constructor Description Dimension2D(double width, double height)Constructs aDimension2Dwith the specified width and height.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Indicates whether some other object is "equal to" this one.doublegetHeight()The height of the dimension.doublegetWidth()The width of the dimension.inthashCode()Returns a hash code value for the Dimension2D object.StringtoString()Returns a string representation of thisDimension2D.
 
- 
- 
- 
Method Detail- 
getWidthpublic final double getWidth() The width of the dimension.- Returns:
- the width of the dimension
 
 - 
getHeightpublic final double getHeight() The height of the dimension.- Returns:
- the height of the dimension
 
 - 
equalspublic boolean equals(Object obj) Indicates whether some other object is "equal to" this one.
 - 
hashCodepublic int hashCode() Returns a hash code value for the Dimension2D object.
 - 
toStringpublic String toString() Returns a string representation of thisDimension2D. This method is intended to be used only for informational purposes. The content and format of the returned string might vary between implementations. The returned string might be empty but cannot benull.
 
- 
 
-