Examples of IArrayIterator


Examples of org.cdma.interfaces.IArrayIterator

                        stringBuilder.append(array.getObject(array.getIndex()));
                    }
                    else {
                        // long size = array.getSize();
                        // System.out.println("array size =" + size);
                        IArrayIterator arrayIterator = array.getIterator();
                        while (arrayIterator.hasNext()) {
                            Object object = arrayIterator.next();
                            stringBuilder.append(object);
                        }
                    }
                    displayScalarInformation(stringBuilder.toString());
                }
View Full Code Here

Examples of org.gumtree.data.interfaces.IArrayIterator

                // Index index = data.getIndex();
                // index.set(0);
                // String value = getNodeName(gtn) + " = " +
                // data.getObject(index);

                IArrayIterator iterator = data.getIterator();
                String value = getNodeName(gtn) + " = "
                + iterator.getObjectNext();

                textLabel.setData(value);
              }
              catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
              }
              viewer = (JComponent) textLabel.getComponent();
              break;

            case SPECTRUM:
              icon = ICONS.getIcon("NodeSpectrum");

              ChartViewer chart = new ChartViewer();
              chart.switchDAOFactory(DummyDAOFactory.class.getName());
              try {
                IArray data = di.getData();

                if (data.getElementType().equals(double.class)
                    || data.getElementType().equals(float.class)) {

                  List<DataArray> values = new ArrayList<DataArray>(1);
                  DataArray array = new DataArray();
                  values.add(array);

                  IArrayIterator iterator = data.getIterator();
                  for (int i = 0; iterator.hasNext(); i++) {
                    array.add(i, iterator.getDoubleNext());
                  }
                  array.setId(di.getShortName());

                  chart.setData(values);
                  // TODO remove when default = false in comete
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.