Examples of capture()


Examples of com.github.axet.starjeweled.core.Capture.capture()

public class ManualCalibrate {

    public static void main(String[] args) {
      Capture capture = new Capture();
        BufferedImage desktopImage;
        desktopImage = capture.capture();
        capture.write(desktopImage, "calibrate.png");
    }
   
}
View Full Code Here

Examples of com.tommytony.war.structure.Monument.capture()

    if (team != null && block != null && zone != null
        && zone.isMonumentCenterBlock(block)
        && team.getKind().isTeamBlock(block.getState())) {
      Monument monument = zone.getMonumentFromCenterBlock(block);
      if (monument != null && !monument.hasOwner()) {
        monument.capture(team);
        if (War.war.isSpoutServer()) {
          for (Player p : team.getPlayers()) {
            SpoutPlayer sp = SpoutManager.getPlayer(p);
            if (sp.isSpoutCraftEnabled()) {
                      sp.sendNotification(
View Full Code Here

Examples of cz.matfyz.aai.fantom.game.Actor.capture()

        new ActorMove(fantomas, n3, null),
        new ActorMove(poirot, null, bus),
        new ActorMove(batman, n4, tram),
    };
   
    joker.capture();
   
    MessageUpdate msg = new MessageUpdate(g, moves, null);
    Properties[] msgData = msg.serialize();
   
    assertNotNull(msgData);
View Full Code Here

Examples of de.justi.yagw2api.wrapper.IWVWObjective.capture()

          LOGGER.trace("Going to synchronize model=" + objectiveModel + " with dto=" + objectiveDTO);
        }

        // 1.1 synchronize owner
        potentialNewOwner = match.getWorldByDTOOwnerString(objectiveDTO.getOwner());
        objectiveModel.capture(potentialNewOwner.orNull());
        // 1.2 synchronize claiming guild
        claimedByGuildDTO = objectiveDTO.getGuildDetails();
        if (claimedByGuildDTO.isPresent()) {
          final IGuild guild = MODEL_FACTORY.getOrCreateGuild(claimedByGuildDTO.get().getId(), claimedByGuildDTO.get().getName(), claimedByGuildDTO.get().getTag());
          objectiveModel.claim(guild);
View Full Code Here

Examples of oi.thekraken.grok.api.Grok.capture()

    List<String> json = grok.captures(logs);
    assertNotNull(json);
    int i = 0;
    for(String elem : json){
      assertNotNull(elem);
      assertEquals(elem, grok.capture(logs.get(i)));
      i++;
      //assert
    }
   
  }
View Full Code Here

Examples of org.apache.hadoop.test.Console.capture()

    GatewayDescriptor descriptor = GatewayDescriptorFactory.create()
        .addResource().addFilter().param().up().up().up();

    Console console = new Console();
    try {
      console.capture();
      GatewayDescriptorFactory.store( descriptor, "xml", new BrokenWriter() );
      fail( "Expected IOException" );
    } catch( IOException e ) {
      assertThat( e.getMessage(), containsString( "BROKEN" ) );
    } finally {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding.capture()

              originalTypeNames,
              missingElements,
              missingElementsStarts,
              missingElementsEnds)) {
            requestor.accept(
                guessedType.capture(scope, typeRef.sourceEnd),
                missingElements,
                missingElementsStarts,
                missingElementsEnds,
                this.problemFactory.hasAllowedProblems);
          }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding.capture()

      && compilerOptions.complianceLevel >= ClassFileConstants.JDK1_5
      && CharOperation.equals(this.binding.selector, TypeConstants.CLONE)) {
    this.resolvedType = this.actualReceiverType;
  } else {
    TypeBinding returnType = this.binding.returnType;
    if (returnType != null) returnType = returnType.capture(scope, this.sourceEnd);
    this.resolvedType = returnType;
  }
  if (this.receiver.isSuper() && compilerOptions.getSeverity(CompilerOptions.OverridingMethodWithoutSuperInvocation) != ProblemSeverities.Ignore) {
    final ReferenceContext referenceContext = scope.methodScope().referenceContext;
    if (referenceContext instanceof AbstractMethodDeclaration) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding.capture()

  int index = this.indexOfFirstFieldBinding;
  if (index == length) { //  restrictiveFlag == FIELD
    this.constant = ((FieldBinding) this.binding).constant();
    // perform capture conversion if read access
    return (type != null && (this.bits & ASTNode.IsStrictlyAssigned) == 0)
        ? type.capture(scope, this.sourceEnd)
        : type;
  }
  // allocation of the fieldBindings array  and its respective constants
  int otherBindingsLength = length - index;
  this.otherCodegenBindings = this.otherBindings = new FieldBinding[otherBindingsLength];
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding.capture()

    if (type == null)
      return null; // could not resolve type prior to this point

    this.bits &= ~ASTNode.DepthMASK; // flush previous depth if any   
    FieldBinding previousField = field;
    field = scope.getField(type.capture(scope, (int)this.sourcePositions[index]), token, this);
    int place = index - this.indexOfFirstFieldBinding;
    this.otherBindings[place] = field;
    this.otherDepths[place] = (this.bits & ASTNode.DepthMASK) >> ASTNode.DepthSHIFT;
    if (field.isValidBinding()) {
      // set generic cast of for previous field (if any)
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.