public interface IDiagramService
| Modifier and Type | Method and Description |
|---|---|
IAutoDiagramFactory |
getAutoDiagramFactory()
Get the auto diagram factory.
|
IDiagramHandle |
getDiagramHandle(IAbstractDiagram diagram)
Get a diagram handle on 'diagram'.
|
ToolEntry |
getRegisteredTool(String id)
Get the palette tool from the given id.
|
IStyleHandle |
getStyle(String name)
Get an installed diagram styles from its name.
|
List<IStyleHandle> |
listStyles()
List all diagram styles that are currently installed.
|
void |
registerCustomizedTool(String id,
Class<? extends IElement> metaclass,
IStereotype stereotype,
String dep,
IAttachedBoxCommand handler)
Register a new palette 'attached box' Tool.
|
void |
registerCustomizedTool(String id,
Class<? extends IElement> metaclass,
IStereotype stereotype,
String dep,
IBoxCommand handler)
Register a new palette 'box' Tool.
|
void |
registerCustomizedTool(String id,
Class<? extends IElement> metaclass,
IStereotype stereotype,
String dep,
ILinkCommand handler)
Register a new palette 'link' Tool.
|
void |
registerCustomizedTool(String id,
Class<? extends IElement> metaclass,
IStereotype stereotype,
String dep,
IMultiLinkCommand handler)
Register a new palette 'multi link' Tool.
|
void |
registerDiagramCustomization(IStereotype stereotype,
Class<? extends IAbstractDiagram> baseDiagramClass,
IDiagramCustomizer customizer)
Register a customizer for a stereotyped diagram.
|
IStyleHandle |
registerStyle(String styleName,
String baseStyleName,
File styleData)
Register a new named style along with its 'data' file.
|
void |
unregisterDiagramCustomization(IStereotype stereotype,
Class<? extends IAbstractDiagram> baseDiagramClass,
IDiagramCustomizer customizer)
Unregister a customizer for a stereotyped diagram.
|
IAutoDiagramFactory getAutoDiagramFactory()
IDiagramHandle getDiagramHandle(IAbstractDiagram diagram)
diagram - the IAbstractDiagram to open.ToolEntry getRegisteredTool(String id)
id - An id.IStyleHandle getStyle(String name)
name - the name of the style to look for.null if it isn't installed.List<IStyleHandle> listStyles()
null.void registerCustomizedTool(String id, Class<? extends IElement> metaclass, IStereotype stereotype, String dep, IBoxCommand handler)
id - The new tool id.metaclass - the metaclass of the element to create.stereotype - an optional stereotype.dep - the optional "parent to child" meta dependency used to attach the new element to its owner.handler - The new 'box' tool behavior.IBoxCommandvoid registerCustomizedTool(String id, Class<? extends IElement> metaclass, IStereotype stereotype, String dep, IAttachedBoxCommand handler)
id - The new tool id.metaclass - the metaclass of the element to create.stereotype - an optional stereotype.dep - the "parent to child" meta dependency used to attach the new element to its owner.handler - The new 'attached box' tool behavior.IAttachedBoxCommandvoid registerCustomizedTool(String id, Class<? extends IElement> metaclass, IStereotype stereotype, String dep, ILinkCommand handler)
id - The new tool id.metaclass - the metaclass of the element to create.stereotype - an optional stereotype.dep - the "parent to child" meta dependency used to attach the new element to its owner.handler - The new 'link' tool behavior.ILinkCommandvoid registerCustomizedTool(String id, Class<? extends IElement> metaclass, IStereotype stereotype, String dep, IMultiLinkCommand handler)
id - The new tool id.metaclass - the metaclass of the element to create.stereotype - an optional stereotype.dep - the "parent to child" meta dependency used to attach the new element to its owner.handler - The new 'multi link' tool behavior.IMultiLinkCommandvoid registerDiagramCustomization(IStereotype stereotype, Class<? extends IAbstractDiagram> baseDiagramClass, IDiagramCustomizer customizer)
stereotype - the diagram stereotype which the customizer is intended forbaseDiagramClass - the base diagram editor to customizecustomizer - the customizer implementationIStyleHandle registerStyle(String styleName, String baseStyleName, File styleData)
styleName - then name of the style to register.baseStyleName - the cascaded style.styleData - the list of all properties defined in the style.null if the style could not be created. When the style already exists it is simply returned.void unregisterDiagramCustomization(IStereotype stereotype, Class<? extends IAbstractDiagram> baseDiagramClass, IDiagramCustomizer customizer)
stereotype - the diagram stereotype which the customizer is intended forbaseDiagramClass - the base diagram editor to customizecustomizer - the customizer implementation