All Packages Class Hierarchy This Package Previous Next Index
Class edu.cmu.owl.ui.twoD.LightTwoD
edu.cmu.owl.ui.twoD.LightTwoD
- public class LightTwoD
- implements MapElement
A light for the map. Light's are selectable, and have the same
name ("Light")
-
LightTwoD(BoundingBox, LightingFixture, int, TwoDBean)
- Construct a LightTwoD with the given reference number and list of
vertices.
-
area()
-
-
getBounds()
-
-
getColor(Color)
-
-
getControls()
-
-
getName()
-
-
getOwlObject()
-
-
getParent()
-
-
getRef()
-
-
inside(Point)
-
-
lightError()
-
-
lightRepaired()
-
-
lightTurnedOff()
-
-
lightTurnedOn()
-
-
paint(Graphics, PointConverter, ImageObserver)
- paint the Light on the graphics object passed to it
-
paintSelection(Graphics, PointConverter)
-
-
selectable()
-
-
setColor(Color)
-
-
setParent(ControlZoneTwoD)
-
LightTwoD
public LightTwoD(BoundingBox box,
LightingFixture l,
int ref,
TwoDBean twoDBean)
- Construct a LightTwoD with the given reference number and list of
vertices.
- Parameters:
- ref - id for the Light
- 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 "Light"
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 Light 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)
setColor
public void setColor(Color c)
getColor
public Color getColor(Color c)
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 elt)
lightTurnedOn
public void lightTurnedOn()
lightTurnedOff
public void lightTurnedOff()
lightError
public void lightError()
lightRepaired
public void lightRepaired()
All Packages Class Hierarchy This Package Previous Next Index