public interface IDiagramService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOOL_CREATE_DRAWING_ELLIPSE
Tool that creates drawing ellipses.
|
static java.lang.String |
TOOL_CREATE_DRAWING_LINE
Tool that creates drawing lines.
|
static java.lang.String |
TOOL_CREATE_DRAWING_RECTANGLE
Tool that creates drawing rectangles.
|
static java.lang.String |
TOOL_CREATE_DRAWING_TEXT
Tool that creates drawing texts.
|
static java.lang.String |
TOOL_POPUPMENU_CREATELINK
ID of the link creation tool that shows popup menu to choose the kind of link.
|
Modifier and Type | Method and Description |
---|---|
IDiagramHandle |
getDiagramHandle(AbstractDiagram diagram)
Get a diagram handle on 'diagram'.
It opens a new diagram editor in Modelio, or select it if already opened. |
IModelViewTemplate<AbstractDiagram> |
getDiagramTemplate(java.lang.String modelViewTemplateId)
Get a Diagram Creator from its id.
|
PaletteEntry |
getRegisteredTool(java.lang.String id)
Get the palette tool from the given id.
|
IStyleHandle |
getStyle(java.lang.String name)
Get an installed diagram styles from its name.
|
java.util.List<IStyleHandle> |
listStyles()
List all diagram styles that are currently installed.
|
void |
registerCustomizedTool(java.lang.String id,
MClass metaclass,
Stereotype stereotype,
java.lang.String dependency,
IAttachedBoxTool handler) |
void |
registerCustomizedTool(java.lang.String id,
MClass metaclass,
Stereotype stereotype,
java.lang.String dependency,
IBoxTool handler) |
void |
registerCustomizedTool(java.lang.String id,
MClass metaclass,
Stereotype stereotype,
java.lang.String dependency,
ILinkTool handler) |
void |
registerCustomizedTool(java.lang.String id,
MClass metaclass,
Stereotype stereotype,
java.lang.String dependency,
IMultiLinkTool handler) |
void |
registerDiagramContributor(ContributorCategory category,
IDiagramWizardContributor contributor)
|
void |
registerDiagramCustomization(Stereotype stereotype,
MClass baseDiagramClass,
IDiagramCustomizer customizer) |
IStyleHandle |
registerStyle(java.lang.String styleName,
java.lang.String baseStyleName,
java.io.File styleData)
Register a new named style along with its 'data' file.
|
void |
unregisterCustomizedTool(java.lang.String id) |
void |
unregisterDiagramContributor(ContributorCategory category,
IDiagramWizardContributor contributor)
|
void |
unregisterDiagramCustomization(Stereotype stereotype,
MClass baseDiagramClass,
IDiagramCustomizer customizer) |
static final java.lang.String TOOL_CREATE_DRAWING_LINE
static final java.lang.String TOOL_CREATE_DRAWING_TEXT
static final java.lang.String TOOL_CREATE_DRAWING_ELLIPSE
static final java.lang.String TOOL_CREATE_DRAWING_RECTANGLE
static final java.lang.String TOOL_POPUPMENU_CREATELINK
IStyleHandle getStyle(java.lang.String name)
name
- the name of the style to look for.null
if it isn't installed.java.util.List<IStyleHandle> listStyles()
null
.IStyleHandle registerStyle(java.lang.String styleName, java.lang.String baseStyleName, java.io.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.IDiagramHandle getDiagramHandle(AbstractDiagram diagram)
diagram
- the AbstractDiagram to open.PaletteEntry getRegisteredTool(java.lang.String id)
id
- An id.void registerCustomizedTool(java.lang.String id, MClass metaclass, Stereotype stereotype, java.lang.String dependency, IBoxTool handler)
void registerCustomizedTool(java.lang.String id, MClass metaclass, Stereotype stereotype, java.lang.String dependency, IAttachedBoxTool handler)
void registerCustomizedTool(java.lang.String id, MClass metaclass, Stereotype stereotype, java.lang.String dependency, ILinkTool handler)
void registerCustomizedTool(java.lang.String id, MClass metaclass, Stereotype stereotype, java.lang.String dependency, IMultiLinkTool handler)
void registerDiagramCustomization(Stereotype stereotype, MClass baseDiagramClass, IDiagramCustomizer customizer)
void unregisterDiagramCustomization(Stereotype stereotype, MClass baseDiagramClass, IDiagramCustomizer customizer)
void unregisterCustomizedTool(java.lang.String id)
@Deprecated void registerDiagramContributor(ContributorCategory category, IDiagramWizardContributor contributor)
category
- of the diagram contributorcontributor
- the diagram contributor@Deprecated void unregisterDiagramContributor(ContributorCategory category, IDiagramWizardContributor contributor)
category
- of the diagram contributorcontributor
- the diagram contributorIModelViewTemplate<AbstractDiagram> getDiagramTemplate(java.lang.String modelViewTemplateId)
Creator identifier | Description |
---|---|
"ClassArchitectureDiagramTemplate" | A Class Architecture diagram shows how a class is made, what it consists of, what it is in terms of inheritance and its place in the project.
For a class, it includes:
|
"ClassStructureDiagramTemplate" | A Class Structure diagram shows how a class is made, what it consists of, what it is in terms of inheritance.
For a class, it includes:
|
"CompositionNavigationDiagramTemplate" | A Composition diagram shows owned elements of a ModelTree.
For a
|
"DependencyDiagramTemplate" | A Dependency diagram shows incoming and outgoing dependencies of a NameSpace .
For a |
"InheritanceDiagramTemplate" | A Class Inheritance diagram shows where a Classifier is in its inheritance graph.
For a
|
"PackageContentStructureDiagramTemplate" | A SubPackage Structure diagram shows the internal structure of a package, and the links between them.
For a package, it includes:
|
"SubPackageStructureDiagramTemplate" | A SubPackage Structure diagram shows the internal structure of a package in terms of packages, and the dependencies between them.
For a package, it includes:
|
"UseCaseFocusDiagramTemplate" | A 'Use Case close up' diagram shows for a UseCase :
|
modelViewTemplateId
- identifier of the diagram template.null
if the id is not found.