Search in sources :

Example 1 with IGraphicsIcon

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());
    }
}
Also used : IGraphicsIcon(com.archimatetool.editor.ui.IGraphicsIcon) IDiagramModel(com.archimatetool.model.IDiagramModel) IDiagramModelReference(com.archimatetool.model.IDiagramModelReference)

Aggregations

IGraphicsIcon (com.archimatetool.editor.ui.IGraphicsIcon)1 IDiagramModel (com.archimatetool.model.IDiagramModel)1 IDiagramModelReference (com.archimatetool.model.IDiagramModelReference)1