public class FloatDimension extends Dimension2D implements Serializable
Dimension2D
, because there is none in the JDK RT library. Can
you believe it?Constructor and Description |
---|
FloatDimension() |
FloatDimension(Dimension2D d) |
FloatDimension(double w,
double h)
Using this constructor will down-cast the provided double-arguments.
|
FloatDimension(float w,
float h) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getHeight() |
double |
getWidth() |
int |
hashCode() |
void |
setSize(double width,
double height) |
String |
toString()
Returns a string representation of the values of this object's
height and
width fields. |
clone, setSize
public FloatDimension()
public FloatDimension(float w, float h)
public FloatDimension(Dimension2D d)
public FloatDimension(double w, double h)
public double getWidth()
getWidth
in class Dimension2D
public double getHeight()
getHeight
in class Dimension2D
public void setSize(double width, double height)
setSize
in class Dimension2D
public String toString()
height
and
width
fields. This method is intended to be used only for debugging purposes, and
the content and format of the returned string may vary between implementations.Copyright © 2024 levigo holding gmbh. All rights reserved.