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")


Constructor Index

 o WallTwoD(int, BoundingBox)
Construct a Wall with the given reference number and list of vertices.

Method Index

 o area()
 o getBounds()
 o getControls()
 o getName()
 o getOwlObject()
 o getParent()
 o getRef()
 o inside(Point)
 o paint(Graphics, PointConverter, ImageObserver)
paint the wall on the graphics object passed to it
 o paintSelection(Graphics, PointConverter)
 o selectable()
 o setParent(ControlZoneTwoD)

Constructors

 o 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.

Methods

 o getOwlObject
 public OwlObject getOwlObject()
 o selectable
 public boolean selectable()
Returns:
true or false depending on whether object is selectable
 o getName
 public String getName()
Returns:
string of value "Wall"
 o getBounds
 public Rectangle getBounds()
Returns:
bounds on the wall.
 o getControls
 public Enumeration getControls()
 o inside
 public boolean inside(Point where)
Returns:
boolean depending on whethear point is inside the wall
 o 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
 o paintSelection
 public void paintSelection(Graphics g,
                            PointConverter pc)
 o area
 public int area()
Returns:
the area of the wall
 o getRef
 public int getRef()
Returns:
the in ref of the object
 o getParent
 public ControlZoneTwoD getParent()
 o setParent
 public void setParent(ControlZoneTwoD e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index