Class BlockViewport
java.lang.Object
org.apache.fop.area.AreaTreeObject
org.apache.fop.area.Area
org.apache.fop.area.BlockParent
org.apache.fop.area.Block
org.apache.fop.area.BlockViewport
- All Implemented Interfaces:
Serializable, Cloneable, Viewport
-
Field Summary
FieldsFields inherited from class BlockParent
children, xOffset, yOffsetFields inherited from class Area
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, traitsFields inherited from class AreaTreeObject
extensionAttachments, foreignAttributes -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new block viewport area.BlockViewport(boolean allowBPDUpdate) Create a new block viewport area. -
Method Summary
Modifier and TypeMethodDescriptionReturns the clipping rectangle of this viewport area.getCTM()Get the transform of this block viewport.intbooleanhasClip()Returns true if this area will clip overflowing content.voidsetClip(boolean cl) Set the clipping for this viewport.voidSet the transform of this viewport.Methods inherited from class Block
activateEffectiveIPD, addBlock, addBlock, addLineArea, getEndIndent, getLocale, getLocation, getPositioning, getStartIndent, isStacked, setLocale, setLocation, setPositioningMethods inherited from class BlockParent
addChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffsetMethods inherited from class Area
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
clip
private boolean clip -
viewportCTM
-
-
Constructor Details
-
BlockViewport
public BlockViewport()Create a new block viewport area. -
BlockViewport
public BlockViewport(boolean allowBPDUpdate) Create a new block viewport area.- Parameters:
allowBPDUpdate- true allows the BPD to be updated when children are added
-
-
Method Details
-
setCTM
Set the transform of this viewport. If the viewport is rotated or has an absolute positioning this transform will do the work.- Parameters:
ctm- the transformation
-
getCTM
Get the transform of this block viewport.- Returns:
- the transformation of this viewport or null if normally stacked without rotation
-
setClip
public void setClip(boolean cl) Set the clipping for this viewport.- Parameters:
cl- the clipping for the viewport
-
hasClip
-
getClipRectangle
Returns the clipping rectangle of this viewport area.- Specified by:
getClipRectanglein interfaceViewport- Returns:
- the clipping rectangle expressed in the viewport's coordinate system, or null if clipping is disabled
-
getEffectiveIPD
public int getEffectiveIPD()- Overrides:
getEffectiveIPDin classBlock
-