Methapolis
0.27
|
Public Member Functions | |
CityRect () | |
CityRect (int x, int y, int width, int height) | |
boolean | equals (Object obj) |
String | toString () |
Public Attributes | |
int | x |
int | y |
int | width |
int | height |
Specifies a rectangular area in the city's coordinate space. This class is functionally equivalent to Java AWT's Rectangle class, but is portable to Java editions that do not contain AWT.
Definition at line 16 of file CityRect.java.
micropolisj.engine.CityRect.CityRect | ( | ) |
Definition at line 30 of file CityRect.java.
Referenced by micropolisj.engine.CityRect.equals().
micropolisj.engine.CityRect.CityRect | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Definition at line 34 of file CityRect.java.
References micropolisj.engine.CityRect.height, micropolisj.engine.CityRect.width, micropolisj.engine.CityRect.x, and micropolisj.engine.CityRect.y.
boolean micropolisj.engine.CityRect.equals | ( | Object | obj | ) |
Definition at line 43 of file CityRect.java.
References micropolisj.engine.CityRect.CityRect(), micropolisj.engine.CityRect.height, micropolisj.engine.CityRect.width, micropolisj.engine.CityRect.x, and micropolisj.engine.CityRect.y.
String micropolisj.engine.CityRect.toString | ( | ) |
Definition at line 58 of file CityRect.java.
References micropolisj.engine.CityRect.height, micropolisj.engine.CityRect.width, micropolisj.engine.CityRect.x, and micropolisj.engine.CityRect.y.
int micropolisj.engine.CityRect.height |
The height of the rectangle.
Definition at line 28 of file CityRect.java.
Referenced by micropolisj.engine.ToolStroke.applyArea(), micropolisj.engine.CityRect.CityRect(), micropolisj.engine.CityRect.equals(), micropolisj.engine.ToolStroke.getBounds(), micropolisj.gui.MicropolisDrawingArea.setToolPreview(), and micropolisj.engine.CityRect.toString().
int micropolisj.engine.CityRect.width |
The width of the rectangle.
Definition at line 25 of file CityRect.java.
Referenced by micropolisj.engine.ToolStroke.applyArea(), micropolisj.engine.CityRect.CityRect(), micropolisj.engine.CityRect.equals(), micropolisj.engine.ToolStroke.getBounds(), micropolisj.gui.MicropolisDrawingArea.setToolPreview(), and micropolisj.engine.CityRect.toString().
int micropolisj.engine.CityRect.x |
The X coordinate of the upper-left corner of the rectangle.
Definition at line 19 of file CityRect.java.
Referenced by micropolisj.engine.ToolStroke.applyArea(), micropolisj.engine.CityRect.CityRect(), micropolisj.engine.CityRect.equals(), micropolisj.engine.ToolStroke.getBounds(), micropolisj.gui.MicropolisDrawingArea.setToolPreview(), and micropolisj.engine.CityRect.toString().
int micropolisj.engine.CityRect.y |
The Y coordinate of the upper-left corner of the rectangle.
Definition at line 22 of file CityRect.java.
Referenced by micropolisj.engine.ToolStroke.applyArea(), micropolisj.engine.CityRect.CityRect(), micropolisj.engine.CityRect.equals(), micropolisj.engine.ToolStroke.getBounds(), micropolisj.gui.MicropolisDrawingArea.setToolPreview(), and micropolisj.engine.CityRect.toString().