Package org.eclipse.sapphire.ui.swt.gef.figures

Examples of org.eclipse.sapphire.ui.swt.gef.figures.RectangleFigure


  }
   
  @Override
  public void render()
  {
    IFigure figure = new RectangleFigure(this, getResourceCache(), getConfigurationManager());
    ShapeLayoutDef layoutDef = getLayout();
    for (ShapePresentation childShapePresentation : getChildren())
    {
      if (!(childShapePresentation instanceof ContainerShapePresentation) &&
        !childShapePresentation.part().isActive()) {
        childShapePresentation.render();       
        IFigure childFigure = childShapePresentation.getFigure();
        if (childFigure != null)
        {
          Object layoutConstraint = getLayoutConstraint(childShapePresentation, layoutDef);
          if (layoutConstraint != null)
          {
            figure.add(childFigure, layoutConstraint);
          }
          else
          {
            figure.add(childFigure);
          }
        }
      }
      if (childShapePresentation instanceof ShapeFactoryPresentation)
      {
        ShapeFactoryPresentation shapeFactoryPresentation = (ShapeFactoryPresentation)childShapePresentation;
        shapeFactoryPresentation.setIndex(figure.getChildren().size());
      }
    }
   
    setFigure(figure);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.swt.gef.figures.RectangleFigure

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.