Class Graphics2DTest.RectShape

java.lang.Object
  extended byGraphics2DTest.RectShape
Direct Known Subclasses:
Graphics2DTestPlusUserDrawing.RectShapeUserDrawn
Enclosing class:
Graphics2DTest

public static class Graphics2DTest.RectShape
extends java.lang.Object

Class RectShape defines the model datatype for a rectangle as an x/y position and a width/height.


Field Summary
 int height
          The height of this rect
 int width
          The width of this rect
 int x
          The x position of this rect
 int y
          The y position of this rect
 
Constructor Summary
Graphics2DTest.RectShape(int x, int y, int width, int height)
          Construct this with the given position and dimensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public int x
The x position of this rect


y

public int y
The y position of this rect


width

public int width
The width of this rect


height

public int height
The height of this rect

Constructor Detail

Graphics2DTest.RectShape

public Graphics2DTest.RectShape(int x,
                                int y,
                                int width,
                                int height)
Construct this with the given position and dimensions.