edu.umd.cs.piccolo.util
Class PDimension

java.lang.Object
  extended by java.awt.geom.Dimension2D
      extended by edu.umd.cs.piccolo.util.PDimension
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PDimension
extends java.awt.geom.Dimension2D
implements java.io.Serializable

PDimension this class should be removed once a concrete Dimension2D that supports doubles is added to java.

Version:
1.0
Author:
Jesse Grosjean
See Also:
Serialized Form

Field Summary
 double height
           
 double width
           
 
Constructor Summary
PDimension()
           
PDimension(java.awt.geom.Dimension2D aDimension)
           
PDimension(double aWidth, double aHeight)
           
PDimension(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
           
 
Method Summary
 double getHeight()
           
 double getWidth()
           
 void setSize(double aWidth, double aHeight)
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

public double width

height

public double height
Constructor Detail

PDimension

public PDimension()

PDimension

public PDimension(java.awt.geom.Dimension2D aDimension)

PDimension

public PDimension(double aWidth,
                  double aHeight)

PDimension

public PDimension(java.awt.geom.Point2D p1,
                  java.awt.geom.Point2D p2)
Method Detail

getHeight

public double getHeight()
Specified by:
getHeight in class java.awt.geom.Dimension2D

getWidth

public double getWidth()
Specified by:
getWidth in class java.awt.geom.Dimension2D

setSize

public void setSize(double aWidth,
                    double aHeight)
Specified by:
setSize in class java.awt.geom.Dimension2D

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2005 by University of Maryland, College Park, MD 20742, USA All rights reserved.

Web Accessibility