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