    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.

##

LEFTTORIGHT
TOPTOBOTTOM

##

JCRectUtil()

##

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

##

LEFTTORIGHT

     public static final int LEFTTORIGHT

TOPTOBOTTOM

     public static final int TOPTOBOTTOM

##

JCRectUtil

     public JCRectUtil()

##

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.

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.

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