org.apache.fop.svg
Class XMLObj
java.lang.Object
|
+--org.apache.fop.fo.FONode
|
+--org.apache.fop.fo.FObj
|
+--org.apache.fop.svg.XMLObj
- Direct Known Subclasses:
- SVGObj
- public abstract class XMLObj
- extends FObj
Since SVG objects are not layed out then this class checks
that this element is not being layed out inside some incorrect
element.
Field Summary |
protected static java.util.Hashtable |
ns
|
protected java.lang.String[] |
props
|
protected java.lang.String |
tagName
|
Fields inherited from class org.apache.fop.fo.FONode |
areaClass, areasGenerated, BREAK_AFTER, bufferManager, children, forcedStartOffset, forcedWidth, isInTableCell, linkSet, marker, markers, orphans, parent, START, widows |
Method Summary |
void |
addGraphic(org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
|
void |
buildTopLevel(org.w3c.dom.Document doc,
org.w3c.dom.Element svgRoot)
|
org.w3c.dom.Document |
createBasicDocument()
|
void |
forceStartOffset(int offset)
|
void |
forceWidth(int width)
|
java.util.Vector |
getMarkerSnapshot(java.util.Vector snapshot)
At the start of a new span area layout may be partway through a
nested FO, and balancing requires rollback to this known point. |
abstract java.lang.String |
getNameSpace()
|
Status |
layout(Area area)
layout this formatting object. |
void |
resetMarker()
|
void |
rollback(java.util.Vector snapshot)
When balancing occurs, the flow layout() method restarts at the
point specified by the current marker snapshot, which is retrieved
and restored using this method. |
void |
setIsInTableCell()
These method overrides prevent problems with the different types. |
void |
setLinkSet(LinkSet linkSet)
|
Methods inherited from class org.apache.fop.fo.FONode |
addChild, addMarker, getBufferManager, getLinkSet, getMarkers, getParent, hasMarkers, removeAreas, setBufferManager, setOrphans, setWidows |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tagName
protected java.lang.String tagName
props
protected java.lang.String[] props
ns
protected static java.util.Hashtable ns
XMLObj
public XMLObj(FObj parent,
PropertyList propertyList)
- Parameters:
parent
- the parent formatting objectpropertyList
- the explicit properties of this object
getNameSpace
public abstract java.lang.String getNameSpace()
addGraphic
public void addGraphic(org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
buildTopLevel
public void buildTopLevel(org.w3c.dom.Document doc,
org.w3c.dom.Element svgRoot)
createBasicDocument
public org.w3c.dom.Document createBasicDocument()
layout
public Status layout(Area area)
throws FOPException
- layout this formatting object.
- Overrides:
layout
in class FObj
- Parameters:
area
- the area to layout the object into- Returns:
- the status of the layout
setIsInTableCell
public void setIsInTableCell()
- These method overrides prevent problems with the different types.
- Overrides:
setIsInTableCell
in class FONode
forceStartOffset
public void forceStartOffset(int offset)
- Overrides:
forceStartOffset
in class FONode
forceWidth
public void forceWidth(int width)
- Overrides:
forceWidth
in class FONode
resetMarker
public void resetMarker()
- Overrides:
resetMarker
in class FONode
setLinkSet
public void setLinkSet(LinkSet linkSet)
- Overrides:
setLinkSet
in class FONode
getMarkerSnapshot
public java.util.Vector getMarkerSnapshot(java.util.Vector snapshot)
- Description copied from class:
FONode
- At the start of a new span area layout may be partway through a
nested FO, and balancing requires rollback to this known point.
The snapshot records exactly where layout is at.
- Overrides:
getMarkerSnapshot
in class FONode
- Following copied from class:
org.apache.fop.fo.FONode
- Parameters:
snapshot
- a Vector of markers (Integer)
rollback
public void rollback(java.util.Vector snapshot)
- Description copied from class:
FONode
- When balancing occurs, the flow layout() method restarts at the
point specified by the current marker snapshot, which is retrieved
and restored using this method.
- Overrides:
rollback
in class FONode
- Following copied from class:
org.apache.fop.fo.FONode
- Parameters:
snapshot
- the Vector of saved markers (Integers)
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.