Examples of indexOf()


Examples of com.tulskiy.musique.playlist.Playlist.indexOf()

                        playlist.setGroupBy(ret.toString());
                        config.setString("playlists.groupBy", ret.toString());
                    }
                }

                int firstVisibleIndex = playlist.indexOf(firstVisibleTrack);
                if (firstVisibleIndex != -1) {
                    Rectangle cellRect = table.getCellRect(firstVisibleIndex, 0, true);
                    Rectangle visibleRect = table.getVisibleRect();
                    cellRect.setSize(visibleRect.width, visibleRect.height);
                    table.scrollRectToVisible(cellRect);
View Full Code Here

Examples of com.uic.ase.proj.xbn.string.SOBStringBuffer.indexOf()

          //If acs_acceptPre is non-null
          boolean bAccept = false;
          if(acs_acceptPre.size() == 0)  {
            bAccept = true;
          else  {
            String sPkgPre = sFQImportPkg.substring(0, ssbLine.indexOf(sPD));
            sPkgPre = sPkgPre.trim();
            bAccept = acs_acceptPre.doesExist(sPkgPre);
          }

          if(bAccept)  {
View Full Code Here

Examples of com.vividsolutions.jts.linearref.LengthIndexedLine.indexOf()

                    featureIterator.close();
            }
            if (nearestFeature != null) {
                LengthIndexedLine lengthIndexedLine = new LengthIndexedLine(
                        (Geometry) nearestFeature.getDefaultGeometryProperty().getValue());
                double lineIndex = lengthIndexedLine.indexOf(nearestCoords[1]);
                double lineLength = ((Geometry) nearestFeature.getDefaultGeometryProperty()
                        .getValue()).getLength();
                Double featureFromMeasure = (Double) nearestFeature.getProperty(fromMeasureAttb)
                        .getValue();
                Double featureToMeasure = (Double) nearestFeature.getProperty(toMeasureAttb)
View Full Code Here

Examples of com.vividsolutions.jts.linearref.LocationIndexedLine.indexOf()

     * Splits the input geometry into two LineStrings at the given point.
     */
    public static P2<LineString> splitGeometryAtPoint(Geometry geometry, Coordinate nearestPoint) {
        // An index in JTS can actually refer to any point along the line. It is NOT an array index.
        LocationIndexedLine line = new LocationIndexedLine(geometry);
        LinearLocation l = line.indexOf(nearestPoint);

        LineString beginning = (LineString) line.extractLine(line.getStartIndex(), l);
        LineString ending = (LineString) line.extractLine(l, line.getEndIndex());

        return new P2<LineString>(beginning, ending);
View Full Code Here

Examples of de.sciss.gui.MenuGroup.indexOf()

    mg  = (MenuGroup) get( "file" );
    smg = new MenuGroup( "new", getResourceString( "menuNew" ));
    smg.add( new MenuItem( "empty", actionNewEmpty ));
    smg.add( new MenuItem( "fromSelection", getResourceString( "menuNewFromSelection" )));
    mg.add( smg, 0 );
    i  = mg.indexOf( "open" );
    mg.add( new MenuItem( "openMultipleMono", actionOpenMM ), i + 1 );
    i  = mg.indexOf( "closeAll" );
    mg.add( new MenuSeparator(), i + 3 );
    i = mg.indexOf( "saveCopyAs" );
    mg.add( new MenuItem( "saveSelectionAs", getResourceString( "menuSaveSelectionAs" )), i + 1 );
View Full Code Here

Examples of edu.stanford.nlp.trees.Tree.indexOf()

    AuxiliaryTree ft = adjunctionTree.copy(this);
    ft.foot.setChildren(targetNode.getChildrenAsList());
    if (parent==null) {
      return ft.tree;
    } else {
      int i = parent.indexOf(targetNode);
      parent.setChild(i,ft.tree);
      return t;
    }
  }
View Full Code Here

Examples of edu.umd.cloud9.util.array.ArrayListOfDoubles.indexOf()

    ArrayListOfDoubles list = new ArrayListOfDoubles();
    for ( int i=0; i<10; i++) {
      list.add((double) i);
    }

    list.remove(list.indexOf(5.0));
    assertEquals(9, list.size());
    assertEquals(0.0, list.get(0), 10e-6);
    assertEquals(1.0, list.get(1), 10e-6);
    assertEquals(2.0, list.get(2), 10e-6);
    assertEquals(3.0, list.get(3), 10e-6);
View Full Code Here

Examples of edu.umd.cloud9.util.array.ArrayListOfFloats.indexOf()

    ArrayListOfFloats list = new ArrayListOfFloats();
    for ( int i=0; i<10; i++) {
      list.add((float) i);
    }

    list.remove(list.indexOf(5.0f));
    assertEquals(9, list.size());
    assertEquals(0.0f, list.get(0), 10e-6);
    assertEquals(1.0f, list.get(1), 10e-6);
    assertEquals(2.0f, list.get(2), 10e-6);
    assertEquals(3.0f, list.get(3), 10e-6);
View Full Code Here

Examples of edu.umd.cloud9.util.array.ArrayListOfShorts.indexOf()

    ArrayListOfShorts list = new ArrayListOfShorts();
    for ( int i=0; i<10; i++) {
      list.add((short) i);
    }

    list.remove(list.indexOf((short) 5));
    assertEquals(9, list.size());
    assertEquals(0, list.get(0));
    assertEquals(1, list.get(1));
    assertEquals(2, list.get(2));
    assertEquals(3, list.get(3));
View Full Code Here

Examples of elemental.util.ArrayOfBoolean.indexOf()

    assertEquals(newItems.length, array.length());

    // Now join them together in harmony.
    assertEquals("false$true$false", array.join("$"));

    assertEquals(0, array.indexOf(false));
    assertTrue(array.contains(false));
    assertEquals(1, array.indexOf(true));
    assertTrue(array.contains(true));

    final ArrayOfBoolean allTrue = Collections.arrayOfBoolean();
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.