org.graffiti.plugin.view.interactive
Interface InteractiveView<T extends InteractiveView<T>>

Type Parameters:
T - the common superclass of all views of the view family.
All Superinterfaces:
AttributeConsumer, AttributeListener, Autoscroll, EdgeListener, EventListener, GraphListener, MutuallyReferable, NodeListener, TransactionListener, View, Zoomable

public interface InteractiveView<T extends InteractiveView<T>>
extends View, MutuallyReferable

Views implementing InteractiveView support the trigger/action paradigm. The tool system automatically shows only the tools created for this view.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
ViewFamily.getCommonSuperClass()

Field Summary
 
Fields inherited from interface org.graffiti.plugin.view.View
NO_ZOOM
 
Method Summary
 EditorSession getEditorSession()
          Returns the EditorSession.
 ViewFamily<T> getFamily()
          Returns the view family.
 GestureFeedbackProvider getGestureFeedbackProvider()
          Returns the GestureFeedbackProvider provided by this view.
 GraphElementFinder getGraphElementFinder()
          Returns the GraphElementFinder provided by this view.
 UserGestureListener getUserGestureDispatcher()
          Gets the dispatcher that is currently passed the user gestures to by this view.
 void setEditorSession(EditorSession editorSession)
          Is called when the EditorSession has changed.
 void setSelectionModel(SelectionModel selectionModel)
          Is called when the SelectionModel has changed.
 void setUserGestureDispatcher(UserGestureListener dispatcher)
          Sets the dispatcher of UserGestures.
 
Methods inherited from interface org.graffiti.plugin.view.View
addMessageListener, close, completeRedraw, embedsInJScrollPane, getComponentElementMap, getComponentForElement, getGrid, getId, getViewComponent, getViewName, removeMessageListener, repaint, setAttributeComponentManager, setGraph, setGrid, setId, supportsGrid
 
Methods inherited from interface org.graffiti.event.GraphListener
postEdgeAdded, postEdgeRemoved, postGraphCleared, postNodeAdded, postNodeRemoved, preEdgeAdded, preEdgeRemoved, preGraphCleared, preNodeAdded, preNodeRemoved
 
Methods inherited from interface org.graffiti.event.NodeListener
postInEdgeAdded, postInEdgeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preInEdgeAdded, preInEdgeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preUndirectedEdgeAdded, preUndirectedEdgeRemoved
 
Methods inherited from interface org.graffiti.event.EdgeListener
postDirectedChanged, postEdgeReversed, postSourceNodeChanged, postTargetNodeChanged, preDirectedChanged, preEdgeReversed, preSourceNodeChanged, preTargetNodeChanged
 
Methods inherited from interface org.graffiti.event.AttributeListener
postAttributeAdded, postAttributeChanged, postAttributeRemoved, preAttributeAdded, preAttributeChanged, preAttributeRemoved
 
Methods inherited from interface org.graffiti.event.TransactionListener
transactionFinished, transactionStarted
 
Methods inherited from interface java.awt.dnd.Autoscroll
autoscroll, getAutoscrollInsets
 
Methods inherited from interface org.graffiti.attributes.AttributeConsumer
getDirectedEdgeAttribute, getGraphAttribute, getNodeAttribute, getUndirectedEdgeAttribute
 
Methods inherited from interface org.graffiti.plugin.view.Zoomable
getZoom, getZoomTransform, setZoom
 
Methods inherited from interface org.graffiti.util.MutuallyReferable
addReference
 

Method Detail

setUserGestureDispatcher

void setUserGestureDispatcher(UserGestureListener dispatcher)
Sets the dispatcher of UserGestures. When a new UserGesture occurs, this view will pass it to the dispatcher. The specified dispatcher needs not to be an instance of UserGestureDispatcher as it can delegate the user gestures to a real dispatcher.

Parameters:
dispatcher - the dispatcher which the upcoming user gestures are passed to by this view.

getUserGestureDispatcher

UserGestureListener getUserGestureDispatcher()
Gets the dispatcher that is currently passed the user gestures to by this view.

Returns:
the dispatcher that is currently passed the user gestures to by this view.

setSelectionModel

void setSelectionModel(SelectionModel selectionModel)
Is called when the SelectionModel has changed.

Parameters:
selectionModel - the new SelectionModel.

setEditorSession

void setEditorSession(EditorSession editorSession)
Is called when the EditorSession has changed.

Parameters:
editorSession - the new EditorSession.

getEditorSession

EditorSession getEditorSession()
Returns the EditorSession.

Returns:
the EditorSession containing this view.

getGraphElementFinder

GraphElementFinder getGraphElementFinder()
Returns the GraphElementFinder provided by this view.

Returns:
the GraphElementFinder provided by this view.

getGestureFeedbackProvider

GestureFeedbackProvider getGestureFeedbackProvider()
Returns the GestureFeedbackProvider provided by this view.

Returns:
the GestureFeedbackProvider provided by this view.

getFamily

ViewFamily<T> getFamily()
Returns the view family. The returned object is shared by all views that use the same tools, triggers and actions.

Returns:
the view family.


Generated at 2012-05-30 11:00:36 PM CEST