Package net.sf.graphiti.ui.figure

Examples of net.sf.graphiti.ui.figure.VertexFigure$ConcreteBendpoint


  @Override
  protected void refreshVisuals() {
    Vertex vertex = (Vertex) getModel();

    VertexFigure figure = (VertexFigure) getFigure();
    figure.setId((String) vertex.getValue(ObjectType.PARAMETER_ID));
  }
View Full Code Here


   *
   * @param fig
   */
  private void updatePorts(IFigure fig) {
    Vertex vertex = (Vertex) getModel();
    VertexFigure figure = (VertexFigure) fig;
    Graph parent = vertex.getParent();

    figure.resetPorts();

    for (Edge edge : parent.incomingEdgesOf(vertex)) {
      String port = (String) edge
          .getValue(ObjectType.PARAMETER_TARGET_PORT);
      figure.addInputPort(port);
    }

    for (Edge edge : parent.outgoingEdgesOf(vertex)) {
      String port = (String) edge
          .getValue(ObjectType.PARAMETER_SOURCE_PORT);
      figure.addOutputPort(port);
    }

    figure.adjustSize();
    vertex.setValue(Vertex.PROPERTY_SIZE, figure.getBounds().getCopy());
  }
View Full Code Here

TOP

Related Classes of net.sf.graphiti.ui.figure.VertexFigure$ConcreteBendpoint

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.