Class InlineViewport
java.lang.Object
org.apache.fop.area.AreaTreeObject
org.apache.fop.area.Area
org.apache.fop.area.inline.InlineArea
org.apache.fop.area.inline.InlineViewport
- All Implemented Interfaces:
Serializable, Cloneable, Viewport
Inline viewport area.
This is an inline-level viewport area for inline container,
external graphic and instream foreign object. This viewport
holds the area and positions it.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class InlineArea
InlineArea.InlineAdjustingInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Areaprivate Rectangle2Dprivate static final longFields inherited from class InlineArea
adjustingInfo, blockProgressionOffsetFields 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
ConstructorsConstructorDescriptionInlineViewport(Area child) Create a new viewport area with the content area.InlineViewport(Area child, int bidiLevel) Create a new viewport area with the content area. -
Method Summary
Modifier and TypeMethodDescriptionReturns the clipping rectangle of this viewport area.Get the content area for this viewport.Get the position and size of the content of this viewport.intbooleanhasClip()Returns true if this area will clip overflowing content.private voidvoidsetClip(boolean c) Set the clip of this viewport.voidsetContent(Area content) Sets the content area.voidSet the position and size of the content of this viewport.private voidMethods inherited from class InlineArea
addChildArea, applyVariationFactor, collectInlineRuns, getAdjustingInfo, getBlockProgressionOffset, getParentArea, getVirtualBPD, getVirtualOffset, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isAncestor, isAncestorOrSelf, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustingInfo, setAdjustment, setBlockProgressionOffset, setParentAreaMethods inherited from class Area
activateEffectiveIPD, 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 -
contentPosition
-
-
Constructor Details
-
InlineViewport
Create a new viewport area with the content area.- Parameters:
child- the child content area of this viewport
-
InlineViewport
Create a new viewport area with the content area.- Parameters:
child- the child content area of this viewportbidiLevel- the bidirectional embedding level (or -1 if not defined)
-
-
Method Details
-
setClip
public void setClip(boolean c) Set the clip of this viewport.- Parameters:
c- true if this viewport should clip
-
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
-
setContentPosition
Set the position and size of the content of this viewport.- Parameters:
cp- the position and size to place the content
-
getContentPosition
Get the position and size of the content of this viewport.- Returns:
- the position and size to place the content
-
setContent
-
getContent
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOExceptionClassNotFoundException
-
getEffectiveIPD
public int getEffectiveIPD()- Overrides:
getEffectiveIPDin classArea
-