Examples of SizeValue


Examples of com.barchart.feed.base.values.api.SizeValue

    final TimeValue date = message.getTradeDay().tradeDate();

    final DDF_ParamType.Kind kind = param.kind;

    final PriceValue price;
    final SizeValue size;

    switch (kind) {
    default:
     
    case SIZE:
View Full Code Here

Examples of com.barchart.util.values.api.SizeValue

    } else {

      // ### volume

      final SizeValue volumeOld = bar.get(VOLUME);
      final SizeValue volumeNew = volumeOld.add(size);
      bar.set(VOLUME, volumeNew);
      eventAdd(NEW_VOLUME);

      // ### high
View Full Code Here

Examples of com.carrotgarden.util.values.api.SizeValue

  }

  @Override
  public final boolean equals(Object thatSize) {
    if (thatSize instanceof SizeValue) {
      SizeValue that = (SizeValue) thatSize;
      return this.asLong() == that.asLong();
    }
    return false;
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

  private boolean horizontal = false;

  public void activate(final Nifty nifty, final Element element, final EffectProperties parameter) {
    entries.clear();
    for (Attributes entry : parameter.getEffectValues().getValues()) {
      SizeValue offset = new SizeValue(entry.get("offset"));
      Color color = entry.getAsColor("color");
      entries.add(new Entry(offset, color));
    }
    horizontal = "horizontal".equals(parameter.getProperty("direction", "vertical"));
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

        if (lineWidth > maxWidth) {
          maxWidth = lineWidth;
        }
      }
    }
    element.setConstraintWidth(new SizeValue(getTextWidth() + "px"));
    element.setConstraintHeight(new SizeValue(getTextHeight() + "px"));
    isCalculatedLineWrapping = true;
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

      final Falloff falloff,
      final NiftyRenderEngine r) {
    if (targetElement != null) {
      TextRenderer textRenderer = targetElement.getRenderer(TextRenderer.class);
      textRenderer.setText(hintText);
      targetElement.setConstraintWidth(new SizeValue(textRenderer.getTextWidth() + "px"));
      nifty.getCurrentScreen().layoutLayers();
    }
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

    LayoutPart layerLayout = new LayoutPart();
    layerLayout.getBox().setX(0);
    layerLayout.getBox().setY(0);
    layerLayout.getBox().setWidth(nifty.getRenderEngine().getWidth());
    layerLayout.getBox().setHeight(nifty.getRenderEngine().getHeight());
    layerLayout.getBoxConstraints().setX(new SizeValue("0px"));
    layerLayout.getBoxConstraints().setY(new SizeValue("0px"));
    layerLayout.getBoxConstraints().setWidth(new SizeValue(nifty.getRenderEngine().getWidth() + "px"));
    layerLayout.getBoxConstraints().setHeight(new SizeValue(nifty.getRenderEngine().getHeight() + "px"));
    return layerLayout;
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

      falloffConstraint = HoverFalloffConstraint.valueOf(falloffConstraintString);
    }

    String hoverWidthString = parameter.getProperty(Falloff.HOVER_WIDTH);
    if (hoverWidthString != null) {
      hoverWidth = new SizeValue(hoverWidthString);
    }

    String hoverHeightString = parameter.getProperty(Falloff.HOVER_HEIGHT);
    if (hoverHeightString != null) {
      hoverHeight = new SizeValue(hoverHeightString);
    }
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

      final Falloff falloff,
      final NiftyRenderEngine r) {
    NiftyMouse niftyMouse = nifty.getNiftyMouse();

    int newPosX = borderCheck(niftyMouse.getX() + offsetX, element.getWidth(), r.getWidth());
    element.setConstraintX(new SizeValue(newPosX + "px"));

    int newPosY = borderCheck(niftyMouse.getY() + offsetY, element.getHeight(), r.getHeight());
    element.setConstraintY(new SizeValue(newPosY + "px"));

    element.getParent().layoutElements();
  }
View Full Code Here

Examples of de.lessvoid.nifty.tools.SizeValue

    preProcessConstraintWidthThisLevel();
  }

  private void preProcessConstraintWidthThisLevel() {
    // try the original width value first
    SizeValue myWidth = getConstraintWidth();

    // is it empty and we have an layoutManager there's still hope for a width constraint
    if (layoutManager != null && (myWidth == null || isCalcWidthConstraint)) {

      // collect all child layoutPart that have a fixed pixel size in a list
      List < LayoutPart > layoutPartChild = new ArrayList < LayoutPart >();
      for (int i=0; i<elements.size(); i++) {
        Element e = elements.get(i);
        SizeValue childWidth = e.getConstraintWidth();
        if (childWidth != null && childWidth.isPixel()) {
          layoutPartChild.add(e.layoutPart);
        }
      }

      // if all (!) child elements have a pixel fixed width we can calculate a new width constraint for this element!
      if (elements.size() == layoutPartChild.size()) {
        SizeValue newWidth = layoutManager.calculateConstraintWidth(this.layoutPart, layoutPartChild);
        if (newWidth != null) {
          setConstraintWidth(newWidth);
          isCalcWidthConstraint = true;
        }
      }
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.