Examples of XFloat


Examples of org.eclipse.xtext.xdoc.generator.util.XFloat

  }
 
  public CharSequence genColumns(final List<TableData> tabData) {
    CharSequence _xblockexpression = null;
    {
      XFloat _xFloat = new XFloat(1);
      int _size = tabData.size();
      XFloat _xFloat_1 = new XFloat(_size);
      final XFloat colFract = _xFloat.operator_divide(_xFloat_1);
      StringConcatenation _builder = new StringConcatenation();
      {
        boolean _isEmpty = tabData.isEmpty();
        boolean _not = (!_isEmpty);
        if (_not) {
View Full Code Here

Examples of org.eclipse.xtext.xdoc.generator.util.XFloat

        final ImageReader ir = imageReaders.next();
        ir.setInput(img);
        final IIOMetadata imageMetadata = ir.getImageMetadata(0);
        final Node n = imageMetadata.getAsTree("javax_imageio_1.0");
        float _parseFloat = Float.parseFloat("2.835");
        XFloat ppmm = new XFloat(Float.valueOf(_parseFloat));
        Node cn = n.getFirstChild();
        while ((!Objects.equal(cn, null))) {
          {
            String _nodeName = cn.getNodeName();
            boolean _equals = Objects.equal(_nodeName, "Dimension");
            if (_equals) {
              Node ccn = cn.getFirstChild();
              while ((!Objects.equal(ccn, null))) {
                {
                  String _nodeName_1 = ccn.getNodeName();
                  boolean _equals_1 = _nodeName_1.equals("HorizontalPixelSize");
                  if (_equals_1) {
                    NamedNodeMap _attributes = ccn.getAttributes();
                    Node _item = _attributes.item(0);
                    String _nodeValue = _item.getNodeValue();
                    float _parseFloat_1 = Float.parseFloat(_nodeValue);
                    XFloat _xFloat = new XFloat(Float.valueOf(_parseFloat_1));
                    XFloat _divide = XFloatExtensions.operator_divide(Integer.valueOf(1), _xFloat);
                    ppmm = _divide;
                  }
                  Node _nextSibling = ccn.getNextSibling();
                  ccn = _nextSibling;
                }
              }
            }
            Node _nextSibling = cn.getNextSibling();
            cn = _nextSibling;
          }
        }
        String _xifexpression = null;
        int _width = ir.getWidth(0);
        XFloat _divide = XFloatExtensions.operator_divide(Integer.valueOf(_width), ppmm);
        Boolean _greaterThan = XFloatExtensions.operator_greaterThan(_divide, Integer.valueOf(140));
        if ((_greaterThan).booleanValue()) {
          _xifexpression = "width=\\textwidth";
        } else {
          _xifexpression = "";
View Full Code Here

Examples of org.eclipse.xtext.xdoc.generator.util.XFloat

import org.eclipse.xtext.xdoc.generator.util.XFloat;

public class XFloatExtensions {

  public static XFloat operator_divide(Integer a, XFloat b) {
    return new XFloat(a / b.toFloat());
  }
View Full Code Here

Examples of xbird.xquery.dm.value.literal.XFloat

     * @see AtomicValue#castAs(AtomicType, DynamicContext)
     */
    public AtomicValue createInstance(String literal, AtomicType srcType, DynamicContext dynEnv)
            throws XQueryException {
        try {
            return new XFloat(literal);
        } catch (NumberFormatException e) {
            throw new DynamicError("err:FORG0001", e);
        }
    }
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.