All Packages Class Hierarchy This Package Previous Next Index
Interface edu.cmu.owl.ui.twoD.MapElement
- public interface interface MapElement
Anything that can be put into a Map must implement this interface.
-
area()
- Calculate the are of this element.
-
getBounds()
- Get a bounding box for this element.
-
getControls()
- Returns a list of Control objects associated with this element.
-
getName()
- Get the name of the element, if it has one.
-
getOwlObject()
- get's a MapElement's corresponding OwlObject
-
getParent()
- accessor for a MapElement's parent ControlZone.
-
getRef()
- Get the ref of the MapElement
-
inside(Point)
- Is the given point inside this element?
-
paint(Graphics, PointConverter, ImageObserver)
- Paint this element in the given graphics context, using the given
PointConverter to scale the element's coordinates to pixels.
-
paintSelection(Graphics, PointConverter)
- Paint a selection box around this element.
-
selectable()
- Can this element be selected?
-
setParent(ControlZoneTwoD)
- This method sets the parent zone of element
getRef
public abstract int getRef()
- Get the ref of the MapElement
getName
public abstract String getName()
- Get the name of the element, if it has one.
getBounds
public abstract Rectangle getBounds()
- Get a bounding box for this element.
getControls
public abstract Enumeration getControls()
- Returns a list of Control objects associated with this element.
selectable
public abstract boolean selectable()
- Can this element be selected?
inside
public abstract boolean inside(Point where)
- Is the given point inside this element?
paint
public abstract void paint(Graphics g,
PointConverter pc,
ImageObserver observer)
- Paint this element in the given graphics context, using the given
PointConverter to scale the element's coordinates to pixels.
paintSelection
public abstract void paintSelection(Graphics g,
PointConverter pc)
- Paint a selection box around this element.
area
public abstract int area()
- Calculate the are of this element.
setParent
public abstract void setParent(ControlZoneTwoD temp)
- This method sets the parent zone of element
getParent
public abstract ControlZoneTwoD getParent()
- accessor for a MapElement's parent ControlZone.
getOwlObject
public abstract OwlObject getOwlObject()
- get's a MapElement's corresponding OwlObject
All Packages Class Hierarchy This Package Previous Next Index