FlowPaperLayout Class Reference

List of all members.

Static Public Member Functions

static void layout (Sheet targetSheet, List< Region > regions)
static void layout (Sheet sheet, List< Region > regions, Coordinates sheetOffset, Units width, Units height, Units hPadding, Units vPadding)
 Allow CENTER, LEFT, or RIGHT alignments.
static void layoutRegionGroups (Sheet sheet, List< RegionGroup > regionGroups, Coordinates sheetOffset, Units width, Units height, Units hPadding, Units vPadding)

Detailed Description

Somewhat similar to Swing's FlowLayout, but it is not a Layout Manager in the sense that it needs to calculate layouts on the fly. It's just a simple utility to lay out your regions more easily.

This software is distributed under the BSD License.

Author:
Ron B Yeh (ronyeh(AT)cs.stanford.edu)

Definition at line 25 of file FlowPaperLayout.java.


Member Function Documentation

static void layout ( Sheet  sheet,
List< Region regions,
Coordinates  sheetOffset,
Units  width,
Units  height,
Units  hPadding,
Units  vPadding 
) [static]

Allow CENTER, LEFT, or RIGHT alignments.

(Center for now)

Parameters:
sheet 
regions 
sheetOffset 
width of the content area
height of the content area
hPadding 
vPadding 

Definition at line 70 of file FlowPaperLayout.java.

References Sheet.addRegion(), Sheet.getRegionOffset(), Units.getValueInInches(), Coordinates.getX(), Coordinates.getY(), and Sheet.setRegionOffset().

static void layout ( Sheet  targetSheet,
List< Region regions 
) [static]

Parameters:
targetSheet 
regions 

Definition at line 50 of file FlowPaperLayout.java.

References Sheet.getHeight(), and Sheet.getWidth().

static void layoutRegionGroups ( Sheet  sheet,
List< RegionGroup regionGroups,
Coordinates  sheetOffset,
Units  width,
Units  height,
Units  hPadding,
Units  vPadding 
) [static]

Parameters:
sheet 
regionGroups 
sheetOffset 
width 
height 
hPadding 
vPadding 

Definition at line 149 of file FlowPaperLayout.java.

References RegionGroup.getHeight(), Sheet.getRegionOffset(), Units.getValueInInches(), RegionGroup.getWidth(), Coordinates.getX(), Coordinates.getY(), and Sheet.setRegionOffset().


The documentation for this class was generated from the following file:
Generated on Sat Apr 14 18:21:42 2007 for R3 Paper Toolkit by  doxygen 1.4.7