public abstract class DefaultDiagramTool extends java.lang.Object implements IDiagramTool
IDiagramTool
.Constructor and Description |
---|
DefaultDiagramTool() |
Modifier and Type | Method and Description |
---|---|
void |
decorate(java.lang.String label,
java.lang.String tooltip,
ImageDescriptor image) |
protected Stereotype |
findStereotypeFromSpec(MClass metaclass,
java.lang.String stereotypeSpec)
Find the stereotype from a stereotype specification.
|
ImageDescriptor |
getBitmap()
Get the command's bitmap.
|
java.lang.String |
getLabel()
Get the name of the command.
|
IModule |
getModule() |
java.lang.String |
getParameter(java.lang.String key)
Convenience to get a parameter value.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
java.util.List<ElementScope> |
getSourceScopes() |
java.util.List<ElementScope> |
getTargetScopes() |
java.lang.String |
getTooltip()
Gets the tooltip of this command.
|
void |
initialize(java.util.List<ElementScope> sourceScopes,
java.util.List<ElementScope> targetScopes,
java.util.Map<java.lang.String,java.lang.String> parameters,
IModule module) |
public java.lang.String getParameter(java.lang.String key)
key
- the parameterpublic void decorate(java.lang.String label, java.lang.String tooltip, ImageDescriptor image)
decorate
in interface IDiagramTool
public void initialize(java.util.List<ElementScope> sourceScopes, java.util.List<ElementScope> targetScopes, java.util.Map<java.lang.String,java.lang.String> parameters, IModule module)
initialize
in interface IDiagramTool
public IModule getModule()
getModule
in interface IDiagramTool
protected final Stereotype findStereotypeFromSpec(MClass metaclass, java.lang.String stereotypeSpec)
The stereotype specification may have one of the following formats:
metaclass
- the metaclass to look fromstereotypeSpec
- the stereotype specificationpublic java.util.Map<java.lang.String,java.lang.String> getParameters()
getParameters
in interface IDiagramTool
public java.lang.String getTooltip()
IDiagramTool
getTooltip
in interface IDiagramTool
public java.lang.String getLabel()
IDiagramTool
getLabel
in interface IDiagramTool
public java.util.List<ElementScope> getSourceScopes()
getSourceScopes
in interface IDiagramTool
public java.util.List<ElementScope> getTargetScopes()
getTargetScopes
in interface IDiagramTool
public ImageDescriptor getBitmap()
IDiagramTool
getBitmap
in interface IDiagramTool