Class Arc

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

public class Arc
extends Wall

See Also:
Serialized Form

Field Summary
static int INITIAL_ARC_RADIUS
          Initial "radius" of arc
static int OUTER_WALL_ARC
           
 int radius
          width of an ellipse ("radius")
 
Fields inherited from class Wall
ID, rot, thickness, type, WALL_BRIDGE, WALL_RIVER, WALL_ROAD, x2, y2
 
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
Arc(int x, int y, int r, int width, int height)
           
Arc(int x1, int y1, int x2, int y2, int r, int type, int thickness)
          Creates new Arc thickness is in milimeters, left upper point is lexicographically sorted against right lower point
 
Method Summary
 java.lang.Object clone()
           
 boolean contains(double xx, double yy)
           
 void draw(java.awt.Graphics2D g2)
           
 void drawFill(java.awt.Graphics2D g2)
           
 void drawFillSelected(java.awt.Graphics2D g2)
           
 void fill(java.awt.Graphics2D g2)
           
 
Methods inherited from class Wall
setLocation
 
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

OUTER_WALL_ARC

public static final int OUTER_WALL_ARC
See Also:
Constant Field Values

INITIAL_ARC_RADIUS

public static final int INITIAL_ARC_RADIUS
Initial "radius" of arc

See Also:
Constant Field Values

radius

public int radius
width of an ellipse ("radius")

Constructor Detail

Arc

public Arc(int x,
           int y,
           int r,
           int width,
           int height)

Arc

public Arc(int x1,
           int y1,
           int x2,
           int y2,
           int r,
           int type,
           int thickness)
Creates new Arc thickness is in milimeters, left upper point is lexicographically sorted against right lower point

Method Detail

contains

public boolean contains(double xx,
                        double yy)
Specified by:
contains in interface java.awt.Shape
Overrides:
contains in class Wall

clone

public java.lang.Object clone()
Overrides:
clone in class Wall

draw

public void draw(java.awt.Graphics2D g2)
Overrides:
draw in class Wall

fill

public void fill(java.awt.Graphics2D g2)
Overrides:
fill in class Wall

drawFill

public void drawFill(java.awt.Graphics2D g2)
Overrides:
drawFill in class Wall

drawFillSelected

public void drawFillSelected(java.awt.Graphics2D g2)
Overrides:
drawFillSelected in class Wall