Package org.gvt.model

Examples of org.gvt.model.EdgeModel


   *  creates the UI of edge model.
   * @return figure
   */
  protected IFigure createFigure()
  {
    EdgeModel model = getEdgeModel();
    EdgeFigure eFigure = new EdgeFigure(model.getText(),
      model.getTextFont(),
      model.getTextColor(),
      model.getColor(),
      model.getStyle(),
      model.getArrow(),
      model.getWidth(),
      model.getHighlightColor(),
      model.isHighlight());

    eFigure.updateHighlight(
      (HighlightLayer) getLayer(HighlightLayer.HIGHLIGHT_LAYER),
      getEdgeModel().isHighlight());
    eFigure.setConnectionRouter(new BendpointConnectionRouter()
View Full Code Here


      }
    }

    for (Object o : graph.getEdges())
    {
      EdgeModel edge = (EdgeModel) o;
      if (edge.isHighlight())
      {
        cropto.add((GraphObject) edge);
      }
    }
View Full Code Here

        List edges = node.getSourceConnections();
        Iterator<EdgeModel> iter = edges.iterator();

        while (iter.hasNext())
        {
          EdgeModel edge = iter.next();

          if (edge.isHighlight())
          {
            highlightedEdges.add(edge);
            edge.setHighlight(false);
          }
        }
      }

      cmd.execute();
    }

    // restore node highlights
    for (int i = 0; i < getCommands().size(); i++)
    {
      Command cmd = (Command) getCommands().get(i);

      if (cmd instanceof OrphanChildCommand)
      {
        node = ((OrphanChildCommand) cmd).getChild();

        if (node != null && highlight)
        {
          node.setHighlight(true);
        }
      }
    }

    // restore edge highlights
    for (int i = 0; i < highlightedEdges.size(); i++)
    {
      EdgeModel edge = highlightedEdges.get(i);
      edge.setHighlight(true);
    }
  }
View Full Code Here

      }
    }

    for (Object o : graph.getEdges())
    {
      EdgeModel edge = (EdgeModel) o;
      if (edge.isHighlight())
      {
        cropto.add((GraphObject) edge);
      }
    }
View Full Code Here

TOP

Related Classes of org.gvt.model.EdgeModel

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.