|
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.objects.GraphicalObjectImpl | +--edu.berkeley.guir.lib.satin.objects.GObJComponentWrapper
This software is distributed under the Berkeley Software License.
Revisions: - SATIN-v1.0-1.0.0, Jun 20 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 |
Fields inherited from interface edu.berkeley.guir.lib.satin.objects.GraphicalObject |
GESTUREINTRP_CLPROPERTY, INKINTRP_CLPROPERTY, STYLE_CLPROPERTY, VIEW_CLPROPERTY |
Constructor Summary | |
GObJComponentWrapper(JComponent newComponent)
|
Method Summary | |
protected Object |
deepClone(GObJComponentWrapper clone)
Since there is no way to generically clone a JComponent, this method exists only for descendants of GObJComponentWrapper to call in their deepClone methods. |
protected void |
defaultRender(SatinGraphics g)
The default method for rendering. |
JComponent |
getComponent()
Returns the JComponent in this wrapper |
void |
handleNewStroke(NewStrokeEvent evt)
This callback is called when the stroke should be handled by this object. |
void |
handleSingleStroke(SingleStrokeEvent evt)
|
void |
handleUpdateStroke(UpdateStrokeEvent evt)
|
void |
setComponent(JComponent comp)
Set the JComponent inside this wrapper |
String |
toDebugString()
Some debugging info. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GObJComponentWrapper(JComponent newComponent)
Method Detail |
public JComponent getComponent()
public void setComponent(JComponent comp)
public void handleNewStroke(NewStrokeEvent evt)
StrokeListener
SatinEvent.setConsumed()
with true to signify that it is
consumed and no one else should handle it. Furthermore, if you don't
want the stroke to be rendered, then call
SatinEvent.setShouldRender(boolean)
with false. By default, the
stroke will be rendered.handleNewStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void handleUpdateStroke(UpdateStrokeEvent evt)
handleUpdateStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
public void handleSingleStroke(SingleStrokeEvent evt)
handleSingleStroke
in class GraphicalObjectImpl
edu.berkeley.guir.lib.satin.objects.GraphicalObject
GraphicalObject.onNewStroke(NewStrokeEvent)
protected void defaultRender(SatinGraphics g)
GraphicalObjectImpl
defaultRender
in class GraphicalObjectImpl
public String toDebugString()
GraphicalObjectImpl
Do not call method toString() in any implementation of toDebugString(). Method toString() calls toDebugString().
toDebugString
in class GraphicalObjectImpl
protected Object deepClone(GObJComponentWrapper clone)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |