Package org.eclipse.graphiti.mm.pictograms

Examples of org.eclipse.graphiti.mm.pictograms.ContainerShape.eContainer()


                            businessValue, text.getFont());
                   
                    text.setHeight(2 + (dim.getHeight() *
                        businessValue.split("\n").length));
                    cs.getGraphicsAlgorithm().setHeight(text.getHeight());
                    if (cs.eContainer() instanceof ContainerShape) {
                      ((ContainerShape) cs.eContainer()
                          ).getGraphicsAlgorithm().setHeight(
                              text.getHeight() + 20);
                    }
                   
View Full Code Here


                   
                    text.setHeight(2 + (dim.getHeight() *
                        businessValue.split("\n").length));
                    cs.getGraphicsAlgorithm().setHeight(text.getHeight());
                    if (cs.eContainer() instanceof ContainerShape) {
                      ((ContainerShape) cs.eContainer()
                          ).getGraphicsAlgorithm().setHeight(
                              text.getHeight() + 20);
                    }
                   
                    return true;
View Full Code Here

    ContainerShape activityContainer = (ContainerShape) BusinessObjectUtil.getFirstBaseElementFromDiagram(diagram,
            event.getAttachedToRef());
    GraphicsAlgorithm activityGa = activityContainer.getGraphicsAlgorithm();
    ILocation activityLoc = peService.getLocationRelativeToDiagram(activityContainer);

    if (!(activityContainer.equals(context.getTargetContainer()) || activityContainer.eContainer().equals(
            context.getTargetContainer()))) {
      return false;
    }

    PositionOnLine pos = getPositionOnLine(x, y, eventGa.getWidth(), eventGa.getHeight(), activityLoc.getX(),
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.