com.sun.electric.database.geometry
Class Dimension2D

java.lang.Object
  extended by java.awt.geom.Dimension2D
      extended by com.sun.electric.database.geometry.Dimension2D
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Dimension2D.Double

public abstract class Dimension2D
extends java.awt.geom.Dimension2D

Class to define a Dimension object.


Nested Class Summary
static class Dimension2D.Double
          Class to define a Double-precision Dimension object.
 
Constructor Summary
Dimension2D()
           
 
Method Summary
abstract  double getHeight()
          Method to return the Y size of this Dimension2D.
abstract  double getWidth()
          Method to return the X size of this Dimension2D.
abstract  void setSize(java.awt.geom.Dimension2D d)
          Method to set the size of this Dimension2D.
abstract  void setSize(double width, double height)
          Method to set the size of this Dimension2D.
 
Methods inherited from class java.awt.geom.Dimension2D
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dimension2D

public Dimension2D()
Method Detail

getHeight

public abstract double getHeight()
Method to return the Y size of this Dimension2D.

Specified by:
getHeight in class java.awt.geom.Dimension2D
Returns:
the Y size of this Dimension2D.

getWidth

public abstract double getWidth()
Method to return the X size of this Dimension2D.

Specified by:
getWidth in class java.awt.geom.Dimension2D
Returns:
the X size of this Dimension2D.

setSize

public abstract void setSize(java.awt.geom.Dimension2D d)
Method to set the size of this Dimension2D. param d the new size of this Dimension2D.

Overrides:
setSize in class java.awt.geom.Dimension2D

setSize

public abstract void setSize(double width,
                             double height)
Method to set the size of this Dimension2D. param width the new width of this Dimension2D. param height the new height of this Dimension2D.

Specified by:
setSize in class java.awt.geom.Dimension2D