java.io.Serializable, java.lang.Cloneable, Viewportpublic class BlockViewport extends Block implements Viewport
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, traitsextensionAttachments, foreignAttributesABSOLUTE, allowBPDUpdate, FIXED, RELATIVE, STACKchildren, xOffset, yOffset| Constructor | Description |
|---|---|
BlockViewport() |
Create a new block viewport area.
|
BlockViewport(boolean allowBPDUpdate) |
Create a new block viewport area.
|
| Modifier and Type | Method | 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.
|
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, toStringaddExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributesactivateEffectiveIPD, addBlock, addBlock, addLineArea, getEndIndent, getLocale, getLocation, getPositioning, getStartIndent, isStacked, setLocale, setLocation, setPositioningaddChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffsetpublic 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-2016 The Apache Software Foundation. All Rights Reserved.