Examples of SizeValue


Examples of de.lessvoid.nifty.tools.SizeValue

   * @param parameter Parameter
   */
  public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
    String startSizeString = parameter.getProperty("startSize");
    if (startSizeString != null) {
      startSize = new SizeValue(startSizeString);
    }

    String endSizeString = parameter.getProperty("endSize");
    if (endSizeString != null) {
      endSize = new SizeValue(endSizeString);
    }
    pulsator = new Pulsator(parameter, new TimeProvider());
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

      if (hintLayer != null && !hintLayer.isVisible()) {
        // decide if we can already show the hint
        if (nifty.getNiftyMouse().getNoMouseMovementTime() > hintDelay) {
          Element hintPanel = hintLayer.findElementByName(hintPanelId);
          if (hintPanel != null) {
            hintPanel.setConstraintX(new SizeValue(getPosX(element, hintPanel, r.getWidth()) + "px"));
            hintPanel.setConstraintY(new SizeValue(getPosY(element, hintPanel, r.getHeight()) + "px"));

            hintLayer.layoutElements();
            hintLayer.show();
          }
        }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

    endSize = Float.parseFloat(parameter.getProperty("endSize", "2.0"));

    // hover mode only
    String maxSizeString = parameter.getProperty("maxSize");
    if (maxSizeString != null) {
      textSize = new SizeValue(maxSizeString);
    }
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

    BoxConstraints constraint = firstChild.getBoxConstraints();
    if (constraint == null) {
      return null;
    }
    return
      new SizeValue(
          constraint.getWidth().getValueAsInt(0) +
          root.getBoxConstraints().getPaddingLeft().getValueAsInt(root.getBox().getWidth()) +
          root.getBoxConstraints().getPaddingRight().getValueAsInt(root.getBox().getWidth()) + "px");
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

    BoxConstraints constraint = firstChild.getBoxConstraints();
    if (constraint == null) {
      return null;
    }
    return
      new SizeValue(
          constraint.getHeight().getValueAsInt(0) +
          root.getBoxConstraints().getPaddingTop().getValueAsInt(root.getBox().getHeight()) +
          root.getBoxConstraints().getPaddingBottom().getValueAsInt(root.getBox().getHeight()) + "px");

  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

    this.y = null;
    this.width = null;
    this.height = null;
    this.horizontalAlign = HorizontalAlign.left;
    this.verticalAlign = VerticalAlign.top;
    paddingLeft = new SizeValue("0px");
    paddingRight = new SizeValue("0px");
    paddingTop = new SizeValue("0px");
    paddingBottom = new SizeValue("0px");
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

        - e.getBoxConstraints().getPaddingBottom().getValueAsInt(root.getBox().getHeight());
      if (partHeight > newHeight) {
        newHeight = partHeight;
      }
    }
    return new SizeValue(newHeight + "px");
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

      newWidth += e.getBoxConstraints().getWidth().getValueAsInt(0);
    }
    newWidth += root.getBoxConstraints().getPaddingLeft().getValueAsInt(root.getBox().getWidth());
    newWidth += root.getBoxConstraints().getPaddingRight().getValueAsInt(root.getBox().getWidth());

    return new SizeValue(newWidth + "px");
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

      newHeight += e.getBoxConstraints().getHeight().getValueAsInt(0);
    }
    newHeight += root.getBoxConstraints().getPaddingTop().getValueAsInt(root.getBox().getHeight());
    newHeight += root.getBoxConstraints().getPaddingBottom().getValueAsInt(root.getBox().getHeight());

    return new SizeValue(newHeight + "px");
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

      return null;
    }
    if (value.length() == 0) {
      return null;
    }
    return new SizeValue(value);
  }
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.