Class Wall

java.lang.Object
  |
  +--java.awt.geom.RectangularShape
        |
        +--java.awt.geom.Rectangle2D
              |
              +--java.awt.Rectangle
                    |
                    +--Wall
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, java.awt.Shape
Direct Known Subclasses:
Arc

public class Wall
extends java.awt.Rectangle

See Also:
Serialized Form

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

WALL_ROAD

public static final int WALL_ROAD
See Also:
Constant Field Values

WALL_RIVER

public static final int WALL_RIVER
See Also:
Constant Field Values

WALL_BRIDGE

public static final int WALL_BRIDGE
See Also:
Constant Field Values

ID

public int ID

type

public int type

rot

public double rot

x2

public int x2
x coordinate of the ending point


y2

public int y2
y coordinate of the ending point


thickness

public int thickness
Skutecna sirka prvku nezavisla na meritku

Constructor Detail

Wall

public Wall()
Creates new Wall


Wall

public Wall(int x,
            int y,
            int width,
            int height)

Wall

public 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 Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.awt.geom.RectangularShape

contains

public boolean contains(double x,
                        double y)
Specified by:
contains in interface java.awt.Shape
Overrides:
contains in class java.awt.geom.Rectangle2D

setLocation

public void setLocation(int x,
                        int y)
Overrides:
setLocation in class java.awt.Rectangle

draw

public void draw(java.awt.Graphics2D g2)

fill

public void fill(java.awt.Graphics2D g2)

drawFill

public void drawFill(java.awt.Graphics2D g2)

drawFillSelected

public void drawFillSelected(java.awt.Graphics2D g2)