Examples of VerticalAlign


Examples of at.bestsolution.efxclipse.formats.fxg.fxg.VerticalAlign

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setVerticalAlign(VerticalAlign newVerticalAlign) {
    VerticalAlign oldVerticalAlign = verticalAlign;
    verticalAlign = newVerticalAlign == null ? VERTICAL_ALIGN_EDEFAULT : newVerticalAlign;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, FxgPackage.RICH_TEXT__VERTICAL_ALIGN, oldVerticalAlign, verticalAlign));
  }
View Full Code Here

Examples of com.google.collide.client.ui.menu.PositionController.VerticalAlign

  public void setEnabled(boolean isEnabled) {
    this.isEnabled = isEnabled;
  }

  private void setPositionStyle() {
    VerticalAlign vAlign = positioner.getVerticalAlignment();
    HorizontalAlign hAlign = positioner.getHorizontalAlignment();
    switch (positioner.getVerticalAlignment()) {
      case TOP:
        contentElement.addClassName(css.tooltipAbove());
        break;
View Full Code Here

Examples of org.terasology.rendering.nui.VerticalAlign

        int bottom = canvas.size().y;
        int vcenter = canvas.size().y / 2;
        if (element.layoutHint.getPositionCenterVertical() != null) {
            VerticalInfo info = element.layoutHint.getPositionCenterVertical();
            Rect2i targetRegion = getTargetRegion(info.getWidget(), canvas);
            VerticalAlign align = (info.getTarget() != null) ? info.getTarget() : VerticalAlign.MIDDLE;
            vcenter = align.getStart(targetRegion) + info.getOffset();
        }
        if (element.layoutHint.getPositionTop() != null) {
            VerticalInfo info = element.layoutHint.getPositionTop();
            Rect2i targetRegion = getTargetRegion(info.getWidget(), canvas);
            VerticalAlign align = (info.getTarget() != null) ? info.getTarget() : VerticalAlign.TOP;
            top = align.getStart(targetRegion) + info.getOffset();
        }
        if (element.layoutHint.getPositionBottom() != null) {
            VerticalInfo info = element.layoutHint.getPositionBottom();
            Rect2i targetRegion = getTargetRegion(info.getWidget(), canvas);
            VerticalAlign align = (info.getTarget() != null) ? info.getTarget() : VerticalAlign.BOTTOM;
            bottom = align.getStart(targetRegion) - info.getOffset();
        }

        int width = element.layoutHint.getWidth();
        if (width == 0 && element.layoutHint.isUsingContentWidth()) {
            width = canvas.calculateRestrictedSize(element.widget, new Vector2i(right - left, bottom - top)).x;
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.