|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IToolBehaviorProvider
The Interface IToolBehaviorProvider.
Method Summary | |
---|---|
void |
dispose()
Dispose. |
java.lang.Object |
getAdapter(java.lang.Class<?> type)
Returns the adapter for the specified key. |
GraphicsAlgorithm |
getChopboxAnchorArea(PictogramElement pe)
Provides the graphics algorithm that defines the outline for the given pictogram element's chopbox Anchor. |
GraphicsAlgorithm[] |
getClickArea(PictogramElement pe)
The returned graphics algorithm's define the area where the user can click to select the shape. |
GraphicsAlgorithm |
getContentArea(ContainerShape cs)
The returned graphics algorithm defines the technical container for active children. |
IContextButtonPadData |
getContextButtonPad(IPictogramElementContext context)
Returns the context button pad data for the given pictogram element context. |
IContextMenuEntry[] |
getContextMenu(ICustomContext context)
Returns the context menu for the current mouse location. |
java.lang.String |
getContributorId()
Returns the contributor ID for the tabbed property sheet page. |
IDecorator[] |
getDecorators(PictogramElement pe)
Returns decorators which will be used at rendering time to decorate the graphical representation of the given pictogram element. Currently only decorators of type IImageDecorator are supported. |
DiagramScrollingBehavior |
getDiagramScrollingBehavior()
Deprecated. Scroll bar based infinite canvas is a workaround for GEF limitations. |
ICustomFeature |
getDoubleClickFeature(IDoubleClickContext context)
Returns a feature which will be executed at at double click. |
ILocationInfo |
getLocationInfo(PictogramElement pe,
ILocationInfo currentLocationInfo)
Returns the location info which will be used for direct editing if the framework cannot decide this. |
IPaletteCompartmentEntry[] |
getPalette()
Return the palette entries for the palette of the graphical editor. |
PictogramElement |
getSelection(PictogramElement originalPe,
PictogramElement[] oldSelection)
Override this method if you want to change the default selection on mouse click. |
GraphicsAlgorithm |
getSelectionBorder(PictogramElement pe)
The returned graphics algorithm defines the selection border and the rectangle where the context buttons appear at. |
ISelectionInfo |
getSelectionInfoForConnection(Connection connection)
Return the selection info for the given connection. |
ISelectionInfo |
getSelectionInfoForShape(Shape shape)
Return the selection info for the given shape. |
java.lang.String |
getTitleToolTip()
Returns a tooltip for the workbench titlebar. |
java.lang.String |
getToolTip(GraphicsAlgorithm graphicsAlgorithm)
Returns the tooltip to be attached to the graphical representation of the given graphics algorithm. |
double[] |
getZoomLevels()
Gets the zoom levels. |
boolean |
isConnectionSelectionEnabled()
Indicates if the selection of connections is enabled. |
boolean |
isMultiSelectionEnabled()
Indicates if the selection of multiple elements is enabled. |
boolean |
isShowGuides()
Indicates whether guides will be shown or not. |
void |
postExecute(IExecutionInfo executionInfo)
Called after execution on stack. |
void |
preExecute(IExecutionInfo executionInfo)
Called before execution on stack. |
Method Detail |
---|
IContextButtonPadData getContextButtonPad(IPictogramElementContext context)
context
- The pictogram element context, for which to return the context
button pad data.
IContextMenuEntry[] getContextMenu(ICustomContext context)
context
- the custom context which contains the info about the location
where the context menu appears.
IPaletteCompartmentEntry[] getPalette()
ICustomFeature getDoubleClickFeature(IDoubleClickContext context)
context
- contains information where the double click gesture has
happened
IDecorator[] getDecorators(PictogramElement pe)
IImageDecorator
are supported.
pe
- the pictogram element
java.lang.Object getAdapter(java.lang.Class<?> type)
type
- the type
PictogramElement getSelection(PictogramElement originalPe, PictogramElement[] oldSelection)
originalPe
- the original pictogram elementoldSelection
- the old selection
null
if there should not be a special selection
behavior; if there should not be a selection simply return the
diagram@Deprecated DiagramScrollingBehavior getDiagramScrollingBehavior()
DefaultToolBehaviorProvider.getDiagramScrollingBehavior()
double[] getZoomLevels()
void dispose()
ISelectionInfo getSelectionInfoForShape(Shape shape)
shape
- the shape
ISelectionInfo getSelectionInfoForConnection(Connection connection)
connection
- the connection
ILocationInfo getLocationInfo(PictogramElement pe, ILocationInfo currentLocationInfo)
pe
- the active and selected pictogram elementcurrentLocationInfo
- the current location info determined by the framework
void preExecute(IExecutionInfo executionInfo)
executionInfo
- info about content to be executedvoid postExecute(IExecutionInfo executionInfo)
executionInfo
- info about content to be executedjava.lang.String getToolTip(GraphicsAlgorithm graphicsAlgorithm)
graphicsAlgorithm
- the graphics algorithm
GraphicsAlgorithm getSelectionBorder(PictogramElement pe)
pe
- the pictogram element
GraphicsAlgorithm getContentArea(ContainerShape cs)
cs
- the container shape
GraphicsAlgorithm[] getClickArea(PictogramElement pe)
pe
- the pictogram element
GraphicsAlgorithm getChopboxAnchorArea(PictogramElement pe)
pe
- the given pictogram element
java.lang.String getTitleToolTip()
null
to indicate that the default from
the graphics framework will be usedboolean isShowGuides()
true
, if guides should be shownboolean isMultiSelectionEnabled()
false
if an editor with single selection
behavior is needed.
false
, if single selection is enforcedboolean isConnectionSelectionEnabled()
true
, if selection of connections is enabledjava.lang.String getContributorId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |