Examples of VertexFigure


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

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

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

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

   *
   * @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

Examples of org.drools.eclipse.editors.rete.figure.VertexFigure

    /*(non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        return new VertexFigure( getCastedModel().getFillColor(),
                                 getCastedModel().getDrawColor() );
    }
View Full Code Here

Examples of org.drools.eclipse.editors.rete.figure.VertexFigure

    /*(non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        return new VertexFigure( getCastedModel().getFillColor(),
                                 getCastedModel().getDrawColor() );
    }
View Full Code Here

Examples of org.drools.eclipse.editors.rete.figure.VertexFigure

    /*(non-Javadoc)
     * @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
     */
    protected IFigure createFigure() {
        return new VertexFigure( getCastedModel().getFillColor(),
                                 getCastedModel().getDrawColor() );
    }
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.