Package org.eclipse.graphiti.ui.editor
Interface IDiagramBehaviorUI
- All Superinterfaces:
IDiagramBehavior
- All Known Implementing Classes:
DiagramBehavior
This interface is intended as UI dependent base interface for the common
behavior object that describes and implements the behavior of diagrams and
can be reused within all kinds of diagram containers, e.g. editors, views or
plain UI composites.
- Since:
- 0.10
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.draw2d.geometry.PointcalculateRealMouseLocation(org.eclipse.draw2d.geometry.Point nativeLocation) Calculates the mouse location depending on scrollbars and zoom factor.org.eclipse.gef.DefaultEditDomainReturns the GEF edit domain as needed for some of the feature functionality in Graphiti.org.eclipse.gef.GraphicalEditPartMethod to retrieve the GEFEditPartfor a givenPictogramElement.org.eclipse.draw2d.IFigureMethod to retrieve the Draw2DIFigurefor a givenPictogramElement.Methods inherited from interface org.eclipse.graphiti.platform.IDiagramBehavior
executeFeature, getDiagramContainer, getEditingDomain, refresh, refreshContent, refreshPalette, refreshRenderingDecorators
-
Method Details
-
calculateRealMouseLocation
org.eclipse.draw2d.geometry.Point calculateRealMouseLocation(org.eclipse.draw2d.geometry.Point nativeLocation) Calculates the mouse location depending on scrollbars and zoom factor.- Parameters:
nativeLocation- the native location given asPoint- Returns:
- the
Pointof the real mouse location
-
getEditDomain
org.eclipse.gef.DefaultEditDomain getEditDomain()Returns the GEF edit domain as needed for some of the feature functionality in Graphiti.- Returns:
- the
DefaultEditDomainused in this behavior's editor - See Also:
-
GraphicalEditor.getEditDomain()
-
getEditPartForPictogramElement
Method to retrieve the GEFEditPartfor a givenPictogramElement.- Parameters:
pe- thePictogramElementto retrieve the GEF representation for- Returns:
- the GEF
GraphicalEditPartthat represents the givenPictogramElement.
-
getFigureForPictogramElement
Method to retrieve the Draw2DIFigurefor a givenPictogramElement.- Parameters:
pe- thePictogramElementto retrieve the Draw2D representation for- Returns:
- the Draw2D
IFigurethat represents the givenPictogramElement.
-