com.levigo.jadice.document.util
Class FloatDimension
java.lang.Object
java.awt.geom.Dimension2D
com.levigo.jadice.document.util.FloatDimension
- All Implemented Interfaces:
- Serializable, Cloneable
public class FloatDimension
- extends Dimension2D
- implements Serializable
A float-based extension of Dimension2D
, because there is none in the JDK RT library. Can
you believe it?
- See Also:
- Serialized Form
FloatDimension
public FloatDimension()
FloatDimension
public FloatDimension(float w,
float h)
FloatDimension
public FloatDimension(Dimension2D d)
FloatDimension
public FloatDimension(double w,
double h)
- Using this constructor will down-cast the provided double-arguments.
- Parameters:
w
- h
-
getWidth
public double getWidth()
- Specified by:
getWidth
in class Dimension2D
getHeight
public double getHeight()
- Specified by:
getHeight
in class Dimension2D
setSize
public void setSize(double width,
double height)
- Specified by:
setSize
in class Dimension2D
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Returns a string representation of the values of this object's
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.
- Overrides:
toString
in class Object
- Returns:
- a string representation of this
Dimension
object
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.