Java Rectangle firstSmallerThanSecond(java.awt.Rectangle first, java.awt.Rectangle second)

Here you can find the source of firstSmallerThanSecond(java.awt.Rectangle first, java.awt.Rectangle second)

Description

first Smaller Than Second

License

Open Source License

Declaration

private static boolean firstSmallerThanSecond(java.awt.Rectangle first, java.awt.Rectangle second) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static boolean firstSmallerThanSecond(java.awt.Rectangle first, java.awt.Rectangle second) {
        int areaFirst = (int) (first.getSize().getHeight() * first.getSize().getWidth());
        int areaSecond = (int) (second.getSize().getHeight() * second.getSize().getWidth());
        return areaFirst < areaSecond;
    }/* ww w  .ja  v  a 2s. co m*/
}

Related

  1. clip(int x, int y, int w, int h)
  2. computeDifference(Rectangle rectA, Rectangle rectB)
  3. expand(final Rectangle rect, final int expansion)
  4. expand(Rectangle rect, int amount)
  5. expand(Rectangle rectangle, int expansion)
  6. flip(Dimension view, Rectangle rect, int direction)
  7. formatRect(Rectangle rc)
  8. formatRectangle(Rectangle rect)
  9. getAbsoluteRectangle(Rectangle rect)