Examples of SapphireStackLayoutConstraint


Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireStackLayoutConstraint

        SequenceLayoutConstraintDef def = (SequenceLayoutConstraintDef)childShapePresentation.getLayoutConstraint();
        layoutConstraint = new SapphireSequenceLayoutConstraint(def);
      }
      else
      {
        SapphireStackLayoutConstraint constraint = null;
        if (childShapePresentation.getLayoutConstraint() != null)
        {
          SequenceLayoutConstraintDef constraintDef =
              (SequenceLayoutConstraintDef)childShapePresentation.getLayoutConstraint();
          if (constraintDef != null)
          {
            constraint = new SapphireStackLayoutConstraint(
                constraintDef.getHorizontalAlignment().content(),
                constraintDef.getVerticalAlignment().content(),
                constraintDef.getMarginTop().content(),
                constraintDef.getMarginBottom().content(),
                constraintDef.getMarginLeft().content(),
                constraintDef.getMarginRight().content());
          }
        } 
        layoutConstraint = constraint != null ? constraint : new SapphireStackLayoutConstraint();
      }
    }
    return layoutConstraint;
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.layout.SapphireStackLayoutConstraint

        SequenceLayoutConstraintDef def = (SequenceLayoutConstraintDef)childShapePresentation.getLayoutConstraint();
        layoutConstraint = new SapphireSequenceLayoutConstraint(def);
      }
      else
      {
        SapphireStackLayoutConstraint constraint = null;
        if (childShapePresentation.getLayoutConstraint() != null)
        {
          SequenceLayoutConstraintDef constraintDef =
              (SequenceLayoutConstraintDef)childShapePresentation.getLayoutConstraint();
          if (constraintDef != null)
          {
            constraint = new SapphireStackLayoutConstraint(
                constraintDef.getHorizontalAlignment().content(),
                constraintDef.getVerticalAlignment().content(),
                constraintDef.getMarginTop().content(),
                constraintDef.getMarginBottom().content(),
                constraintDef.getMarginLeft().content(),
                constraintDef.getMarginRight().content());
          }
        } 
        layoutConstraint = constraint != null ? constraint : new SapphireStackLayoutConstraint();
      }
    }
    return layoutConstraint;
  }
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.