Examples of PaintListener


Examples of org.eclipse.swt.events.PaintListener

    shell.setLayout(new GridLayout());
    logger.debug("gw size: " + getSize());
    shell.setMinimumSize(MINIMUM_WIDTH, MINIMUM_HEIGHT);
    // TODO Somehow lock fixed x:y relation
    logger.debug("Shell size: " + shell.getSize());
    shell.addPaintListener(new PaintListener() {
     
      /**
       * Make sure we handle the case when the shell is resized.
       * <p>
       * In this case, rescale the background image and recompute the
View Full Code Here

Examples of org.rsbot.event.listeners.PaintListener

  public void setupListener() {
    if (menuListenerStarted) {
      return;
    }
    menuListenerStarted = true;
    methods.bot.getEventManager().addListener(new PaintListener() {
      public void onRepaint(final Graphics g) {
        synchronized (menuCacheLock) {
          menuOptionsCache = getOptions();
          menuActionsCache = getActions();
        }
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.