All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.util.JCRectUtil

java.lang.Object
   |
   +----jclass.util.JCRectUtil

public class JCRectUtil
extends Object
JCRectUtil provides functions for computing the largest available rectangle from a list of rectangles.


Variable Index

 o LEFTTORIGHT
 o TOPTOBOTTOM

Constructor Index

 o JCRectUtil()

Method Index

 o largest_rect(JCRectList)
Determine the largest rectangle in the space represented by a list of non-overlapping rectangles..
 o rl_init(Rectangle, JCRectList)
Initialize this rectangle list.
 o rl_remove(Rectangle, JCRectList, JCRectList)
Remove rectangle r from rectlist rl1, storing the result in rl2.

Variables

 o LEFTTORIGHT
 public static final int LEFTTORIGHT
 o TOPTOBOTTOM
 public static final int TOPTOBOTTOM

Constructors

 o JCRectUtil
 public JCRectUtil()

Methods

 o rl_init
 public static void rl_init(Rectangle r,
                            JCRectList rl)
Initialize this rectangle list.

Parameters:
r - rectangle to intialize this list with.
rl - rectangle list to initialize.
 o rl_remove
 public static void rl_remove(Rectangle r,
                              JCRectList rl1,
                              JCRectList rl2)
Remove rectangle r from rectlist rl1, storing the result in rl2.

Parameters:
r - rectangle to remove.
rl1 - rectangle list to remove rectangle from.
rl2 - rectangle list to place result in.
 o largest_rect
 public static Rectangle largest_rect(JCRectList rl)
Determine the largest rectangle in the space represented by a list of non-overlapping rectangles..

Parameters:
rl - the list of rectangles to use for the calculation.
Returns:
s the largest rectangle in the list.

All Packages  Class Hierarchy  This Package  Previous  Next  Index