org.apache.fop.area.inline
Class Viewport
- Serializable
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.
BT , CLASS_ABSOLUTE , CLASS_BEFORE_FLOAT , CLASS_FIXED , CLASS_FOOTNOTE , CLASS_MAX , CLASS_NORMAL , CLASS_SIDE_FLOAT , LR , ORIENT_0 , ORIENT_180 , ORIENT_270 , ORIENT_90 , RL , TB , bpd , ipd , log , props |
Viewport(Area child) - Create a new viewport area with the content area.
|
boolean | getClip() - Get the clip of this viewport.
|
Area | getContent() - Get the content area for this viewport.
|
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(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 |
addChildArea , addTrait , addTrait , getAllocBPD , getAllocIPD , getAreaClass , getBPD , getBooleanTrait , getBorderAndPaddingWidthAfter , getBorderAndPaddingWidthBefore , getBorderAndPaddingWidthEnd , getBorderAndPaddingWidthStart , getIPD , getSpaceAfter , getSpaceBefore , getSpaceEnd , getSpaceStart , getTrait , getTraitAsInteger , getTraits , hasTrait , hasTraits , setAreaClass , setBPD , setIPD , toString |
Viewport
public Viewport(Area child)
Create a new viewport area with the content area.
child
- the child content area of this viewport
getClip
public boolean getClip()
Get the clip of this viewport.
- true if this viewport should clip
getContent
public Area getContent()
Get the content area for this viewport.
getContentPosition
public Rectangle2D getContentPosition()
Get the position and size of the content of this viewport.
- the position and size to place the content
setClip
public void setClip(boolean c)
Set the clip of this viewport.
c
- true if this viewport should clip
setContent
public void setContent(Area content)
Sets the content area.
content
- the content area
setContentPosition
public void setContentPosition(Rectangle2D cp)
Set the position and size of the content of this viewport.
cp
- the position and size to place the content
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.