|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDiagramTypeProvider
The Interface IDiagramTypeProvider is the central interface from the Graphiti framework to the diagram type agent. Do not implement this class directly. Extend appropriate classes instead. This is the first revision of the diagram type interface.
Method Summary | |
---|---|
void |
dispose()
Dispose. |
IToolBehaviorProvider[] |
getAvailableToolBehaviorProviders()
Get the list of available tool behaviour providers. |
int |
getCurrentToolBahaviorIndex()
|
IToolBehaviorProvider |
getCurrentToolBehaviorProvider()
Gets the current tool behaviour provider. |
Diagram |
getDiagram()
Returns the diagram. |
IDiagramEditor |
getDiagramEditor()
Returns the current diagram editor. |
String |
getDiagramTitle()
Returns the diagram title. |
IGraphicsAlgorithmRendererFactory |
getGraphicsAlgorithmRendererFactory()
Gets the graphics algorithm renderer factory. |
INotificationService |
getNotificationService()
Returns the notification service. |
Object[] |
getRelatedBusinessObjects(Object[] bos)
Gets the related business objects. |
void |
init(Diagram diagram,
IDiagramEditor diagramEditor)
Implement this method to initialise the diagram type provider. |
boolean |
isAutoUpdateAtReset()
Returns the editor's update behaviour on reset. |
boolean |
isAutoUpdateAtRuntime()
Returns the editor's update behaviour. |
boolean |
isAutoUpdateAtStartup()
Returns the editor's update behaviour at startup. |
void |
postInit()
This method will be called after this diagram type provider has been completely initialised. |
void |
resourceReloaded(Diagram diagram)
This method will be called if the underlying resource which contains the diagram has been reloaded. |
void |
resourcesSaved(Diagram diagram,
Resource[] savedResources)
This method will be called by the DiagramEditor when a diagram has been saved. |
void |
setCurrentToolBahaviorIndex(int index)
|
Methods inherited from interface org.eclipse.graphiti.platform.IExtension |
---|
getProviderId, setProviderId |
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
---|
getFeatureProvider |
Method Detail |
---|
void init(Diagram diagram, IDiagramEditor diagramEditor)
diagram
- the currently opened diagramdiagramEditor
- TODODiagram getDiagram()
INotificationService getNotificationService()
IToolBehaviorProvider[] getAvailableToolBehaviorProviders()
IToolBehaviorProvider
IToolBehaviorProvider getCurrentToolBehaviorProvider()
IToolBehaviorProvider
String getDiagramTitle()
boolean isAutoUpdateAtStartup()
boolean isAutoUpdateAtRuntime()
boolean isAutoUpdateAtReset()
IDiagramEditor getDiagramEditor()
void dispose()
Object[] getRelatedBusinessObjects(Object[] bos)
bos
- the business objects
IGraphicsAlgorithmRendererFactory getGraphicsAlgorithmRendererFactory()
void postInit()
int getCurrentToolBahaviorIndex()
void setCurrentToolBahaviorIndex(int index)
void resourceReloaded(Diagram diagram)
diagram
- void resourcesSaved(Diagram diagram, Resource[] savedResources)
diagram
- The diagram for which the editor has been savedsavedResources
- The resources that have been saved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |