All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fabula.util.Rect

java.lang.Object
   |
   +----fabula.util.Rect

public class Rect
extends Object
The class Rect defines several methods for handling rectangles easy


Method Index

 o Bottom(Rectangle)
returns the bottom position of the rectangle
 o Bounds(int, int, int, int)
Returns a bounding rectangle
 o CentralPoint(Rectangle)
Returns a the central point for a rectangle
 o Grow(Rectangle, int)
grows the rectangle
 o Height(Rectangle)
returns the height of the rectangle
 o Include(Rectangle, Rectangle)
check if the two rectangles intersects
 o Intersection(Rectangle, Rectangle)
Returns the intersection of the two rectangles
 o IsSquare(Rectangle)
Check if the rectangle is a square
 o Left(Rectangle)
returns the left position of the rectangle
 o MoveTo(Rectangle, int, int)
absolute move of the rectangle
 o Point(Rectangle, Point)
checks if the point is inside the rectangle
 o RelativeMove(Rectangle, int, int)
relative move of the rectangle
 o Right(Rectangle)
returns the right position of the rectangle
 o Set(int, int, int, int)
build a rectangle in Windows notation
 o SetPoint(Point, Point)
Create a rectangle with given two points
 o Top(Rectangle)
returns the top position of the rectangle
 o Width(Rectangle)
returns the widht of the rectangle

Methods

 o Height
  public static int Height(Rectangle R)
returns the height of the rectangle

 o Width
  public static int Width(Rectangle R)
returns the widht of the rectangle

 o Left
  public static int Left(Rectangle R)
returns the left position of the rectangle

 o Top
  public static int Top(Rectangle R)
returns the top position of the rectangle

 o Right
  public static int Right(Rectangle R)
returns the right position of the rectangle

 o Bottom
  public static int Bottom(Rectangle R)
returns the bottom position of the rectangle

 o Grow
  public static Rectangle Grow(Rectangle R,
                               int Delta)
grows the rectangle

 o RelativeMove
  public static Rectangle RelativeMove(Rectangle R,
                                       int dx,
                                       int dy)
relative move of the rectangle

 o MoveTo
  public static Rectangle MoveTo(Rectangle R,
                                 int x,
                                 int y)
absolute move of the rectangle

 o Set
  public static Rectangle Set(int Left,
                              int Top,
                              int Right,
                              int Bottom)
build a rectangle in Windows notation

 o SetPoint
  public static Rectangle SetPoint(Point TopLeft,
                                   Point BottomRight)
Create a rectangle with given two points

 o Include
  public static boolean Include(Rectangle R1,
                                Rectangle R2)
check if the two rectangles intersects

 o Point
  public static boolean Point(Rectangle R,
                              Point P)
checks if the point is inside the rectangle

 o Intersection
  public static Rectangle Intersection(Rectangle R1,
                                       Rectangle R2)
Returns the intersection of the two rectangles

 o IsSquare
  public static boolean IsSquare(Rectangle R)
Check if the rectangle is a square

 o CentralPoint
  public static Point CentralPoint(Rectangle R)
Returns a the central point for a rectangle

 o Bounds
  public static Rectangle Bounds(int aLeft,
                                 int aTop,
                                 int aWidth,
                                 int aHeight)
Returns a bounding rectangle


All Packages  Class Hierarchy  This Package  Previous  Next  Index