Examples of FloatList


Examples of org.apache.uima.jcas.cas.FloatList

    return asList(data.toArray(new Integer[data.size()]));
  }

  public static Collection<Float> create(FloatList aList) {
    List<Float> data = new ArrayList<Float>();
    FloatList i = aList;
    while (i instanceof NonEmptyFloatList) {
      NonEmptyFloatList l = (NonEmptyFloatList) i;
      data.add(l.getHead());
      i = l.getTail();
    }
View Full Code Here

Examples of org.gephi.data.attributes.type.FloatList

            return new LongList((long[]) array);
        else if (componentType == Long.class)
            return new LongList((Long[]) array);

        else if (componentType == float.class)
            return new FloatList((float[]) array);
        else if (componentType == Float.class)
            return new FloatList((Float[]) array);

        else if (componentType == double.class)
            return new DoubleList((double[]) array);
        else if (componentType == Double.class)
            return new DoubleList((Double[]) array);
View Full Code Here

Examples of org.gephi.data.attributes.type.FloatList

            return new LongList((long[]) array);
        else if (componentType == Long.class)
            return new LongList((Long[]) array);

        else if (componentType == float.class)
            return new FloatList((float[]) array);
        else if (componentType == Float.class)
            return new FloatList((Float[]) array);

        else if (componentType == double.class)
            return new DoubleList((double[]) array);
        else if (componentType == Double.class)
            return new DoubleList((Double[]) array);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.FloatList

    if (dataArea.isEmpty() == false)
    {
      a.intersect(new Area(dataArea));
    }
    final PathIterator pathIterator = a.getPathIterator(null, 2);
    final FloatList floats = new FloatList(100);
    final float[] coords = new float[6];
    while (pathIterator.isDone() == false)
    {
      final int retval = pathIterator.currentSegment(coords);
      if (retval == PathIterator.SEG_MOVETO ||
          retval == PathIterator.SEG_LINETO)
      {
        floats.add(coords[0]);
        floats.add(coords[1]);
      }
      pathIterator.next();
    }

    if (floats.size() == 0)
    {
      return null;
    }
    return (new PolygonImageMapEntry(floats.toArray()));
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.FloatList

    if (dataArea.isEmpty() == false)
    {
      a.intersect(new Area(dataArea));
    }
    final PathIterator pathIterator = a.getPathIterator(null, 2);
    final FloatList floats = new FloatList(100);
    final float[] coords = new float[6];
    while (pathIterator.isDone() == false)
    {
      final int retval = pathIterator.currentSegment(coords);
      if (retval == PathIterator.SEG_MOVETO ||
          retval == PathIterator.SEG_LINETO)
      {
        floats.add(coords[0]);
        floats.add(coords[1]);
      }
      pathIterator.next();
    }

    if (floats.size() == 0)
    {
      return null;
    }
    return (new PolygonImageMapEntry(floats.toArray()));
  }
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.