org.apache.fop.svg
Class SVGObj

java.lang.Object
  |
  +--org.apache.fop.fo.FONode
        |
        +--org.apache.fop.fo.FObj
              |
              +--org.apache.fop.svg.SVGObj
Direct Known Subclasses:
A, AltGlyph, AltGlyphDef, AltGlyphItem, Animate, AnimateColor, AnimateMotion, AnimateTransform, Circle, ClipPath, ColorProfile, Cursor, DefinitionSrc, Defs, Desc, Ellipse, FeBlend, FeColorMatrix, FeComponentTransfer, FeComposite, FeConvolveMatrix, FeDiffuseLighting, FeDisplacementMap, FeDistantLight, FeFlood, FeFuncA, FeFuncB, FeFuncG, FeFuncR, FeGaussianBlur, FeImage, FeMerge, FeMergeNode, FeMorphology, FeOffset, FePointLight, FeSpecularLighting, FeSpotLight, FeTile, FeTurbulence, Filter, Font, FontFace, FontFaceFormat, FontFaceName, FontFaceSrc, FontFaceUri, ForeignObject, G, Glyph, GlyphRef, Hkern, Image, Line, LinearGradient, Marker, Mask, Metadata, MissingGlyph, Mpath, Path, Pattern, Polygon, Polyline, RadialGradient, Rect, Script, Set, Stop, Style, Svg, Switch, Symbol, Text, TextPath, Title, Tref, Tspan, Use, View, Vkern

public abstract class SVGObj
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.


Inner classes inherited from class org.apache.fop.fo.FObj
FObj.Maker
 
Field Summary
protected static java.util.Hashtable ns
           
 
Fields inherited from class org.apache.fop.fo.FObj
name, properties, propMgr
 
Fields inherited from class org.apache.fop.fo.FONode
BREAK_AFTER, bufferManager, children, forcedStartOffset, forcedWidth, isInTableCell, linkSet, marker, orphans, parent, START, widows
 
Constructor Summary
SVGObj(FObj parent, PropertyList propertyList)
           
 
Method Summary
 void addGraphic(org.w3c.dom.Document doc, org.w3c.dom.Element parent)
           
 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.
 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.FObj
addCharacters, end, generatesReferenceAreas, getContentWidth, getName, getProperty, makePropertyManager, maker, removeID, start
 
Methods inherited from class org.apache.fop.fo.FONode
addChild, getBufferManager, getLinkSet, getParent, removeAreas, setBufferManager, setOrphans, setWidows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ns

protected static java.util.Hashtable ns
Constructor Detail

SVGObj

public SVGObj(FObj parent,
              PropertyList propertyList)
Parameters:
parent - the parent formatting object
propertyList - the explicit properties of this object
Method Detail

addGraphic

public void addGraphic(org.w3c.dom.Document doc,
                       org.w3c.dom.Element parent)

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
Tags copied from class: 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
Tags copied from class: FONode
Parameters:
snapshot - the Vector of saved markers (Integers)


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.