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.


Method Index

 o area()
Calculate the are of this element.
 o getBounds()
Get a bounding box for this element.
 o getControls()
Returns a list of Control objects associated with this element.
 o getName()
Get the name of the element, if it has one.
 o getOwlObject()
get's a MapElement's corresponding OwlObject
 o getParent()
accessor for a MapElement's parent ControlZone.
 o getRef()
Get the ref of the MapElement
 o inside(Point)
Is the given point inside this element?
 o paint(Graphics, PointConverter, ImageObserver)
Paint this element in the given graphics context, using the given PointConverter to scale the element's coordinates to pixels.
 o paintSelection(Graphics, PointConverter)
Paint a selection box around this element.
 o selectable()
Can this element be selected?
 o setParent(ControlZoneTwoD)
This method sets the parent zone of element

Methods

 o getRef
 public abstract int getRef()
Get the ref of the MapElement

 o getName
 public abstract String getName()
Get the name of the element, if it has one.

 o getBounds
 public abstract Rectangle getBounds()
Get a bounding box for this element.

 o getControls
 public abstract Enumeration getControls()
Returns a list of Control objects associated with this element.

 o selectable
 public abstract boolean selectable()
Can this element be selected?

 o inside
 public abstract boolean inside(Point where)
Is the given point inside this element?

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

 o paintSelection
 public abstract void paintSelection(Graphics g,
                                     PointConverter pc)
Paint a selection box around this element.

 o area
 public abstract int area()
Calculate the are of this element.

 o setParent
 public abstract void setParent(ControlZoneTwoD temp)
This method sets the parent zone of element

 o getParent
 public abstract ControlZoneTwoD getParent()
accessor for a MapElement's parent ControlZone.

 o getOwlObject
 public abstract OwlObject getOwlObject()
get's a MapElement's corresponding OwlObject


All Packages  Class Hierarchy  This Package  Previous  Next  Index