All Packages Class Hierarchy This Package Previous Next Index
Class edu.cmu.owl.ui.twoD.ControlZoneTwoD
edu.cmu.owl.ui.twoD.ControlZoneTwoD
- public class ControlZoneTwoD
- implements MapElement
This object is a view on the ControlZone in the building OM. It implements
the recursive composition pattern. This class also satisfies the MapElement
interface so that ControlZoneTwoD can contain other COntrolZonewoD's and
and LightTwoD's.
-
ControlZoneTwoD(int)
-
-
addElement(MapElement)
-
-
area()
-
-
elements()
-
-
getBounds()
-
-
getControls()
-
-
getName()
-
-
getOwlObject()
-
-
getParent()
-
-
getRef()
-
-
inside(Point)
-
-
paint(Graphics, PointConverter, ImageObserver)
- paint all the lights and ControlZoneTwoD's in this zone.
-
paintSelection(Graphics, PointConverter)
- This method paints the ControlZoneTwoD such that it were selected
-
removeElement(MapElement)
-
-
selectable()
-
-
setOwlObject(OwlObjectTree)
-
-
setParent(ControlZoneTwoD)
-
ControlZoneTwoD
public ControlZoneTwoD(int temp)
getOwlObject
public OwlObject getOwlObject()
setOwlObject
public void setOwlObject(OwlObjectTree t)
selectable
public boolean selectable()
- Returns:
- true or false depending on whether object is selectable
getName
public String getName()
- Returns:
- value hat will be displayed in baloon text
This method sould return "Control Zone -id" with id being
the id of the new OwlObjectTree that gets made.
getBounds
public Rectangle getBounds()
- Returns:
- bounds on the ControlZoneTwoD.
This method is used to find out which object the mouse is over.
inside
public boolean inside(Point where)
- Returns:
- boolean depending on whether point is inside the wall
paint
public void paint(Graphics g,
PointConverter pc,
ImageObserver observer)
- paint all the lights and ControlZoneTwoD's in this zone.
- 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)
- This method paints the ControlZoneTwoD such that it were selected
area
public int area()
- Returns:
- the area of the ControlZoneTwoD
getRef
public int getRef()
getControls
public Enumeration getControls()
elements
public Enumeration elements()
addElement
public void addElement(MapElement elt)
removeElement
public void removeElement(MapElement elt)
getParent
public ControlZoneTwoD getParent()
setParent
public void setParent(ControlZoneTwoD elt)
All Packages Class Hierarchy This Package Previous Next Index