Package org.andrewberman.ui

Examples of org.andrewberman.ui.Shortcut


    {
      ToolDockItem tdi = (ToolDockItem) items.get(i);
      Tool t = (Tool) tdi.getTool();
      if (t.getShortcut() != null)
      {
        Shortcut s = t.getShortcut();
        if (s.matchesKeyEvent(e))
        {
          activeItem = tdi;
        }
      }
    }
View Full Code Here


  public Scroll(PApplet p)
  {
    super(p);

    shortcut = new Shortcut("s");
    xTween = new Tween(null, TweenFriction.tween(0.8f), Tween.OUT, 0, 0, 30);
    yTween = new Tween(null, TweenFriction.tween(0.8f), Tween.OUT, 0, 0, 30);
  }
View Full Code Here

    curPoint = new Point(0, 0);
  }

  public void setToggleKey(String s)
  {
    toggle = new Shortcut(s);
  }
View Full Code Here

    toggle = new Shortcut(s);
  }

  public void setShortcut(String s)
  {
    shortcut = new Shortcut(s);
  }
View Full Code Here

  public Zoom(PApplet p)
  {
    super(p);

    shortcut = new Shortcut("z");
    zoomTween = new Tween(null, TweenFriction.tween(0.3f), Tween.OUT, 1, 1,
        30);
  }
View Full Code Here

TOP

Related Classes of org.andrewberman.ui.Shortcut

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.