|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
edu.umd.cs.piccolo.PCanvas
at.tuwien.ifs.somtoolbox.apps.viewer.MyPCanvas
public class MyPCanvas
adds selection handler set and get methods to the piccolo pcanvas class
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
selectionEventHandler
|
private static long |
serialVersionUID
|
Fields inherited from class edu.umd.cs.piccolo.PCanvas |
---|
CURRENT_ZCANVAS, INTERATING_CHANGED_NOTIFICATION |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MyPCanvas()
|
Method Summary | |
---|---|
private void |
clearOldHandlers()
|
LineSelectionEventHandler |
getLineSelectionEventHandler()
|
MyRectangleSelectionEventHandler |
getMyRectangleSelectionEventHandler()
|
edu.umd.cs.piccolo.event.PDragSequenceEventHandler |
getSelectionEventHandler()
Get the selection event handler associated with this canvas. |
void |
removeSelection()
|
void |
setSelectionEventHandler(ClusterSelectionEventHandler handler)
Set the cluster selection event handler associated with this canvas. |
void |
setSelectionEventHandler(LineSelectionEventHandler handler)
Set the corridor selection event handler associated with this canvas. |
void |
setSelectionEventHandler(MyInputDragSequenceEventHandler handler)
Removes the current selectionEventHandler associated with this canvas and adds event handler for moving inputs. |
void |
setSelectionEventHandler(MyLabelDragSequenceEventHandler handler)
Removes the current selectionEventHandler associated with this canvas and adds event handler for moving Labels. |
void |
setSelectionEventHandler(MyRectangleSelectionEventHandler handler)
Set the selection event handler associated with this canvas. |
Methods inherited from class edu.umd.cs.piccolo.PCanvas |
---|
addInputEventListener, createDefaultCamera, createTimer, getAnimating, getCamera, getInteracting, getLayer, getPanEventHandler, getRoot, getZoomEventHandler, installInputSources, paintComponent, paintImmediately, popCursor, pushCursor, removeInputEventListener, removeInputSources, repaint, sendInputEventToInputManager, setAnimatingRenderQuality, setBounds, setCamera, setDefaultRenderQuality, setEnabled, setInteracting, setInteractingRenderQuality, setPanEventHandler, setZoomEventHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private edu.umd.cs.piccolo.event.PDragSequenceEventHandler selectionEventHandler
Constructor Detail |
---|
public MyPCanvas()
Method Detail |
---|
public edu.umd.cs.piccolo.event.PDragSequenceEventHandler getSelectionEventHandler()
public MyRectangleSelectionEventHandler getMyRectangleSelectionEventHandler()
public LineSelectionEventHandler getLineSelectionEventHandler()
public void setSelectionEventHandler(MyRectangleSelectionEventHandler handler)
handler
- the new selection event handlerprivate void clearOldHandlers()
public void setSelectionEventHandler(LineSelectionEventHandler handler)
handler
- the new selection event handlerpublic void setSelectionEventHandler(ClusterSelectionEventHandler handler)
handler
- the new selection event handlerpublic void setSelectionEventHandler(MyInputDragSequenceEventHandler handler)
handler
- the event handler for input movingpublic void setSelectionEventHandler(MyLabelDragSequenceEventHandler handler)
handler
- the event handler for label movingpublic void removeSelection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |