Package org.eclipse.sapphire.ui.def

Examples of org.eclipse.sapphire.ui.def.VerticalAlignment


{
  public SapphireImageFigure(ImagePresentation imagePresentation, Image image)
  {
    super(image);
    HorizontalAlignment horizontalAlign = imagePresentation.getLayoutConstraint().getHorizontalAlignment().content();   
    VerticalAlignment verticalAlign = imagePresentation.getLayoutConstraint().getVerticalAlignment().content();
    int alignment = getDraw2dImageAlignment(horizontalAlign);
    alignment |= getDraw2dImageAlignment(verticalAlign);
    setAlignment(alignment);
  }
View Full Code Here


    else if (horizontalAlign == HorizontalAlignment.CENTER)
    {
      offsetX = (baseSize.width - childSize.width + 1) >> 1;
    }
   
    VerticalAlignment verticalAlign = constraint.getVerticalAlignment();
    if (verticalAlign == VerticalAlignment.TOP)
    {
      offsetY = constraint.getTopMargin();
    }
    else if (verticalAlign == VerticalAlignment.BOTTOM)
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ui.def.VerticalAlignment

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.