public interface IDiagramGraphicFactory
Modifier and Type | Method and Description |
---|---|
IDiagramNode |
createDrawingEllipse(IDiagramDrawingsLayer layer,
String drawingIdentifier,
int x,
int y,
int w,
int h)
Creates a drawing ellipse.
|
IDiagramLink |
createDrawingLine(IDiagramDrawingsLayer layer,
String drawingIdentifier,
int x,
int y,
int x2,
int y2)
Creates a drawing line
|
IDiagramNode |
createDrawingRectangle(IDiagramDrawingsLayer layer,
String drawingIdentifier,
int x,
int y,
int w,
int h)
Creates a drawing rectangle.
|
IDiagramNode |
createDrawingText(IDiagramDrawingsLayer layer,
String drawingIdentifier,
String label,
int x,
int y,
int w,
int h)
Creates a drawing rectangle.
|
List<IDiagramGraphic> |
unmask(MObject element,
int x,
int y)
Unmask a model element in a diagram.
|
IDiagramNode createDrawingRectangle(IDiagramDrawingsLayer layer, 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 heightIDiagramNode createDrawingEllipse(IDiagramDrawingsLayer layer, 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 heightIDiagramNode createDrawingText(IDiagramDrawingsLayer layer, String drawingIdentifier, 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 heightIDiagramLink createDrawingLine(IDiagramDrawingsLayer layer, 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.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
.