JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
Constructor Summary
Constructors
Constructor
Description
Dimension2D (double width,
double height)
Constructs a Dimension2D
with the specified width and
height.
Constructor Detail
Dimension2D
public Dimension2D(double width,
double height)
Constructs a Dimension2D
with the specified width and
height.
Parameters:
width
- the width
height
- the height
Method Detail
toString
public String toString()
Returns a string representation of this Dimension2D
.
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 be null
.
Overrides:
toString
in class Object
Returns:
a string representation of the object.
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.