Examples of Quantity


Examples of org.apache.isis.applib.value.Quantity

    public void setMask(String mask) {
        format = new DecimalFormat(mask);
    }

    public void setValue(Integer value) {
        quantity = new Quantity(value);
    }
View Full Code Here

Examples of org.librebiz.pureport.quantity.Quantity

            }
        }
    }

    private Quantity zero() {
        return new Quantity(0, defaultUnits);
    }
View Full Code Here

Examples of org.librebiz.pureport.quantity.Quantity

                if (token.equals("italic")) {
                    at.setAttribute(TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE);
                }
            }
        }
        Quantity q = toQuantity(attrs.getValue("font-size"));
        if (q != null) {
            float size = (float)q.getValue(Unit.PT);
            at.setAttribute(TextAttribute.SIZE, new Float(size));
        }
        Color col = toColor(attrs.getValue("foreground"));
        if (col != null) {
            at.setAttribute(TextAttribute.FOREGROUND, col);
View Full Code Here

Examples of org.librebiz.pureport.quantity.Quantity

        }
    }

    private void startPageLayout(Attributes attrs) {
        PageLayout layout = new PageLayout();
        layout.setPaperWidth(toQuantity(attrs.getValue("paper-width"), new Quantity(21, Unit.CM)));
        layout.setPaperHeight(toQuantity(attrs.getValue("paper-height"), new Quantity(29.7, Unit.CM)));
        layout.setTopMargin(toQuantity(attrs.getValue("top-margin")));
        layout.setBottomMargin(toQuantity(attrs.getValue("bottom-margin")));
        layout.setLeftMargin(toQuantity(attrs.getValue("left-margin")));
        layout.setRightMargin(toQuantity(attrs.getValue("right-margin")));
        String orientation = attrs.getValue("orientation");
View Full Code Here

Examples of org.sbml.jsbml.Quantity

   * @see org.sbml.jsbml.util.compilers.ASTNodeCompiler#compile(org.sbml.jsbml.CallableSBase)
   */
  public ASTNodeValue compile(CallableSBase variable) {
    ASTNodeValue value = new ASTNodeValue(variable, this);
    if (variable instanceof Quantity) {
      Quantity q = (Quantity) variable;
      if (q.isSetValue()) {
        value.setValue(Double.valueOf(q.getValue()));
      }
    }
    value.setUnits(variable.getDerivedUnitDefinition());
    return value;
  }
View Full Code Here

Examples of org.sbml.jsbml.Quantity

   * CallableSBase)
   */
  public ASTNodeValue compile(CallableSBase variable) {
    ASTNodeValue value = new ASTNodeValue(variable, this);
    if (variable instanceof Quantity) {
      Quantity q = (Quantity) variable;
      if (q.isSetValue()) {
        value.setValue(Double.valueOf(q.getValue()));
      }
    }
    value.setUnits(variable.getDerivedUnitDefinition());
    return value;
  }
View Full Code Here

Examples of org.sbml.jsbml.Quantity

   * CallableSBase)
   */
  public ASTNodeValue compile(CallableSBase variable) {
    ASTNodeValue value = new ASTNodeValue(variable, this);
    if (variable instanceof Quantity) {
      Quantity q = (Quantity) variable;
      if (q.isSetValue()) {
        value.setValue(Double.valueOf(q.getValue()));
      }
    }
    value.setUnits(variable.getDerivedUnitDefinition());
    return 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.