Java Rectangle right(Rectangle r)

Here you can find the source of right(Rectangle r)

Description

{ method

License

Apache License

Parameter

Parameter Description
r the rectangle

Return

the edge }

Declaration

public static int right(Rectangle r) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.awt.*;

public class Main {
    /**//ww  w  .ja va2s  .co  m
     * { method
     *
     * @param r the rectangle
     * @return the edge
     *         }
     * @name right
     * @function get rectangles right edge
     */
    public static int right(Rectangle r) {
        if (r != null) {
            return (r.x + r.width);
        }
        return (0);
    }
}

Related

  1. rectCollide(final Rectangle a, final Rectangle b)
  2. rectDistance(final Rectangle r, final Rectangle q)
  3. rectFromArray(Rectangle2D aRectangle, double[] pts)
  4. rectFromRect2D(Rectangle2D rect)
  5. resetPosition(Window window1, Window window2)
  6. size(final Component component)
  7. subdivide(Dimension dimension, int threshold, int max)
  8. subdivideRectangle(int width, int height, int numTilesX, int numTilesY, int extraBorder)
  9. subtractInsets(Rectangle base, Insets insets)