Examples of restore()


Examples of com.google.gwt.canvas.dom.client.Context2d.restore()

    Context2d context = surface.getContext();
    context.save();
    context.translate(x + width / 2, y + height / 2);
    context.scale(width / 2, height / 2);
    context.arc(0, 0, 1, 0, MathHelper.TWO_PI, true);
    context.restore();
  }
}
View Full Code Here

Examples of com.intellij.openapi.ui.GraphicsConfig.restore()

                g.drawRect(1, 1, width - 3, height - 3);
                g.setColor(UIUtil.getPanelBackground());
                g.drawRect(0, 0, width-1, height-1);
            }
            g.translate(-x, -y);
            config.restore();

        }

        private Color getBorderColor(boolean enabled) {
            if (UIUtil.isUnderDarcula()) {
View Full Code Here

Examples of com.intellij.openapi.wm.impl.content.GraphicsConfig.restore()

        final int down = getHeight() - insets.top - insets.bottom - 1;
        g.drawLine(leftX, rightY, leftX, down);
        g.drawLine(rightX, rightY, rightX, down);
        g.drawLine(leftX, down, rightX, down);

        c.restore();
      }
    };

    myComponent.setOpaque(false);
View Full Code Here

Examples of com.jeecms.core.entity.Ftp.restore()

          File file = ftp.retrieve(imgSrcPath);
          imageScale.resizeFix(file, file, reMinWidth, reMinHeight,
              getLen(imgTop, imgScale),
              getLen(imgLeft, imgScale), getLen(imgWidth,
                  imgScale), getLen(imgHeight, imgScale));
          ftp.restore(imgSrcPath, file);
        } else {
          String ctx = request.getContextPath();
          imgSrcPath = imgSrcPath.substring(ctx.length());
          File file = fileRepository.retrieve(imgSrcPath);
          imageScale.resizeFix(file, file, reMinWidth, reMinHeight,
View Full Code Here

Examples of com.netflix.priam.backup.Restore.restore()

            endTime = path.parseDate(args[1]);

            Restore restorer = Application.getInjector().getInstance(Restore.class);
            try
            {
                restorer.restore(startTime, endTime);
            } catch (Exception e)
            {
                logger.error("Unable to restore: ", e);
            }
        } finally
View Full Code Here

Examples of com.netflix.priam.identity.DoubleRing.restore()

        int intialSize = factory.getAllIds(config.getAppName()).size();
        DoubleRing ring = new DoubleRing(config, factory, tokenManager);
        ring.backup();
        ring.doubleSlots();
        assertEquals(intialSize * 2, factory.getAllIds(config.getAppName()).size());
        ring.restore();
        assertEquals(intialSize, factory.getAllIds(config.getAppName()).size());
    }
}
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.restore()

      new File(dbPath).mkdirs();
      final ODatabaseDocumentTx db = new ODatabaseDocumentTx("plocal:" + dbPath);

      final FileInputStream in = new FileInputStream(f);
      try {
        db.restore(in, null, null, this);
      } finally {
        in.close();
      }

      db.close();
View Full Code Here

Examples of com.sk89q.worldedit.world.snapshot.SnapshotRestore.restore()

        try {
            // Restore snapshot
            SnapshotRestore restore = new SnapshotRestore(chunkStore, editSession, region);
            //player.print(restore.getChunksAffected() + " chunk(s) will be loaded.");

            restore.restore();

            if (restore.hadTotalFailure()) {
                String error = restore.getLastErrorMessage();
                if (error != null) {
                    player.printError("Errors prevented any blocks from being restored.");
View Full Code Here

Examples of com.sun.enterprise.backup.RestoreManager.restore()

    @Override
    protected int executeCommand()
            throws CommandException {
        try {           
            RestoreManager mgr = new RestoreManager(request);
            logger.info(mgr.restore());
        } catch (BackupWarningException bwe) {
            logger.info(bwe.getMessage());
        } catch (BackupException be) {
            throw new CommandException(be);
        }
View Full Code Here

Examples of com.sun.enterprise.config.backup.BackupManager.restore()

        CLILogger.getInstance().printMessage(mgr.backup());
      }
      else if(command == CmdType.RESTORE)
      {
        RestoreManager mgr = new RestoreManager(request);
        CLILogger.getInstance().printMessage(mgr.restore());
      }
      else if(command == CmdType.LIST)
      {
        ListManager mgr = new ListManager(request);
        CLILogger.getInstance().printMessage(mgr.list());
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.