Package org.jfree.ui

Class Align


  • public final class Align
    extends Object
    A utility class for aligning rectangles.
    Author:
    David Gilbert
    • Method Detail

      • align

        public static void align​(Rectangle2D rect,
                                 Rectangle2D frame,
                                 int align)
        Aligns one rectangle (rect) relative to another rectangle (frame).
        Parameters:
        rect - the rectangle to be aligned (null not permitted).
        frame - the reference frame (null not permitted).
        align - the alignment code.