Examples of toRectangle()


Examples of com.peterhi.ui.obsolete.Bounds.toRectangle()

          updateBounds(Bounds.fromLeftTopRightBottom(left, top, right, bottom).toRectangle());
        }
       
        @Override
        public void end(Animator source) {
          updateBounds(to.toRectangle());
          boundsAnimator = null;
        }

      };
     
View Full Code Here

Examples of com.peterhi.ui.obsolete.Bounds.toRectangle()

          int nRight = (int )Math.round(dRight);
          int nTop = (int )Math.round(dTop);
          int nBottom = (int )Math.round(dBottom);

          Bounds bounds = Bounds.fromLeftTopRightBottom(nLeft, nTop, nRight, nBottom);
          setBounds(bounds.toRectangle(), false, null);
         
          if (listener != null) {
            listener.timingEvent(source, fraction);
          }
        }
View Full Code Here

Examples of com.peterhi.ui.obsolete.Bounds.toRectangle()

          }
        }
       
        @Override
        public void end(Animator source) {
          setRenderBounds(to.toRectangle());
          boundsAnimator = null;
         
          if (listener != null) {
            listener.end(source);
          }
View Full Code Here

Examples of com.peterhi.ui.obsolete.Bounds.toRectangle()

          checkFocusBasedOnCursor();
        }
       
        @Override
        public void end(Animator source) {
          setBounds(to.toRectangle(), false, false);
         
          cancelAnimatingBounds();
         
          if (reorderItems) {
            item.getParent().reorderItems();
View Full Code Here

Examples of com.sencha.gxt.chart.client.draw.sprite.RectangleSprite.toRectangle()

      }
      if (!Double.isNaN(strokeWidth)) {
        bar.setStrokeWidth(strokeWidth);
      }
      if (chart.isAnimated() && !Double.isNaN(bar.getX())) {
        DrawFx.createRectangleAnimator(bar, rect.toRectangle()).run(chart.getAnimationDuration(),
            chart.getAnimationEasing());
      } else {
        bar.setX(rect.getX());
        bar.setY(rect.getY());
        bar.setWidth(rect.getWidth());
View Full Code Here

Examples of com.sencha.gxt.chart.client.draw.sprite.RectangleSprite.toRectangle()

          shadowSprite.setWidth(0);
          shadowSprite.setHeight(rect.getHeight());
        }
      }
      if (chart.isAnimated() && !Double.isNaN(shadowSprite.getHeight()) && !Double.isNaN(shadowSprite.getWidth())) {
        DrawFx.createRectangleAnimator(shadowSprite, rect.toRectangle()).run(chart.getAnimationDuration(),
            chart.getAnimationEasing());
      } else {
        shadowSprite.setX(rect.getX());
        shadowSprite.setY(rect.getY());
        shadowSprite.setWidth(rect.getWidth());
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.RECT.toRectangle()


    public Rectangle getHSWindowBounds() {
        RECT bounds = new RECT();
        User32Extra.INSTANCE.GetWindowRect(windowHandle, bounds);
        return bounds.toRectangle();
    }


  public boolean bringWindowToForeground() {
    HWND currentWindowHandle = getWindowHandle();
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.RECT.toRectangle()

    RECT bounds = new RECT();
    User32Extra.INSTANCE.GetClientRect(hWnd, bounds);

    // check to make sure the window's not minimized
    if (bounds.toRectangle().width >= 1024) {
      if (isMinimised) {
        _notifyObserversOfChangeTo("Hearthstone window restored");
        isMinimised = false;
      }
View Full Code Here

Examples of com.sun.jna.platform.win32.WinDef.RECT.toRectangle()

      if (isMinimised) {
        _notifyObserversOfChangeTo("Hearthstone window restored");
        isMinimised = false;
      }

      if (_isFullScreen(bounds.toRectangle())) {
        if (!isFullscreen) {
          _notifyObserversOfChangeTo("Hearthstone running in fullscreen");
          isFullscreen = true;
        }
        return null;
View Full Code Here

Examples of org.apache.lucene.spatial.geometry.shape.LLRect.toRectangle()

  public Rectangle getBoundary (double x1, double y1, double miles) {

    LLRect box = LLRect.createBox( new FloatLatLng( x1, y1 ), miles, miles );
   
    //System.out.println("Box: "+maxX+" | "+ maxY+" | "+ minX + " | "+ minY);
    return box.toRectangle();

  }
 
  public double getLLMDistance (double x1, double y1, double x2, double y2) { 
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.