com.levigo.jadice.document.util
Class FloatDimension

java.lang.Object
  extended by java.awt.geom.Dimension2D
      extended by 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

Constructor Summary
FloatDimension()
           
FloatDimension(Dimension2D d)
           
FloatDimension(double w, double h)
          Using this constructor will down-cast the provided double-arguments.
FloatDimension(float w, float h)
           
 
Method Summary
 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.
 
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.