Package org.springframework.ide.eclipse.webflow.ui.graph.figures

Examples of org.springframework.ide.eclipse.webflow.ui.graph.figures.CompoundStateFigure


  public ConnectionAnchor getTargetConnectionAnchor(Request request) {
    return null;
  }

  protected void applyChildrenResults(CompoundDirectedGraph graph, Map map) {
    CompoundStateFigure figure = (CompoundStateFigure) getFigure();
    int headerY = figure.getHeader().getBounds().getBottom().y + 7;

    int diff = -1;
    for (int i = 0; i < getChildren().size(); i++) {
      AbstractStatePart part = (AbstractStatePart) getChildren().get(i);
      part.applyGraphResults(graph, map);
View Full Code Here


        new FlowStateLayoutEditPolicy());
    installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, null);
  }

  protected IFigure createFigure() {
    CompoundStateFigure figure = new CompoundStateFigure((IWebflowModelElement) getModel());
    ((Label) figure.getHeader())
        .setIcon(labelProvider.getImage(getModel()));
    ((Label) figure.getHeader()).setIconTextGap(5);
    ((Label) figure.getHeader()).setIconAlignment(PositionConstants.TOP);
    return figure;
  }
View Full Code Here

   * (non-Javadoc)
   * @see org.springframework.ide.eclipse.webflow.ui.graph.parts.ChildrenStatePart#applyChildrenResults(org.eclipse.draw2d.graph.CompoundDirectedGraph,
   * java.util.Map)
   */
  protected void applyChildrenResults(CompoundDirectedGraph graph, Map map) {
    CompoundStateFigure figure = (CompoundStateFigure) getFigure();
    int headerY = figure.getHeader().getBounds().getBottom().y + 9;
    int y = 0;
    int x = -1;
    for (int i = 0; i < getChildren().size(); i++) {
      AbstractStatePart part = (AbstractStatePart) getChildren().get(i);
      if (part.getModel() instanceof IActionElement
View Full Code Here

  /* (non-Javadoc)
   * @see org.springframework.ide.eclipse.webflow.ui.graph.parts.ChildrenStatePart#applyChildrenResults(org.eclipse.draw2d.graph.CompoundDirectedGraph, java.util.Map)
   */
  protected void applyChildrenResults(CompoundDirectedGraph graph, Map map) {
    CompoundStateFigure figure = (CompoundStateFigure) getFigure();
    int headerY = figure.getHeader().getBounds().getBottom().y + 8;
    for (int i = 0; i < getChildren().size(); i++) {
      AbstractStatePart part = (AbstractStatePart) getChildren().get(i);
      part.applyGraphResults(graph, map);
      Point p = part.getFigure().getBounds().getLocation();
      p.y = headerY + (i * 23);
 
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.ui.graph.figures.CompoundStateFigure

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.