Examples of CursorTracer


Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    super(mtApplication, name);
    mtApp = mtApplication;
   
    this.setClearColor(new MTColor(40,40,40,255));
   
    this.registerGlobalInputProcessor(new CursorTracer(mtApp, this));
   
    //Make canvas zoomable
    this.getCanvas().registerInputProcessor(new ZoomProcessor(mtApp));
    this.getCanvas().addGestureListener(ZoomProcessor.class, new DefaultZoomAction());
   
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

      System.err.println("Scene only usable when using the OpenGL renderer! - See settings.txt");
          return;
        }
   
    this.setClearColor(new MTColor(200, 200, 200, 255));
    this.registerGlobalInputProcessor(new CursorTracer(pa, this));
   
    //Add a background image for the scene
    this.getCanvas().addChild(new MTBackgroundImage(pa, pa.loadImage(imagesPath + "3040.jpg"), true));
   
    //Init light settings
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    this.hasFBO = GLFBO.isSupported(app);
//    this.hasFBO = false; // TEST
    //IF we have no FBO directly switch to scene and ignore setting
    this.switchDirectlyToScene = !this.hasFBO? true : switchDirectlyToScene;
   
    this.registerGlobalInputProcessor(new CursorTracer(app, this));
   
//    this.setClearColor(new MTColor(230,230,230,255));
//    this.setClearColor(new MTColor(30,30,30,255));
    this.setClearColor(new MTColor(0,0,0,255));
   
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

      System.err.println("Scene only usable when using the OpenGL renderer! - See settings.txt");
          return;
        }
   
    //Show our touches
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
   
    defaultCenterCam = new MTCamera(p);
   
    //Container for the foto tags on the map
    tagContainer = new MTComponent(p);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    if (!MT4jSettings.getInstance().isOpenGlMode()){
      System.err.println(this.getName() + " is only usable with the OpenGL renderer.");
    }

    this.setClearColor(new MTColor(55,55,55));
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
    this.getCanvas().setDepthBufferDisabled(true); //to avoid display errors because everything is 2D
   
    MTBackgroundImage background = new MTBackgroundImage(mtApplication, mtApplication.loadImage(imagesPath + "webtreats_wood-pattern1-512d.jpg") , true);
    this.getCanvas().addChild(background);
   
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

      }
    });
    tails.addGestureListener(TapAndHoldProcessor.class, new TapAndHoldVisualizer(mtApp, getCanvas()));
   
    //Add touch feedback
    this.registerGlobalInputProcessor(new CursorTracer(mtApp, this));
  }
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    this.mtApp = mtApplication;
   
    //Set the background color
    this.setClearColor(new MTColor(150, 188, 146, 255));
   
    this.registerGlobalInputProcessor(new CursorTracer(mtApp, this));
   
    //Create a textfield
    MTTextArea textField = new MTTextArea(mtApplication, FontManager.getInstance().createFont(mtApplication, "arial.ttf",
        50, new MTColor(255, 255, 255, 255), new MTColor(255, 255, 255, 255)));
    textField.setNoFill(true);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    this.mtApp = mtApplication;
   
    //Set the background color
    this.setClearColor(new MTColor(188, 150, 146, 255));
   
    this.registerGlobalInputProcessor(new CursorTracer(mtApp, this));
   
    //Create a textfield
    MTTextArea textField = new MTTextArea(mtApplication, FontManager.getInstance().createFont(mtApplication, "arial.ttf",
        50, new MTColor(255, 255, 255, 255), new MTColor(255, 255, 255, 255)));
    textField.setNoFill(true);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

  private MTApplication app;
  public ApplicationScene(MTApplication mtApplication, String name) {
    super(mtApplication, name);
    this.app=mtApplication;
    // TODO Auto-generated constructor stub
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
    MTTextArea title=new MTTextArea(app);
    title.setFont(FontManager.getInstance().createFont(mtApplication, "Century Schoolbook L Bold", 100, MTColor.GRAY,MTColor.GRAY,false));
    title.setNoStroke(true);
    title.setNoFill(true);
    this.getCanvas().addChild(title);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

public class TestScene extends AbstractScene {
 
  public TestScene(MTApplication mtApplication, String name) {
    super(mtApplication, name);
    CursorTracer c = new CursorTracer(mtApplication, this);
    registerGlobalInputProcessor(c);
    int count = 2;
    for (int i = 0; i < count; i++) {
      MTRectangle r = new MTRectangle(0,0,ToolsMath.getRandom(50, 250),ToolsMath.getRandom(50, 250),mtApplication);
      r.setFillColor(new MTColor(ToolsMath.getRandom(50,255),ToolsMath.getRandom(50,255),ToolsMath.getRandom(50,255)));
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.