|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.geom.RectangularShape
|
+--java.awt.geom.Rectangle2D
|
+--java.awt.Rectangle
|
+--DE.purple_sunshine.bigbro.Area
An Area within a house. The inhabitants move from one area to another through the areas that are in between. The positions inside the areas are randomly generated with a preference of the center.
| Inner classes inherited from class java.awt.geom.Rectangle2D |
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
| 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 | |
Area(java.lang.String id,
int x,
int y,
int width,
int height)
Constructs a new Area. |
|
Area(java.lang.String id,
int x,
int y,
int width,
int height,
PathArea pA)
Constructs a new Area that contains a PathArea. |
|
| Method Summary | |
java.lang.String |
getId()
Returns the ID of this Area. |
PathArea |
getPathArea()
Returns the PathArea contained in this Area. |
java.awt.Point |
randomPointWithin()
Generates a random point within this Area and returns it. |
java.lang.String |
toString()
Returns a String representation of this Area. |
| 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, 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 |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.Shape |
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects |
| Constructor Detail |
public Area(java.lang.String id,
int x,
int y,
int width,
int height)
id - a unique identifier for the constructed areax - the x-value of the top left corner of the areay - the y-value of the top left corner of the areawidth - the width of the areaheight - the height of the area
public Area(java.lang.String id,
int x,
int y,
int width,
int height,
PathArea pA)
id - a unique identifier for the constructed areax - the x-value of the top left corner of the areay - the y-value of the top left corner of the areawidth - the width of the areaheight - the height of the areapA - the PathArea which is contained in this Area| Method Detail |
public PathArea getPathArea()
public java.lang.String getId()
public java.awt.Point randomPointWithin()
public java.lang.String toString()
toString in class java.awt.Rectangle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||