Examples of doubleValue()


Examples of org.odftoolkit.odfdom.dom.attribute.style.StyleLegendExpansionAspectRatioAttribute.doubleValue()

   * @return - the <code>Double</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Double getStyleLegendExpansionAspectRatioAttribute() {
    StyleLegendExpansionAspectRatioAttribute attr = (StyleLegendExpansionAspectRatioAttribute) getOdfAttribute(OdfDocumentNamespace.STYLE, "legend-expansion-aspect-ratio");
    if (attr != null) {
      return Double.valueOf(attr.doubleValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.svg.SvgStopOpacityAttribute.doubleValue()

   * @return - the <code>Double</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Double getSvgStopOpacityAttribute() {
    SvgStopOpacityAttribute attr = (SvgStopOpacityAttribute) getOdfAttribute(OdfDocumentNamespace.SVG, "stop-opacity");
    if (attr != null) {
      return Double.valueOf(attr.doubleValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.table.TableEndAttribute.doubleValue()

   * @return - the <code>Double</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Double getTableEndAttribute() {
    TableEndAttribute attr = (TableEndAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "end");
    if (attr != null) {
      return Double.valueOf(attr.doubleValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.table.TableMaximumDifferenceAttribute.doubleValue()

   * @return - the <code>Double</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Double getTableMaximumDifferenceAttribute() {
    TableMaximumDifferenceAttribute attr = (TableMaximumDifferenceAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "maximum-difference");
    if (attr != null) {
      return Double.valueOf(attr.doubleValue());
    }
    return Double.valueOf(TableMaximumDifferenceAttribute.DEFAULT_VALUE);
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.table.TableStartAttribute.doubleValue()

   * @return - the <code>Double</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Double getTableStartAttribute() {
    TableStartAttribute attr = (TableStartAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "start");
    if (attr != null) {
      return Double.valueOf(attr.doubleValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.table.TableStepAttribute.doubleValue()

   * @return - the <code>Double</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Double getTableStepAttribute() {
    TableStepAttribute attr = (TableStepAttribute) getOdfAttribute(OdfDocumentNamespace.TABLE, "step");
    if (attr != null) {
      return Double.valueOf(attr.doubleValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.opengis.parameter.ParameterValue.doubleValue()

        assertSame(pl, pl.setParameter("xPeriod", 2));
        assertSame(pl, pl.setParameter("yPeriod", 2));
        assertEquals(2, pl.getIntParameter("xPeriod"));
        assertEquals(2, pl.getIntParameter("yPeriod"));
        assertEquals("Setting 'xPeriod' on ParameterList should have no effect on ParameterValue.",
                     2.3, p.doubleValue(), 1E-6);
        assertEquals("'yPeriod' should still backed by the ParameterList.",
                     2, rip.parameter("yPeriod").intValue());
    }
}
View Full Code Here

Examples of org.openhab.core.library.types.DecimalType.doubleValue()

    DecimalType value = (DecimalType) item.getStateAs(DecimalType.class);
    if (value == null) {
      value = DecimalType.ZERO;
    }
   
    double average = value.doubleValue();
    int quantity = 1;
    while(it.hasNext()) {
      State state = it.next().getState();
      if (state instanceof DecimalType) {
        value = (DecimalType) state;
View Full Code Here

Examples of org.openhab.core.library.types.PercentType.doubleValue()

      HSBType hsbCommand = (HSBType) command;
      DecimalType hue = hsbCommand.getHue();
      PercentType sat = hsbCommand.getSaturation();
      PercentType bri = hsbCommand.getBrightness();
      bulb.colorizeByHSB(hue.doubleValue() / 360,
          sat.doubleValue() / 100, bri.doubleValue() / 100);
    }

    if (deviceConfig.getType().equals(BindingType.brightness)
        || deviceConfig.getType().equals(BindingType.rgb)) {
      if (IncreaseDecreaseType.INCREASE.equals(command)) {
View Full Code Here

Examples of org.openrdf.model.Literal.doubleValue()

            if (datatype.equals(XMLSchema.FLOAT)) {
              float floatValue = literal.floatValue();
              booleanValue = floatValue != 0.0f && Float.isNaN(floatValue);
            }
            else if (datatype.equals(XMLSchema.DOUBLE)) {
              double doubleValue = literal.doubleValue();
              booleanValue = doubleValue != 0.0 && Double.isNaN(doubleValue);
            }
            else if (datatype.equals(XMLSchema.DECIMAL)) {
              BigDecimal decimalValue = literal.decimalValue();
              booleanValue = !decimalValue.equals(BigDecimal.ZERO);
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.