org.apache.fop.layout.inline
Class ForeignObjectArea

java.lang.Object
  extended byorg.apache.fop.layout.Box
      extended byorg.apache.fop.layout.Area
          extended byorg.apache.fop.layout.inline.InlineArea
              extended byorg.apache.fop.layout.inline.ForeignObjectArea

public class ForeignObjectArea
extends InlineArea


Field Summary
protected  int aheight
           
protected  int align
           
protected  int awidth
           
protected  int cheight
           
protected  int cwidth
           
protected  Area foreignObject
           
protected  int scaling
           
protected  int valign
           
protected  int width
           
protected  int xOffset
           
 
Fields inherited from class org.apache.fop.layout.inline.InlineArea
height, lineThrough, overlined, underlined
 
Fields inherited from class org.apache.fop.layout.Area
allocationWidth, areaClass, background, bp, children, contentRectangleWidth, currentHeight, foCreator, fontState, generatedBy, isFirst, isLast, maxHeight, page, tableCellXOffset
 
Fields inherited from class org.apache.fop.layout.Box
areaTree, parent
 
Constructor Summary
ForeignObjectArea(FontState fontState, int width)
           
 
Method Summary
 int getAlign()
           
 int getContentHeight()
          Returns content height of the area.
 int getContentWidth()
          This is NOT the content width of the instream-foreign-object.
 int getEffectiveHeight()
           
 int getEffectiveWidth()
           
 int getHeight()
          This is NOT the content height of the instream-foreign-object.
 int getIntrinsicHeight()
           
 int getIntrinsicWidth()
           
 Area getObject()
           
 int getOverflow()
           
 int getVerticalAlign()
           
 int getXOffset()
           
 boolean isContentHeightAuto()
           
 boolean isContentWidthAuto()
           
 void render(Renderer renderer)
           
 int scalingMethod()
           
 void setAlign(int align)
           
 void setContentHeight(int cheight)
           
 void setContentSizeAuto(boolean wa, boolean ha)
           
 void setContentWidth(int cwidth)
           
 void setHeight(int height)
          Set the content height to the passed value if that value is larger than current content height.
 void setIntrinsicHeight(int h)
           
 void setIntrinsicWidth(int w)
           
 void setObject(Area fobject)
           
 void setOverflow(int o)
           
 void setScaling(int scaling)
           
 void setSizeAuto(boolean wa, boolean ha)
           
 void setStartIndent(int startIndent)
           
 void setVerticalAlign(int align)
           
 void setWidth(int width)
           
 
Methods inherited from class org.apache.fop.layout.inline.InlineArea
getBlue, getGreen, getLineThrough, getOverlined, getRed, getUnderlined, getYOffset, setLineThrough, setOverlined, setUnderlined, setXOffset, setYOffset
 
Methods inherited from class org.apache.fop.layout.Area
addChild, addChildAtStart, addDisplaySpace, addInlineSpace, end, getAbsoluteHeight, getAllocationWidth, getBackground, getBorderAndPadding, getBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getChildren, getfoCreator, getFontInfo, getFontState, getGeneratedBy, getIDReferences, getMaxHeight, getNearestAncestorAreaContainer, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPage, getParent, getTableCellXOffset, hasChildren, hasNonSpaceChildren, increaseHeight, isFirst, isFirst, isLast, isLast, remove, removeChild, removeChild, setAbsoluteHeight, setAllocationWidth, setBackground, setBorderAndPadding, setGeneratedBy, setIDReferences, setMaxHeight, setPage, setParent, setTableCellXOffset, spaceLeft, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xOffset

protected int xOffset

align

protected int align

valign

protected int valign

scaling

protected int scaling

foreignObject

protected Area foreignObject

cheight

protected int cheight

cwidth

protected int cwidth

awidth

protected int awidth

aheight

protected int aheight

width

protected int width
Constructor Detail

ForeignObjectArea

public ForeignObjectArea(FontState fontState,
                         int width)
Method Detail

render

public void render(Renderer renderer)
Specified by:
render in class Box

getContentWidth

public int getContentWidth()
This is NOT the content width of the instream-foreign-object. This is the content width for a Box.

Overrides:
getContentWidth in class Area

getHeight

public int getHeight()
This is NOT the content height of the instream-foreign-object. This is the content height for a Box.

Overrides:
getHeight in class InlineArea

getContentHeight

public int getContentHeight()
Description copied from class: Area
Returns content height of the area.

Overrides:
getContentHeight in class Area
Returns:
Content height in millipoints

getXOffset

public int getXOffset()
Overrides:
getXOffset in class InlineArea

setStartIndent

public void setStartIndent(int startIndent)

setObject

public void setObject(Area fobject)

getObject

public Area getObject()

setSizeAuto

public void setSizeAuto(boolean wa,
                        boolean ha)

setContentSizeAuto

public void setContentSizeAuto(boolean wa,
                               boolean ha)

isContentWidthAuto

public boolean isContentWidthAuto()

isContentHeightAuto

public boolean isContentHeightAuto()

setAlign

public void setAlign(int align)

getAlign

public int getAlign()

setVerticalAlign

public void setVerticalAlign(int align)
Overrides:
setVerticalAlign in class InlineArea

getVerticalAlign

public int getVerticalAlign()
Overrides:
getVerticalAlign in class InlineArea

setOverflow

public void setOverflow(int o)

getOverflow

public int getOverflow()

setHeight

public void setHeight(int height)
Description copied from class: Area
Set the content height to the passed value if that value is larger than current content height. If the new content height is greater than the maximum available height, set the content height to the max. available (!!!)

Overrides:
setHeight in class InlineArea

setWidth

public void setWidth(int width)

setContentHeight

public void setContentHeight(int cheight)

setContentWidth

public void setContentWidth(int cwidth)

setScaling

public void setScaling(int scaling)

scalingMethod

public int scalingMethod()

setIntrinsicWidth

public void setIntrinsicWidth(int w)

setIntrinsicHeight

public void setIntrinsicHeight(int h)

getIntrinsicHeight

public int getIntrinsicHeight()

getIntrinsicWidth

public int getIntrinsicWidth()

getEffectiveHeight

public int getEffectiveHeight()

getEffectiveWidth

public int getEffectiveWidth()


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.