org.apache.fop.area

Class BlockViewport

Implemented Interfaces:
Serializable

public class BlockViewport
extends Block

A BlockViewport. This is used for block level Viewport/reference pairs. The block-container creates this area.

Field Summary

Fields inherited from class org.apache.fop.area.Block

ABSOLUTE, FIXED, RELATIVE, STACK

Fields inherited from class org.apache.fop.area.BlockParent

children, xOffset, yOffset

Fields inherited from class org.apache.fop.area.Area

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

Fields inherited from class org.apache.fop.area.AreaTreeObject

foreignAttributes

Constructor Summary

BlockViewport()
Create a new block viewport area.

Method Summary

CTM
getCTM()
Get the transform of this block viewport.
boolean
getClip()
Get the clipping for this viewport.
void
setCTM(CTM ctm)
Set the transform of this viewport.
void
setClip(boolean cl)
Set the clipping for this viewport.

Methods inherited from class org.apache.fop.area.Block

addBlock, addBlock, addLineArea, getPositioning, getStartIndent, setPositioning

Methods inherited from class org.apache.fop.area.BlockParent

addBlock, addChildArea, getChildAreas, getXOffset, getYOffset, isEmpty, setXOffset, setYOffset

Methods inherited from class org.apache.fop.area.Area

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

Methods inherited from class org.apache.fop.area.AreaTreeObject

getForeignAttributeValue, getForeignAttributes, setForeignAttribute, setForeignAttributes

Constructor Details

BlockViewport

public BlockViewport()
Create a new block viewport area.

Method Details

getCTM

public CTM getCTM()
Get the transform of this block viewport.
Returns:
the transformation of this viewport or null if normally stacked without rotation

getClip

public boolean getClip()
Get the clipping for this viewport.
Returns:
the clipping for the viewport true if the contents should be clipped for this viewport

setCTM

public void setCTM(CTM ctm)
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

setClip

public void setClip(boolean cl)
Set the clipping for this viewport.
Parameters:
cl - the clipping for the viewport

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.