public class InlineViewport extends InlineArea implements Viewport
InlineArea.InlineAdjustingInfoadjustingInfo, blockProgressionOffsetbidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, effectiveIPD, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traitsextensionAttachments, foreignAttributes| Constructor and Description |
|---|
InlineViewport(Area child)
Create a new viewport area with the content area.
|
InlineViewport(Area child,
int bidiLevel)
Create a new viewport area with the content area.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Rectangle |
getClipRectangle()
Returns the clipping rectangle of this viewport area.
|
Area |
getContent()
Get the content area for this viewport.
|
java.awt.geom.Rectangle2D |
getContentPosition()
Get the position and size of the content of this viewport.
|
int |
getEffectiveIPD() |
boolean |
hasClip()
Returns true if this area will clip overflowing content.
|
void |
setClip(boolean c)
Set the clip of this viewport.
|
void |
setContent(Area content)
Sets the content area.
|
void |
setContentPosition(java.awt.geom.Rectangle2D cp)
Set the position and size of the content of this viewport.
|
addChildArea, applyVariationFactor, collectInlineRuns, getAdjustingInfo, getBlockProgressionOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isAncestor, isAncestorOrSelf, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustingInfo, setAdjustment, setBlockProgressionOffset, setParentAreaactivateEffectiveIPD, addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getChangeBarList, getEffectiveAllocIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setIPD, setTraits, setWritingModeTraits, toStringaddExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributespublic InlineViewport(Area child)
child - the child content area of this viewportpublic InlineViewport(Area child, int bidiLevel)
child - the child content area of this viewportbidiLevel - the bidirectional embedding level (or -1 if not defined)public void setClip(boolean c)
c - true if this viewport should clippublic boolean hasClip()
public java.awt.Rectangle getClipRectangle()
getClipRectangle in interface Viewportpublic void setContentPosition(java.awt.geom.Rectangle2D cp)
cp - the position and size to place the contentpublic java.awt.geom.Rectangle2D getContentPosition()
public void setContent(Area content)
content - the content areapublic Area getContent()
public int getEffectiveIPD()
getEffectiveIPD in class AreaCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.