public class BlockViewport extends Block implements Viewport
ABSOLUTE, allowBPDUpdate, FIXED, RELATIVE, STACKchildren, xOffset, yOffsetbidiLevel, 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 |
|---|
BlockViewport()
Create a new block viewport area.
|
BlockViewport(boolean allowBPDUpdate)
Create a new block viewport area.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.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, setPositioningaddChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffsetaddTrait, 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 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 java.awt.Rectangle getClipRectangle()
getClipRectangle in interface Viewportpublic int getEffectiveIPD()
getEffectiveIPD in class BlockCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.