|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.adobe.xfa.layout.BoxModelLayout
public class BoxModelLayout
A class to access and manipulate the axis-aligned rectangular layout of form objects. Form objects that subscribe to this box model paradigm are <draw>, <field>, <subform>, <contentArea>, <area> and <pageArea>.
A box model defines a number of rectangular regions. All regions are relative to an offset from the local coordinate space, which has its origin at the top left corner of the nominal extent; this is the local box model origin.
All regions have a set of margins. A region may also have an optional border that may be inset from its extents.
A box model is characterized by the following:
The nominal extent is used for graphical placement. However, the actual rendering of the form object may include graphic elements that draw outside of the nominal extent; this is the visual extent.
Box model instances should be created using the static
BoxModelLayout.newBoxModel(...)
function.
| Method Summary | |
|---|---|
Angle |
getAngle()
Gets the rotation angle. |
Rect |
getBorderExtent()
Gets the nominal extent border rectangle relative to the local box model origin. |
Rect |
getCaptionExtent()
Gets the caption bounding rectangle relative to the local box model origin. |
Margins |
getCaptionExtentMargins()
Gets the margins (top/left/bottom/right insets) of the caption extent. |
Rect |
getContentBorderExtent()
Gets the content border rectangle relative to the local box model origin. |
Rect |
getContentExtent()
Gets the content rectangle. |
Margins |
getContentExtentMargins()
Gets the margins (top/left/bottom/right insets) of the content extent. |
UnitSpan |
getHeight()
Gets the height of the box model. |
Rect |
getNominalExtent()
Gets the nominal bounding rectangle relative to the local box model origin. |
Margins |
getNominalExtentMargins()
Gets the margins (top/left/bottom/right insets) of the nominal extent. |
Rect |
getVisualExtent()
Gets the visual bounding rectangle relative to the local box model origin. |
UnitSpan |
getWidth()
Gets the width of the box model. |
boolean |
hasCaption()
Determines if this box model has any formattable content within it's caption region. |
boolean |
hasRotation()
Determines if this box model has had a rotation applied. |
static BoxModelLayout |
newBoxModel(Element node,
LayoutEnv env,
boolean bAllowProxy)
Creates a new, fully initialized instance of a box model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static BoxModelLayout newBoxModel(Element node,
LayoutEnv env,
boolean bAllowProxy)
node - the form node that the box model applies to.env - the layout environment.bAllowProxy - allow proxy -- ie. drawn from stored text run definitions. ????.
public Rect getNominalExtent()
public UnitSpan getWidth()
public UnitSpan getHeight()
public Rect getVisualExtent()
public Rect getBorderExtent()
public Rect getContentBorderExtent()
public Rect getCaptionExtent()
public Rect getContentExtent()
public Margins getCaptionExtentMargins()
public Margins getContentExtentMargins()
public Angle getAngle()
public Margins getNominalExtentMargins()
public boolean hasCaption()
public boolean hasRotation()
|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||