org.apache.fop.fo
Class XMLObj
java.lang.Object
|
+--org.apache.fop.fo.FONode
|
+--org.apache.fop.fo.FObj
|
+--org.apache.fop.fo.XMLObj
- Direct Known Subclasses:
- SVGObj, UnknownXMLObj, XMLElement
- 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 org.w3c.dom.Document |
doc
|
protected org.w3c.dom.Element |
element
|
protected static java.util.Hashtable |
ns
|
protected java.lang.String |
tagName
|
Fields inherited from class org.apache.fop.fo.FONode |
areaClass, areasGenerated, BREAK_AFTER, bufferManager, children, forcedStartOffset, forcedWidth, isInTableCell, linkSet, log, marker, markers, orphans, parent, START, widows |
Method Summary |
protected void |
addCharacters(char[] data,
int start,
int length)
adds characters (does nothing here) |
protected void |
addChild(FONode child)
|
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 |
removeID(IDReferences idReferences)
removes property id |
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)
|
protected void |
setWritingMode()
Set writing mode for this FO.
|
Methods inherited from class org.apache.fop.fo.FONode |
addMarker, getBufferManager, getLinkSet, getMarkers, getParent, hasMarkers, removeAreas, setBufferManager, setLogger, 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
element
protected org.w3c.dom.Element element
doc
protected org.w3c.dom.Document doc
ns
protected static java.util.Hashtable ns
XMLObj
public XMLObj(FObj parent,
PropertyList propertyList,
java.lang.String tag)
- 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()
addChild
protected void addChild(FONode child)
- Overrides:
addChild
in class FONode
addCharacters
protected void addCharacters(char[] data,
int start,
int length)
- Description copied from class:
FObj
- adds characters (does nothing here)
- Overrides:
addCharacters
in class FObj
- Following copied from class:
org.apache.fop.fo.FObj
- Parameters:
data
- textstart
- start positionlength
- length of the text
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
removeID
public void removeID(IDReferences idReferences)
- Description copied from class:
FObj
- removes property id
- Overrides:
removeID
in class FObj
- Following copied from class:
org.apache.fop.fo.FObj
- Parameters:
idReferences
- the id to remove
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)
setWritingMode
protected void setWritingMode()
- Description copied from class:
FObj
- Set writing mode for this FO.
Find nearest ancestor, including self, which generates
reference areas and use the value of its writing-mode property.
If no such ancestor is found, use the value on the root FO.
- Overrides:
setWritingMode
in class FObj
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.