Examples of addRegion()


Examples of com.badlogic.gdx.graphics.g2d.TextureAtlas.addRegion()

       
        Keys<String> names = page.rects.keys();
        for(String name: names) {
          Rectangle rect = page.rects.get(name);
          TextureRegion region = new TextureRegion(texture, (int)rect.x, (int)rect.y, (int)rect.width, (int)rect.height);
          atlas.addRegion(name, region);
        }
      }
    }
    return atlas;
  }
View Full Code Here

Examples of detect.api.models.Image.addRegion()

          NodeList nlList= eElement.getElementsByTagName("region");

          for (int i = 0; i < nlList.getLength(); i++) {
            Node oneRegion = nlList.item(i);
              NamedNodeMap attr = oneRegion.getAttributes();
              img.addRegion(parseRegion(attr));
          }
         }
      }
      return img;
  }
View Full Code Here

Examples of org.apache.cloudstack.region.RegionService.addRegion()

        RegionService regionService = Mockito.mock(RegionService.class);

        Region region = Mockito.mock(Region.class);
        Mockito.when(
            regionService.addRegion(Mockito.anyInt(), Mockito.anyString(), Mockito.anyString()))
            .thenReturn(region);

        addRegionCmd._regionService = regionService;
        responseGenerator = Mockito.mock(ResponseGenerator.class);
       
View Full Code Here

Examples of org.apache.cloudstack.region.RegionService.addRegion()

        RegionService regionService = Mockito.mock(RegionService.class);

        Region region = Mockito.mock(Region.class);
        Mockito.when(
            regionService.addRegion(Mockito.anyInt(), Mockito.anyString(), Mockito.anyString()))
            .thenReturn(null);

        addRegionCmd._regionService = regionService;

        try {
View Full Code Here

Examples of org.apache.cloudstack.region.RegionService.addRegion()

    public void testCreateSuccess() {

        RegionService regionService = Mockito.mock(RegionService.class);

        Region region = Mockito.mock(Region.class);
        Mockito.when(regionService.addRegion(Matchers.anyInt(), Matchers.anyString(), Matchers.anyString())).thenReturn(region);

        addRegionCmd._regionService = regionService;
        responseGenerator = Mockito.mock(ResponseGenerator.class);

        RegionResponse regionResponse = Mockito.mock(RegionResponse.class);
View Full Code Here

Examples of org.apache.cloudstack.region.RegionService.addRegion()

    public void testCreateFailure() {

        RegionService regionService = Mockito.mock(RegionService.class);

        Region region = Mockito.mock(Region.class);
        Mockito.when(regionService.addRegion(Matchers.anyInt(), Matchers.anyString(), Matchers.anyString())).thenReturn(null);

        addRegionCmd._regionService = regionService;

        try {
            addRegionCmd.execute();
View Full Code Here

Examples of org.apache.hadoop.hbase.snapshot.SnapshotManifest.addRegion()

    Path rootDir = FSUtils.getRootDir(conf);
    Path snapshotDir = SnapshotDescriptionUtils.getWorkingSnapshotDir(desc, rootDir);

    SnapshotManifest manifest = SnapshotManifest.create(conf, getFilesystem(),
                                                        snapshotDir, desc, exnSnare);
    manifest.addRegion(this);
  }

  /**
   * Replaces any KV timestamps set to {@link HConstants#LATEST_TIMESTAMP} with the
   * provided current timestamp.
View Full Code Here

Examples of org.apache.hadoop.hbase.snapshot.SnapshotManifest.addRegion()

    Path rootDir = FSUtils.getRootDir(conf);
    Path snapshotDir = SnapshotDescriptionUtils.getWorkingSnapshotDir(desc, rootDir);

    SnapshotManifest manifest = SnapshotManifest.create(conf, getFilesystem(),
                                                        snapshotDir, desc, exnSnare);
    manifest.addRegion(this);
  }

  /**
   * Replaces any KV timestamps set to {@link HConstants#LATEST_TIMESTAMP} with the
   * provided current timestamp.
View Full Code Here

Examples of org.apache.hadoop.hbase.snapshot.SnapshotManifest.addRegion()

    Path rootDir = FSUtils.getRootDir(conf);
    Path snapshotDir = SnapshotDescriptionUtils.getWorkingSnapshotDir(desc, rootDir);

    SnapshotManifest manifest = SnapshotManifest.create(conf, getFilesystem(),
                                                        snapshotDir, desc, exnSnare);
    manifest.addRegion(this);
  }

  /**
   * Replaces any KV timestamps set to {@link HConstants#LATEST_TIMESTAMP} with the
   * provided current timestamp.
View Full Code Here

Examples of org.apache.pdfbox.util.PDFTextStripperByArea.addRegion()

                            {
                                //do nothing
                            }

                            Rectangle2D.Float awtRect = new Rectangle2D.Float( x,y,width,height );
                            stripper.addRegion( "" + j, awtRect );
                        }
                    }

                    stripper.extractRegions( page );
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.