use of com.archimatetool.editor.ui.IGraphicsIcon in project archi by archimatetool.
the class DiagramModelReferenceFigure method drawIcon.
/**
* Draw the icon
*/
protected void drawIcon(Graphics graphics) {
// Draw the icon depending on the diagramModelObject
IDiagramModel dm = ((IDiagramModelReference) getDiagramModelObject()).getReferencedModel();
IGraphicsIcon graphicsIcon = ArchiLabelProvider.INSTANCE.getGraphicsIconForDiagramModel(dm);
if (graphicsIcon != null) {
graphicsIcon.drawIcon(graphics, getIconOrigin());
}
}
Aggregations