java.lang.Object
javafx.geometry.Dimension2D
A 2D dimension object that contains a width and a height.
- Since:
- JavaFX 2.0
- 
Constructor SummaryConstructorsConstructorDescriptionDimension2D(double width, double height) Constructs aDimension2Dwith the specified width and height.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.final doubleThe height of the dimension.final doublegetWidth()The width of the dimension.inthashCode()Returns a hash code value for the Dimension2D object.toString()Returns a string representation of thisDimension2D.
- 
Constructor Details- 
Dimension2Dpublic Dimension2D(double width, double height) Constructs aDimension2Dwith the specified width and height.- Parameters:
- width- the width
- height- the height
 
 
- 
- 
Method Details- 
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
 
- 
equalsIndicates whether some other object is "equal to" this one.
- 
hashCodepublic int hashCode()Returns a hash code value for the Dimension2D object.
- 
toStringReturns 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.
 
-