public class Viewport extends InlineArea
InlineArea.InlineAdjustingInfo
adjustingInfo, offset
bpd, BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, props, RL, TB
extensionAttachments, foreignAttributes
Constructor and Description |
---|
Viewport(Area child)
Create a new viewport area with the content area.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getClip()
Get the clip of this viewport.
|
Area |
getContent()
Get the content area for this viewport.
|
java.awt.geom.Rectangle2D |
getContentPosition()
Get the position and size of the content of this viewport.
|
void |
setClip(boolean c)
Set the clip of this viewport.
|
void |
setContent(Area content)
Sets the content area.
|
void |
setContentPosition(java.awt.geom.Rectangle2D cp)
Set the position and size of the content of this viewport.
|
addChildArea, applyVariationFactor, getAdjustingInfo, getOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustment, setOffset, setParentArea
addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toString
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public Viewport(Area child)
child
- the child content area of this viewportpublic void setClip(boolean c)
c
- true if this viewport should clippublic boolean getClip()
public void setContentPosition(java.awt.geom.Rectangle2D cp)
cp
- the position and size to place the contentpublic java.awt.geom.Rectangle2D getContentPosition()
public void setContent(Area content)
content
- the content areapublic Area getContent()
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.