Package org.mt4j.components.interfaces

Examples of org.mt4j.components.interfaces.IMTController


          theListCellContainer.setDragging(false);
         
          Vector3D vel = de.getDragCursor().getVelocityVector(140);
          vel.scaleLocal(0.8f);
          vel = vel.getLimited(15);
          IMTController oldController = theListCellContainer.getController();
          theListCellContainer.setController(new InertiaListController(theListCellContainer, vel, oldController));
        }
        canDrag = false;
        break;
      default:
View Full Code Here


  public boolean processGestureEvent(MTGestureEvent ge) {
    IMTComponent3D t = ge.getTargetComponent();
    if (t instanceof MTComponent) {
      MTComponent comp = (MTComponent) t;
      DragEvent de = (DragEvent)ge;
      IMTController oldController;
      switch (de.getId()) {
      case DragEvent.GESTURE_DETECTED:
        break;
      case DragEvent.GESTURE_UPDATED:
        break;
View Full Code Here

    e.setDepthBufferDisabled(true);
    e.attachCamera(cam);
    e.setVisible(false);
    e.setDegrees(0);
   
    e.setController(new IMTController() {
      public void update(long timeDelta) {
        MTComponent parent = e.getParent();
        if (parent != null){
          int childCount = parent.getChildCount();
          if (childCount > 0
View Full Code Here

    this.app = app;
   
    this.setDepthBufferDisabled(true);

    //Send overlay group to front again if it isnt - check each frame if its on front!
    this.setController(new IMTController() {
      public void update(long timeDelta) {
        putLastInParentList();
      }
    });
   
View Full Code Here

   * @param controller the controller
   *
   * @return the old IMT controller (may be null)
   */
  public IMTController setController(IMTController controller) {
    IMTController oldController = this.controller;
    this.controller = controller;
    return oldController;
  }
View Full Code Here

TOP

Related Classes of org.mt4j.components.interfaces.IMTController

Copyright © 2018 www.massapicom. 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.