|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.satin.interpreter.InterpreterImpl | +--edu.berkeley.guir.lib.satin.interpreter.InterpreterWrapper
An abstract wrapper class for Interpreters. Interpreter wrappers can be chained with each other to provide combined functionality.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Apr 22 1999, JH Created class - SATIN-v2.1-1.0.0, Aug 11 2000, JH Touched for SATIN release
Inner classes inherited from class edu.berkeley.guir.lib.satin.SatinConstants |
SatinConstants.ObjectPoolAffineTransform, SatinConstants.ObjectPoolPoint2D, SatinConstants.ObjectPoolPolygon2D, SatinConstants.ObjectPoolRectangle2D, SatinConstants.ObjectPoolStringBuffer, SatinConstants.UniqueAffineTransform, SatinConstants.UniquePoint2D, SatinConstants.UniquePolygon2D, SatinConstants.UniqueRectangle2D |
Constructor Summary | |
InterpreterWrapper()
Create an empty wrapper. |
|
InterpreterWrapper(Interpreter newintrp)
Wrap an interpreter into this wrapper. |
Method Summary | |
protected InterpreterWrapper |
clone(InterpreterWrapper iw)
|
Interpreter |
getInterpreter()
Get the wrapped-up interpreter. |
boolean |
isEnabled()
See if this interpreter is enabled or not (ie can run or not). |
GraphicalObject |
setAttachedGraphicalObject(GraphicalObject newGob)
Overrided to set the GraphicalObject for the wrapped-up interpreter too. |
Interpreter |
setInterpreter(Interpreter newintrp)
Set what the wrapped-up interpreter is. |
String |
toString()
|
Methods inherited from class edu.berkeley.guir.lib.satin.interpreter.InterpreterImpl |
clone, clone, getAttachedGraphicalObject, getName, handleNewStroke, handleSingleStroke, handleUpdateStroke, isConsumedAccepted, isEventAccepted, isEventAccepted, isLeftButtonAccepted, isMiddleButtonAccepted, isRightButtonAccepted, setAcceptConsumed, setAcceptLeftButton, setAcceptMiddleButton, setAcceptRightButton, setEnabled, setName |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InterpreterWrapper()
public InterpreterWrapper(Interpreter newintrp)
Method Detail |
public Interpreter setInterpreter(Interpreter newintrp)
public GraphicalObject setAttachedGraphicalObject(GraphicalObject newGob)
setAttachedGraphicalObject
in class InterpreterImpl
edu.berkeley.guir.lib.satin.interpreter.InterpreterImpl
gob
- is the GraphicalObject this Interpreter is to be attached to.
Okay if null temporarily.public Interpreter getInterpreter()
public boolean isEnabled()
Interpreter
If called by an MultiInterpreter, it just turns that MultiInterpreter off, but not any contained Interpreters.
isEnabled
in class InterpreterImpl
public String toString()
toString
in class InterpreterImpl
protected InterpreterWrapper clone(InterpreterWrapper iw)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |