Examples of Depth


Examples of gnu.x11.Depth

  for (int i = 0; i< display.screens.length; i++) {
      Screen screen = display.screens[i];
      gnu.x11.Enum scrdepths = screen.depths();
      while (scrdepths.more()) {
          Depth depth = (Depth) scrdepths.next();
          screenDepth.put(depth.depth(), depth);
   
    gnu.x11.Enum enm = depth.visuals();       
    while (enm.more()) {
        Visual visual = (Visual) enm.next();             
        screenVisual.put(visual.id(), visual);
    }
      }
View Full Code Here

Examples of org.apache.hadoop.fs.shell.find.Depth

public class TestDepth extends TestExpression {
  @Test
  public void initialise() throws IOException{
    FindOptions options = new FindOptions();
    Depth depth = new Depth();
   
    assertFalse(options.isDepth());
    depth.initialise(options);
    assertTrue(options.isDepth());
  }
View Full Code Here

Examples of org.apache.hadoop.fs.shell.find.Depth

    assertTrue(options.isDepth());
  }

  @Test
  public void apply() throws IOException{
    Depth depth = new Depth();
    depth.initialise(new FindOptions());
    assertEquals(Result.PASS, depth.apply(new PathData("anything", new Configuration())));
  }
View Full Code Here

Examples of org.geotools.geometry.iso.topograph2D.Depth

      // if so, must flip the label before merging it
      if (!existingEdge.isPointwiseEqual(e)) {
        labelToMerge = new Label(e.getLabel());
        labelToMerge.flip();
      }
      Depth depth = existingEdge.getDepth();
      // if this is the first duplicate found for this edge, initialize
      // the depths
      // /*
      if (depth.isNull()) {
        depth.add(existingLabel);
      }
      // */
      depth.add(labelToMerge);
      existingLabel.merge(labelToMerge);
      // Debug.print("inserted edge: "); Debug.println(e);
      // Debug.print("existing edge: "); Debug.println(existingEdge);

    } else { // no matching existing edge was found
View Full Code Here

Examples of org.geotools.geometry.iso.topograph2D.Depth

   */
  private void computeLabelsFromDepths() {
    for (Iterator it = edgeList.iterator(); it.hasNext();) {
      Edge e = (Edge) it.next();
      Label lbl = e.getLabel();
      Depth depth = e.getDepth();
      /**
       * Only check edges for which there were duplicates, since these are
       * the only ones which might be the result of dimensional collapses.
       */
      if (!depth.isNull()) {
        depth.normalize();
        for (int i = 0; i < 2; i++) {
          if (!lbl.isNull(i) && lbl.isArea() && !depth.isNull(i)) {
            /**
             * if the depths are equal, this edge is the result of
             * the dimensional collapse of two or more edges. It has
             * the same location on both sides of the edge, so it
             * has collapsed to a line.
             */
            if (depth.getDelta(i) == 0) {
              lbl.toLine(i);
            } else {
              /**
               * This edge may be the result of a dimensional
               * collapse, but it still has different locations on
               * both sides. The label of the edge must be updated
               * to reflect the resultant side locations indicated
               * by the depth values.
               */
              Assert
                  .isTrue(!depth.isNull(i, Position.LEFT),
                      "depth of LEFT side has not been initialized");
              lbl.setLocation(i, Position.LEFT, depth
                  .getLocation(i, Position.LEFT));
              Assert
                  .isTrue(!depth.isNull(i, Position.RIGHT),
                      "depth of RIGHT side has not been initialized");
              lbl.setLocation(i, Position.RIGHT, depth
                  .getLocation(i, Position.RIGHT));
            }
          }
        }
      }
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.