org.ascape.ant
Class RectangleElement

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.Rectangle
              extended by org.ascape.ant.RectangleElement
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable

public class RectangleElement
extends java.awt.Rectangle
implements java.io.Serializable

Neccessary only because Java still doesn't allow x,y width and height vlaues to be set seperatly!.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
 
Field Summary
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
RectangleElement()
           
 
Method Summary
 void setHeight(int height)
          Sets the height.
 void setWidth(int width)
          Sets the width.
 void setX(int x)
          Sets the x.
 void setY(int y)
          Sets the y.
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Constructor Detail

RectangleElement

public RectangleElement()
Method Detail

setX

public void setX(int x)
Sets the x.

Parameters:
x - the new x

setY

public void setY(int y)
Sets the y.

Parameters:
y - the new y

setWidth

public void setWidth(int width)
Sets the width.

Parameters:
width - the new width

setHeight

public void setHeight(int height)
Sets the height.

Parameters:
height - the new height


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.