Here you can find the source of right(Rectangle r)
Parameter | Description |
---|---|
r | the rectangle |
public static int right(Rectangle r)
//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); } }