All Packages Class Hierarchy This Package Previous Next Index
Class edu.cmu.owl.ui.twoD.WallTwoD
edu.cmu.owl.ui.twoD.WallTwoD
- public class WallTwoD
- implements MapElement
A Wall for the Map. Wall's are not selectable, cannot have controls, and
all have the same name ("Wall")
-
WallTwoD(int, BoundingBox)
- Construct a Wall with the given reference number and list of
vertices.
-
area()
-
-
getBounds()
-
-
getControls()
-
-
getName()
-
-
getOwlObject()
-
-
getParent()
-
-
getRef()
-
-
inside(Point)
-
-
paint(Graphics, PointConverter, ImageObserver)
- paint the wall on the graphics object passed to it
-
paintSelection(Graphics, PointConverter)
-
-
selectable()
-
-
setParent(ControlZoneTwoD)
-
WallTwoD
public WallTwoD(int ref,
BoundingBox box)
- Construct a Wall with the given reference number and list of
vertices.
- Parameters:
- ref - id for the wall
- points - is the vector of points.
getOwlObject
public OwlObject getOwlObject()
selectable
public boolean selectable()
- Returns:
- true or false depending on whether object is selectable
getName
public String getName()
- Returns:
- string of value "Wall"
getBounds
public Rectangle getBounds()
- Returns:
- bounds on the wall.
getControls
public Enumeration getControls()
inside
public boolean inside(Point where)
- Returns:
- boolean depending on whethear point is inside the wall
paint
public void paint(Graphics g,
PointConverter pc,
ImageObserver observer)
- paint the wall on the graphics object passed to it
- Parameters:
- g - the Graphics object
- pc - the object that converts wall coordinates to pixel and vice-versa
paintSelection
public void paintSelection(Graphics g,
PointConverter pc)
area
public int area()
- Returns:
- the area of the wall
getRef
public int getRef()
- Returns:
- the in ref of the object
getParent
public ControlZoneTwoD getParent()
setParent
public void setParent(ControlZoneTwoD e)
All Packages Class Hierarchy This Package Previous Next Index