|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.geom.RectangularShape | +--java.awt.geom.Rectangle2D | +--java.awt.Rectangle | +--Wall
Field Summary | |
int |
ID
|
double |
rot
|
int |
thickness
Skutecna sirka prvku nezavisla na meritku |
int |
type
|
static int |
WALL_BRIDGE
|
static int |
WALL_RIVER
|
static int |
WALL_ROAD
|
int |
x2
x coordinate of the ending point |
int |
y2
y coordinate of the ending point |
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 | |
Wall()
Creates new Wall |
|
Wall(int x,
int y,
int width,
int height)
|
|
Wall(int ID,
int x1,
int y1,
int x2,
int y2,
int type,
int thickness)
Creates new Wall thickness is in milimeters, left upper point is lexicographically sorted against right lower point |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
contains(double x,
double y)
|
void |
draw(java.awt.Graphics2D g2)
|
void |
drawFill(java.awt.Graphics2D g2)
|
void |
drawFillSelected(java.awt.Graphics2D g2)
|
void |
fill(java.awt.Graphics2D g2)
|
void |
setLocation(int x,
int 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, setRect, setSize, setSize, toString, translate, union |
Methods inherited from class java.awt.geom.Rectangle2D |
add, add, add, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union |
Methods inherited from class java.awt.geom.RectangularShape |
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, getPathIterator, getPathIterator, intersects, intersects |
Field Detail |
public static final int WALL_ROAD
public static final int WALL_RIVER
public static final int WALL_BRIDGE
public int ID
public int type
public double rot
public int x2
public int y2
public int thickness
Constructor Detail |
public Wall()
public Wall(int x, int y, int width, int height)
public Wall(int ID, int x1, int y1, int x2, int y2, int type, int thickness)
Method Detail |
public java.lang.Object clone()
clone
in class java.awt.geom.RectangularShape
public boolean contains(double x, double y)
contains
in interface java.awt.Shape
contains
in class java.awt.geom.Rectangle2D
public void setLocation(int x, int y)
setLocation
in class java.awt.Rectangle
public void draw(java.awt.Graphics2D g2)
public void fill(java.awt.Graphics2D g2)
public void drawFill(java.awt.Graphics2D g2)
public void drawFillSelected(java.awt.Graphics2D g2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |