public class BlockViewport extends Block implements Viewport
ABSOLUTE, allowBPDUpdate, FIXED, RELATIVE, STACK
children, xOffset, yOffset
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 |
---|
BlockViewport()
Create a new block viewport area.
|
BlockViewport(boolean allowBPDUpdate)
Create a new block viewport area.
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
getClipRectangle()
Returns the clipping rectangle of this viewport area.
|
CTM |
getCTM()
Get the transform of this block viewport.
|
int |
getEffectiveIPD() |
boolean |
hasClip()
Returns true if this area will clip overflowing content.
|
void |
setClip(boolean cl)
Set the clipping for this viewport.
|
void |
setCTM(CTM ctm)
Set the transform of this viewport.
|
activateEffectiveIPD, addBlock, addBlock, addLineArea, getEndIndent, getLocale, getLocation, getPositioning, getStartIndent, isStacked, setLocale, setLocation, setPositioning
addChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffset
addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getChangeBarList, getEffectiveAllocIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, isFromFootnote, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setFromFootnote, setIPD, setTraits, setWritingModeTraits, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public BlockViewport()
public BlockViewport(boolean allowBPDUpdate)
allowBPDUpdate
- true allows the BPD to be updated when children are addedpublic void setCTM(CTM ctm)
ctm
- the transformationpublic CTM getCTM()
public void setClip(boolean cl)
cl
- the clipping for the viewportpublic boolean hasClip()
public Rectangle getClipRectangle()
getClipRectangle
in interface Viewport
public int getEffectiveIPD()
getEffectiveIPD
in class Block
Copyright © 2025 Apache Software Foundation. All rights reserved.