public class InlineViewport extends InlineArea implements Viewport
InlineArea.InlineAdjustingInfo
adjustingInfo, blockProgressionOffset
bidiLevel, 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, traits
extensionAttachments, 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, setParentArea
activateEffectiveIPD, addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getEffectiveAllocIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setIPD, setTraits, setWritingModeTraits, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public 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 Viewport
public 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 Area
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.