Package org.apache.fop.area
Class RegionViewport
java.lang.Object
org.apache.fop.area.AreaTreeObject
org.apache.fop.area.Area
org.apache.fop.area.RegionViewport
- All Implemented Interfaces:
Serializable
,Cloneable
,Viewport
Region Viewport area.
This object represents the region-viewport-area. It has a
region-reference-area as its child. These areas are described
in the fo:region-body description in the XSL Recommendation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private RegionReference
private static final long
private Rectangle2D
Fields inherited from class org.apache.fop.area.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, traits
Fields inherited from class org.apache.fop.area.AreaTreeObject
extensionAttachments, foreignAttributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns the clipping rectangle of this viewport area.Get the region-reference-area for this region viewport.Get the view area of this viewport.boolean
hasClip()
Returns true if this area will clip overflowing content.private void
void
setClip
(boolean c) Set the clipping for this region viewport.void
Set the region-reference-area for this region viewport.void
Sets the writing mode traits for the region reference of this region viewportprivate void
Methods inherited from class org.apache.fop.area.Area
activateEffectiveIPD, addChildArea, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getChangeBarList, getEffectiveAllocIPD, getEffectiveIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setChangeBarList, setIPD, setTraits, toString
Methods inherited from class org.apache.fop.area.AreaTreeObject
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
regionReference
-
viewArea
-
clip
private boolean clip
-
-
Constructor Details
-
RegionViewport
Create a new region-viewport-area- Parameters:
viewArea
- the view area of this viewport
-
-
Method Details
-
setRegionReference
Set the region-reference-area for this region viewport.- Parameters:
reg
- the child region-reference-area inside this viewport
-
getRegionReference
Get the region-reference-area for this region viewport.- Returns:
- the child region-reference-area inside this viewport
-
setClip
public void setClip(boolean c) Set the clipping for this region viewport.- Parameters:
c
- the clipping value
-
hasClip
public boolean hasClip()Returns true if this area will clip overflowing content. -
getClipRectangle
Returns the clipping rectangle of this viewport area.- Specified by:
getClipRectangle
in interfaceViewport
- Returns:
- the clipping rectangle expressed in the viewport's coordinate system, or null if clipping is disabled
-
getViewArea
Get the view area of this viewport.- Returns:
- the viewport rectangle area
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
ClassNotFoundException
-
clone
- Overrides:
clone
in classArea
- Throws:
CloneNotSupportedException
-
setWritingModeTraits
Sets the writing mode traits for the region reference of this region viewport- Overrides:
setWritingModeTraits
in classArea
- Parameters:
wmtg
- a WM traits getter
-