public interface IDiagramGraphicFactory
Modifier and Type | Method and Description |
---|---|
IDiagramDrawingNode |
createDrawingEllipse(IDiagramDrawingsLayer layer,
java.lang.String drawingIdentifier,
int x,
int y,
int w,
int h)
Creates a drawing ellipse.
|
IDiagramDrawingLink |
createDrawingLine(IDiagramDrawingsLayer layer,
java.lang.String drawingIdentifier,
int x,
int y,
int x2,
int y2)
Creates a drawing line
|
IDiagramDrawingNode |
createDrawingRectangle(IDiagramDrawingsLayer layer,
java.lang.String drawingIdentifier,
int x,
int y,
int w,
int h)
Creates a drawing rectangle.
|
IDiagramDrawingNode |
createDrawingText(IDiagramDrawingsLayer layer,
java.lang.String drawingIdentifier,
java.lang.String label,
int x,
int y,
int w,
int h)
Creates a drawing rectangle.
|
java.util.List<IDiagramGraphic> |
unmask(MObject element,
int x,
int y)
Unmask a model element in a diagram.
|
IDiagramDrawingNode createDrawingRectangle(IDiagramDrawingsLayer layer, java.lang.String drawingIdentifier, int x, int y, int w, int h)
layer
- the layer to usedrawingIdentifier
- An identifier unique in the diagram, to be able to look for the graphic later.
If null, an identifier will be automatically generated.x
- the x coordinates of the top left corner.y
- the y coordinates of the top left corner.w
- the node widthh
- the node heightIDiagramDrawingNode createDrawingEllipse(IDiagramDrawingsLayer layer, java.lang.String drawingIdentifier, int x, int y, int w, int h)
layer
- the layer to usedrawingIdentifier
- An identifier unique in the diagram, to be able to look for the graphic later.
If null, an identifier will be automatically generated.x
- the x coordinates of the graphic position.y
- the y coordinates of the graphic position.w
- the node widthh
- the node heightIDiagramDrawingNode createDrawingText(IDiagramDrawingsLayer layer, java.lang.String drawingIdentifier, java.lang.String label, int x, int y, int w, int h)
layer
- the layer to usedrawingIdentifier
- An identifier unique in the diagram, to be able to look for the graphic later.
If null, an identifier will be automatically generated.label
- the text labelx
- the x coordinates of the graphic position.y
- the y coordinates of the graphic position.w
- the node widthh
- the node heightIDiagramDrawingLink createDrawingLine(IDiagramDrawingsLayer layer, java.lang.String drawingIdentifier, int x, int y, int x2, int y2)
layer
- the layer to usedrawingIdentifier
- An identifier unique in the diagram, to be able to look for the graphic later.
If null, an identifier will be automatically generated.x
- the x coordinates of the first point.y
- the y coordinates of the first point.x2
- the x coordinates of the second point.y2
- the y coordinates of the second point.java.util.List<IDiagramGraphic> unmask(MObject 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
.