Examples of DiagramResourceCache


Examples of org.eclipse.sapphire.ui.swt.gef.model.DiagramResourceCache

      public Insets getInsets() {
        return new Insets(0,2,0,2);
      }
       
      };
      DiagramResourceCache resourceCache = getCastedModel().getDiagramModel().getResourceCache();
      label.setFont(resourceCache.getDefaultFont());
   
      // let text change color when the parent connection is selected
//      DiagramResourceCache resourceCache = getCastedModel().getDiagramModel().getResourceCache();
//    DiagramConnectionPart connectionPart = getCastedModel().getModelPart();
//    label.setForegroundColor(resourceCache.getLineColor(connectionPart));
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.model.DiagramResourceCache

    IFigure hostFigure = getHostFigure();
    PolylineConnection connection = new DummyPolylineConnection(hostFigure);
    connection.setLineWidth(2);
    connection.setLineStyle(SWT.LINE_DASH);
    if (getHost() instanceof DiagramNodeEditPart) {
      DiagramResourceCache cache = ((DiagramNodeEditPart)getHost()).getCastedModel().getDiagramModel().getResourceCache();
      connection.setForegroundColor(cache.getColor(DUMMY_CONNECTION_FOREGROUND));
    }
    return connection;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.