public class TextPanel extends TextFrame
The client creates all panel instances, either to pass to the sparse stream API or as a result of its implementation of the sparse stream event handling methods. The client must populate its created panels with geometry information. A future implementation may allow the client to set text attributes for a panel as well.
Once the client passes a panel instance to the sparse stream, AXTE takes over and populates its layout. The layout may come from a client-supplied layout object, or it may be generated by AXTE as the result of a reflow operation.
Panels are reference counted objects, allowing the client to retain handles to objects that are managed by AXTE.
While panels have width and height geometry, it is up to the client to decide how to map panels into its rendering space. AXTE treats the top-left corner of each panel as its origin.
| Constructor and Description |
|---|
TextPanel()
Default constructor.
|
TextPanel(TextPanel oSource)
Copy constructor.
|
TextPanel(UnitSpan oWidth,
UnitSpan oHeight)
Construct a panel with given width and height.
|
| Modifier and Type | Method and Description |
|---|---|
TextFrame |
cloneFrame()
Create a copy (deep clone) of this frame object.
|
void |
copyFrom(TextPanel oSource)
Assignment operator.
|
UnitSpan |
getHeight()
Return the height of the panel.
|
UnitSpan |
getWidth()
Return the width of the panel.
|
UnitSpan |
maxHeight()
Return the frame's maximum height.
|
UnitSpan |
maxWidth()
Return the frame's maximum width.
|
UnitSpan |
minHeight()
Return the frame's minimum height.
|
UnitSpan |
minWidth()
Return the frame's minimum width.
|
void |
setDimensions(UnitSpan oWidth,
UnitSpan oHeight)
Set the dimensions of this panel.
|
void |
setHeight(UnitSpan oHeight)
Set the height of this panel.
|
void |
setWidth(UnitSpan oWidth)
Set the width of this panel.
|
alignHPoint, alignVPoint, combCells, copyFrom, format, getLayoutOrientation, getLineCount, gfxDraw, gfxDraw, gfxDraw, gfxDraw, gfxDraw, isDirty, releaseDisposableMaps, setDirty, unlimitedHeight, unlimitedWidthpublic TextPanel()
Construct a panel with default dimensions of 1" by 1".
public TextPanel(TextPanel oSource)
oSource - - Source panel to copy.public void setWidth(UnitSpan oWidth)
If the width changes for a panel in a sparse stream, it causes reflow of text from that panel on.
oWidth - - New width for the panel.public UnitSpan getWidth()
public void setHeight(UnitSpan oHeight)
If the height changes for a panel in a sparse stream, it causes reflow of text from that panel on.
oHeight - - New height for the panel.public UnitSpan getHeight()
public void setDimensions(UnitSpan oWidth, UnitSpan oHeight)
This allows the caller to change both settings in a single call. If either dimension changes for a panel in a sparse stream, it causes reflow of text from that panel on.
oWidth - - New width for the panel.oHeight - - New Height for the panel.public void copyFrom(TextPanel oSource)
oSource - - Source panel to copy.public UnitSpan minWidth()
TextFrameAll frames have both a minimum and maximum width, which may or may not be the same. This method returns the minimum width.
public UnitSpan minHeight()
TextFrameAll frames have both a minimum and maximum height, which may or may not be the same. This method returns the minimum height.
public UnitSpan maxWidth()
TextFrameAll frames have both a minimum and maximum width, which may or may not be the same. This method returns the maximum width.
public UnitSpan maxHeight()
TextFrameAll frames have both a minimum and maximum height, which may or may not be the same. This method returns the maximum height.
public TextFrame cloneFrame()
TextFrameThe copy must have the same geometry as this object. It is up to AXTE to subsequently manage the clones layout and relationship to content.
cloneFrame in class TextFrameCopyright © 2010 - 2020 Adobe. All Rights Reserved