| java.lang.Object jimm.datavision.layout.LayoutEngine jimm.datavision.layout.SortedLayoutEngine
All known Subclasses: jimm.datavision.layout.XMLLE, jimm.datavision.layout.HTMLLE, jimm.datavision.layout.CSSHTMLLE, jimm.datavision.layout.CharSepLE,
SortedLayoutEngine | abstract public class SortedLayoutEngine extends LayoutEngine (Code) | | A sorted layout engine outputs the fields within each section in order
of their y then x coordinates. Another way of putting it: the fields are
sorted top to bottom, then left to right. This ensures, for example,
that character-based layout engines such as CharSepLE and
HTMLLE will display fields in the correct left-to-right
order.
author: Jim Menard, jimm@io.com |
Method Summary | |
protected Object[] | buildSectionFields(Section sect) Creates, saves, and returns an array of fields sorted by their y and x
coordinates (y first, then x). | protected void | doOutputSection(Section sect) This override iterates over a list of fields that have been sorted
by their y and x coordinates. |
SortedLayoutEngine | public SortedLayoutEngine()(Code) | | Constructor.
|
SortedLayoutEngine | public SortedLayoutEngine(PrintWriter out)(Code) | | Constructor.
Parameters: out - output print writer |
buildSectionFields | protected Object[] buildSectionFields(Section sect)(Code) | | Creates, saves, and returns an array of fields sorted by their y and x
coordinates (y first, then x). Another way of putting it: the fields are
sorted top to bottom, then left to right.
Parameters: sect - a report section a sorted array of fields |
doOutputSection | protected void doOutputSection(Section sect)(Code) | | This override iterates over a list of fields that have been sorted
by their y and x coordinates. Put another way, the fields are output
top to bottom, left to right.
Parameters: sect - a section |
|
|