public interface IDiagramHandle
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this diagram handle and release associated ressources.
|
IAbstractDiagram |
getDiagram()
Get the element this
IDiagramHandle is related to. |
List<IDiagramGraphic> |
getDiagramGraphics(IElement element)
Returns the list of diagram graphic representing (ie: for which the getElement() method does return the element
of) the given reference in this diagram or an empty list if none is found.
|
IDiagramDG |
getDiagramNode()
Get the diagram graphic for the diagram itself.
|
void |
mask(IDiagramGraphic graphic)
Mask a graphical element in the diagram.
|
void |
save()
Save the diagram in Modelio.
|
void |
saveInFile(String format,
String targetFile)
Deprecated.
since 2.1.1 use
saveInFile(String, String, int) instead. |
void |
saveInFile(String format,
String targetFile,
int margin)
Saves the diagram image in a file with the specified name.
|
List<IDiagramGraphic> |
unmask(IElement element,
int x,
int y)
Unmask a model element in a diagram.
|
IAbstractDiagram getDiagram()
IDiagramHandle
is related to.List<IDiagramGraphic> getDiagramGraphics(IElement element)
element
- a model element for which we are searching graphics.IDiagramDG getDiagramNode()
void mask(IDiagramGraphic graphic)
graphic
- The graphical element to remove from the diagram.void save()
List<IDiagramGraphic> unmask(IElement element, int x, int y)
The model element is unmasked at the given position.
element
- the model element to unmask.x
- the x coordinates of the unmasking position.y
- the y coordinates of the unmasking position.null
.@Deprecated void saveInFile(String format, String targetFile)
saveInFile(String, String, int)
instead.format
- the format to write the images in.targetFile
- the name of the file to write the image to.void close()
void saveInFile(String format, String targetFile, int margin)
format
- the format to write the images in.targetFile
- the name of the file to write the image to.margin
- the margins to add around the content of the diagram.