edu.mit.sketch.grammar
Interface NonTerminal

All Superinterfaces:
Paintable, Translatable
All Known Implementing Classes:
Motor, Pin, Cross, Ground

public interface NonTerminal
extends Paintable, Translatable

All the objects who want to be NonTerminal must implement this interface.


Method Summary
 Vector getChildren()
          This method should return a vector containing the children of this object.
 Polygon[] getPolygonalBoundsArray()
          This method should return the polygonal array bounds of this non-terminal object.
 Rectangle getRectangularBounds()
          This method should return the Rectangular bounds of this non-terminal object.
 
Methods inherited from interface edu.mit.sketch.ui.Paintable
getType, paint, paint, paintOriginal, setGraphicsContext
 
Methods inherited from interface edu.mit.sketch.geom.Translatable
pointIsOn, pointIsOnOriginal, translate
 

Method Detail

getRectangularBounds

public Rectangle getRectangularBounds()
This method should return the Rectangular bounds of this non-terminal object.

getPolygonalBoundsArray

public Polygon[] getPolygonalBoundsArray()
This method should return the polygonal array bounds of this non-terminal object. This is a rough approximation of the constituents of the object.

getChildren

public Vector getChildren()
This method should return a vector containing the children of this object. Children are the Terminal or NonTerminal constituents of this object.