Examples of InputHandler


Examples of com.jme.input.InputHandler

        // we want to take in account now what was already mentioned in Lesson3:
        // forces must be applied for each physics step if you want a constant
        // force applied
        // thus we create an input handler that gets invoked each physics step
        physicsStepInputHandler = new InputHandler();
        getPhysicsSpace().addToUpdateCallbacks(new PhysicsUpdateCallback() {
            public void beforeStep(PhysicsSpace space, float time) {
                physicsStepInputHandler.update(time);
            }
View Full Code Here

Examples of com.jme.input.InputHandler

        // we want to take in account now what was already mentioned in Lesson3:
        // forces must be applied for each physics step if you want a constant
        // force applied
        // thus we create an input handler that gets invoked each physics step
        physicsStepInputHandler = new InputHandler();
        getPhysicsSpace().addToUpdateCallbacks(new PhysicsUpdateCallback() {
            public void beforeStep(PhysicsSpace space, float time) {
                physicsStepInputHandler.update(time);
            }
View Full Code Here

Examples of com.mime.minefront.input.InputHandler

    setLocationRelativeTo(null);
    setVisible(true);
    setResizable(false);
    startMenu();

    InputHandler input = new InputHandler();
    addKeyListener(input);
    addFocusListener(input);
    addMouseMotionListener(input);
    addMouseListener(input);
View Full Code Here

Examples of com.palepail.TestGame.Utilities.InputHandler

    enemyQueue.reverse();
    enemyTimes.reverse();

    addTextBox();

    Gdx.input.setInputProcessor(new InputHandler(this));

    Audio.setMusic(level.getBgm());
    Audio.setVolume();
    Audio.playMusic(true);
View Full Code Here

Examples of com.prupe.mcpatcher.InputHandler

    this.sx = MCPatcherUtils.getDoubleProperty(properties, "sx", 0.0D);
    this.sy = MCPatcherUtils.getDoubleProperty(properties, "sy", 0.0D);
    this.sz = MCPatcherUtils.getDoubleProperty(properties, "sz", 0.0D);
    this.segments = MCPatcherUtils.getIntProperty(properties, "segments", segments);
    this.tileFactor = MCPatcherUtils.getDoubleProperty(properties, "tileFactor", 24.0D);
    this.keyboard = new InputHandler(name, MCPatcherUtils.getBooleanProperty(properties, "debug", false));
  }
View Full Code Here

Examples of org.apache.fop.apps.InputHandler

                              task.getFofile().getParentFile().toURL().toExternalForm());
        } catch (Exception e) {
            task.log("Error setting base directory", Project.MSG_DEBUG);
        }

        InputHandler inputHandler = new FOInputHandler(task.getFofile());
        XMLReader parser = inputHandler.getParser();
        setParserFeatures(parser);

        FileOutputStream pdfOut = null;
        try {
            pdfOut = new FileOutputStream(task.getPdffile());
        } catch (Exception ex) {
            MessageHandler.errorln("Failed to open " + task.getPdffile());
            throw new BuildException(ex);
        }

        task.log("Using base directory: "
                 + Configuration.getValue("baseDir"), Project.MSG_DEBUG);
        task.log(task.getFofile().getName() + " -> "
                 + task.getPdffile().getName(), Project.MSG_INFO);

        try {
            Driver driver = new Driver(inputHandler.getInputSource(), pdfOut);
            driver.setRenderer(Driver.RENDER_PDF);
            driver.setXMLReader(parser);
            driver.run();
        } catch (Exception ex) {
            MessageHandler.logln("Error: " + ex.getMessage());
View Full Code Here

Examples of org.apache.fop.apps.InputHandler

                     , Project.MSG_WARN);
        }
    }

    private void render(File foFile, File outFile, int renderer) throws FOPException {
        InputHandler inputHandler = new FOInputHandler(foFile);
        XMLReader parser = inputHandler.getParser();
        setParserFeatures(parser);

        FileOutputStream out = null;
        try {
            out = new FileOutputStream(outFile);
        } catch (Exception ex) {
            log.error("Failed to open " + outFile);
            throw new BuildException(ex);
        }

        task.log(foFile + " -> " + outFile, Project.MSG_INFO);

        try {
            Driver driver = new Driver(inputHandler.getInputSource(), out);
            driver.setLogger(log);
            driver.setRenderer(renderer);
            driver.setXMLReader(parser);
            driver.run();
            out.close();
View Full Code Here

Examples of org.apache.fop.apps.InputHandler

        }
    }

    private void render(File foFile, File outFile,
                        int renderer) throws FOPException {
        InputHandler inputHandler = new FOInputHandler(foFile);
        XMLReader parser = inputHandler.getParser();

        OutputStream out = null;
        try {
            File dir = outFile.getParentFile();
            dir.mkdirs();
            out = new java.io.FileOutputStream(outFile);
        } catch (Exception ex) {
            throw new BuildException(ex);
        }

        if (logFiles) task.log(foFile + " -> " + outFile, Project.MSG_INFO);

        try {
            Driver driver = new Driver(inputHandler.getInputSource(), out);
            driver.setLogger(log);
            driver.setRenderer(renderer);
            if (renderer == Driver.RENDER_XML) {
                Map rendererOptions = new java.util.HashMap();
                rendererOptions.put("fineDetail", new Boolean(true));
View Full Code Here

Examples of org.apache.fop.apps.InputHandler

    }

    public void run () {
  Configuration.put("basedir", task.getBasedir());

  InputHandler inputHandler = new FOInputHandler(task.getFofile());
  XMLReader parser = inputHandler.getParser();
  setParserFeatures(parser);
 
  FileOutputStream pdfOut = null;
  try {
      pdfOut = new FileOutputStream(task.getPdffile());
  }catch(Exception ex) {
      MessageHandler.errorln("Failed to open " + task.getPdffile());
      throw new BuildException(ex);
  }

  task.log("Using base directory: " + Configuration.getValue("basedir"), Project.MSG_DEBUG);
  task.log(task.getFofile().getName() + " -> " + task.getPdffile().getName(), Project.MSG_INFO);

  try {
      Driver driver = new Driver(inputHandler.getInputSource(), pdfOut);
      driver.setRenderer(Driver.RENDER_PDF);
      driver.setXMLReader(parser);
      driver.run();
  } catch (Exception ex) {
      MessageHandler.logln("Error: " + ex.getMessage());
View Full Code Here

Examples of org.apache.fop.cli.InputHandler

        }
    }

    private void render(File foFile, File outFile,
                        String outputFormat) throws FOPException {
        InputHandler inputHandler = new InputHandler(foFile);

        OutputStream out = null;
        try {
            out = new java.io.FileOutputStream(outFile);
            out = new BufferedOutputStream(out);
        } catch (Exception ex) {
            throw new BuildException("Failed to open " + outFile, ex);
        }

        if (task.getLogFiles()) {
            task.log(foFile + " -> " + outFile, Project.MSG_INFO);
        }

        boolean success = false;
        try {
            FOUserAgent userAgent = fopFactory.newFOUserAgent();
            userAgent.setBaseURL(this.baseURL);
            inputHandler.renderTo(userAgent, outputFormat, out);
            success = true;
        } catch (Exception ex) {
            throw new BuildException(ex);
        } finally {
            try {
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.