Package org.eclipse.sapphire.ui.diagram.layout

Examples of org.eclipse.sapphire.ui.diagram.layout.ConnectionHashKey


    }   
  }

  public DiagramConnectionInfo read(DiagramConnectionPart connPart)
  {
      ConnectionHashKey key = ConnectionHashKey.createKey(connPart);
      if (this.connectionBendPoints.containsKey(key))
      {
        DiagramConnectionInfo connectionInfo = new DiagramConnectionInfo(this.connectionBendPoints.get(key));
        return connectionInfo;
      }
View Full Code Here


    this.nodeBounds.put(nodeId, nodePart.getNodeBounds());
  }
 
  private void addConnectionToPersistenceCache(DiagramConnectionPart connPart)
  {
    ConnectionHashKey connKey = ConnectionHashKey.createKey(connPart);
    this.connectionBendPoints.put(connKey, connPart.getBendpoints());
  }
View Full Code Here

 
    private boolean isConnectionLayoutChanged(DiagramConnectionPart connPart)
    {
    // Detect whether the connection bendpoints have been changed.
      List<Point> bendpoints = connPart.getBendpoints();
    ConnectionHashKey key = ConnectionHashKey.createKey(connPart);
    boolean changed = false;
    if (this.connectionBendPoints.containsKey(key))
    {   
      List<Point> oldBendpoints = this.connectionBendPoints.get(key);
        if (bendpoints.size() != oldBendpoints.size())
View Full Code Here

      refreshDirtyState();
  }
   
    public DiagramConnectionInfo read(DiagramConnectionPart connPart)
    {
      ConnectionHashKey key = ConnectionHashKey.createKey(connPart);
      if (this.connectionBendPoints.containsKey(key))
      {   
        DiagramConnectionInfo connectionInfo =
            new DiagramConnectionInfo(this.connectionBendPoints.get(key),this.connectionLabelPositions.get(key));
        return connectionInfo;
View Full Code Here

    this.nodeBounds.put(nodeId, nodePart.getNodeBounds());
  }
 
  private void addConnectionToPersistenceCache(DiagramConnectionPart connPart)
  {
    ConnectionHashKey connKey = ConnectionHashKey.createKey(connPart);
    this.connectionBendPoints.put(connKey, connPart.getBendpoints());
    if (connPart.getLabel() != null && connPart.getLabelPosition() != null)
    {
      this.connectionLabelPositions.put(connKey, new Point(connPart.getLabelPosition()));
    }   
View Full Code Here

 
    private boolean isConnectionLayoutChanged(DiagramConnectionPart connPart)
    {
    // Detect whether the connection bendpoints or connection label have been changed.
      List<Point> bendpoints = connPart.getBendpoints();
    ConnectionHashKey key = ConnectionHashKey.createKey(connPart);
    boolean changed = false;
    if (this.connectionBendPoints.containsKey(key))
    {   
      List<Point> oldBendpoints = this.connectionBendPoints.get(key);
      if (bendpoints.size() != oldBendpoints.size())
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.diagram.layout.ConnectionHashKey

Copyright © 2018 www.massapicom. 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.