|
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 | +--edu.berkeley.guir.lib.satin.interpreter.SemanticZoomInterpreterWrapper
Makes an interpreter work on certain scales only.
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Aug 30 1999, MN 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 | |
SemanticZoomInterpreterWrapper()
Empty constructor, does nothing. |
|
SemanticZoomInterpreterWrapper(Interpreter newintrp)
Wrap an interpreter. |
|
SemanticZoomInterpreterWrapper(Interpreter newintrp,
double startSc,
double endSc)
|
|
SemanticZoomInterpreterWrapper(SemanticZoomInterpreterWrapper w)
A copy constructor, deep. |
Method Summary | |
Object |
clone()
Since not overriding clone() can cause many errors with copying-and-pasting, I'm forcing you to do it. |
protected SemanticZoomInterpreterWrapper |
clone(SemanticZoomInterpreterWrapper iw)
|
protected double |
getAbsoluteScaleFactor()
|
double |
getEndScale()
|
double |
getStartScale()
|
void |
handleNewStroke(NewStrokeEvent evt)
Active if and only if we are in the right scale range. |
void |
handleSingleStroke(SingleStrokeEvent evt)
Active if and only if we are in the right scale range. |
void |
handleUpdateStroke(UpdateStrokeEvent evt)
Active if and only if we are in the right scale range. |
boolean |
isEnabled()
See if we are currently enabled AND in a valid zoom range. |
void |
setRange(double start,
double end)
|
String |
toString()
|
Methods inherited from class edu.berkeley.guir.lib.satin.interpreter.InterpreterWrapper |
clone, getInterpreter, setAttachedGraphicalObject, setInterpreter |
Methods inherited from class edu.berkeley.guir.lib.satin.interpreter.InterpreterImpl |
clone, getAttachedGraphicalObject, getName, 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 SemanticZoomInterpreterWrapper()
public SemanticZoomInterpreterWrapper(Interpreter newintrp, double startSc, double endSc)
public SemanticZoomInterpreterWrapper(Interpreter newintrp)
public SemanticZoomInterpreterWrapper(SemanticZoomInterpreterWrapper w)
Method Detail |
public void setRange(double start, double end)
public double getStartScale()
public double getEndScale()
public boolean isEnabled()
isEnabled
in class InterpreterWrapper
protected double getAbsoluteScaleFactor()
public void handleNewStroke(NewStrokeEvent evt)
handleNewStroke
in class InterpreterImpl
edu.berkeley.guir.lib.satin.event.StrokeListener
evt
- is the event to handle.public void handleUpdateStroke(UpdateStrokeEvent evt)
handleUpdateStroke
in class InterpreterImpl
edu.berkeley.guir.lib.satin.event.StrokeListener
StrokeListener.handleNewStroke(NewStrokeEvent).
public void handleSingleStroke(SingleStrokeEvent evt)
handleSingleStroke
in class InterpreterImpl
edu.berkeley.guir.lib.satin.event.StrokeListener
StrokeListener.handleNewStroke(NewStrokeEvent).
public Object clone()
InterpreterImpl
clone
in class InterpreterImpl
protected SemanticZoomInterpreterWrapper clone(SemanticZoomInterpreterWrapper iw)
public String toString()
toString
in class InterpreterWrapper
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |