Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.RoutingListener


    private List<ActionFigure> cachedFigures = null;
    private ActionFigure multipleFigure = null;
    private ActionFigure getMultipleFigure() {
        if (multipleFigure == null) {
            multipleFigure = ActionFigure.getMultipleFigure();
            addRoutingListener(new RoutingListener() {
                public void invalidate(Connection connection) {
                }
                public void postRoute(Connection connection) {
                    //if (getParent() == null) return;
                    multipleFigure.setLocation(
View Full Code Here


            IDecisionProvider provider = CustomizationRegistry.getProvider(decision);
            if (transition.getName().equals(provider.getDefaultTransitionName(decision))) {
                figure.setDefaultFlow(true);
            }
      }
        figure.addRoutingListener(new RoutingListener() {
            public void invalidate(Connection connection) {
            }
            public void postRoute(Connection connection) {
                if (!getModel().getProcessDefinition().isShowActions()) {
                    return;
View Full Code Here

    @Override
    protected IFigure createFigure() {
        IFigure figure = super.createFigure();
        if (getParent() instanceof TransitionGraphicalEditPart) {
            PolylineConnection connection = (PolylineConnection) ((TransitionGraphicalEditPart) getParent()).getConnectionFigure();
            connection.addRoutingListener(new RoutingListener() {
                public void invalidate(Connection connection) {
                }
                public void postRoute(Connection connection) {
                    if (getParent() == null) return;
                    int index = ((Active) getParent().getModel()).getActions().indexOf(getModel());
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.RoutingListener

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.