Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: 
java.lang.Object
  extended by org.apache.batik.bridge.AbstractSVGBridge
      extended by org.apache.batik.bridge.AnimatableSVGBridge
          extended by org.apache.batik.bridge.AbstractGraphicsNodeBridge
              extended by org.apache.batik.bridge.SVGTextElementBridge
                  extended by org.apache.batik.extension.svg.BatikFlowTextElementBridge
All Implemented Interfaces:
Bridge, BridgeUpdateHandler, ErrorConstants, GraphicsNodeBridge, SVGAnimationTargetContext, SVGContext, SVGTextContent, BatikExtConstants, CSSConstants, SVGConstants, XMLConstants

public class BatikFlowTextElementBridge
extends SVGTextElementBridge
implements BatikExtConstants

Bridge class for the <flowText> element.


Constructor Detail

BatikFlowTextElementBridge

public BatikFlowTextElementBridge()
Constructs a new bridge for the <flowText> element.

Method Detail

getNamespaceURI

public String getNamespaceURI()
Returns the SVG namespace URI.

Specified by:
getNamespaceURI in interface Bridge
Overrides:
getNamespaceURI in class AbstractSVGBridge

getLocalName

public String getLocalName()
Returns 'flowText'.

Specified by:
getLocalName in interface Bridge
Overrides:
getLocalName in class SVGTextElementBridge

getInstance

public Bridge getInstance()
Returns a new instance of this bridge.

Specified by:
getInstance in interface Bridge
Specified by:
getInstance in interface GraphicsNodeBridge
Overrides:
getInstance in class SVGTextElementBridge

isComposite

public boolean isComposite()
Returns false as text is not a container.

Specified by:
isComposite in interface GraphicsNodeBridge
Overrides:
isComposite in class SVGTextElementBridge

instantiateGraphicsNode

protected GraphicsNode instantiateGraphicsNode()
Description copied from class: SVGTextElementBridge
Creates the GraphicsNode depending on the GraphicsNodeBridge implementation.

Overrides:
instantiateGraphicsNode in class SVGTextElementBridge

getLocation

protected Point2D getLocation(BridgeContext ctx,
                              Element e)
Returns the text node location In this case the text node may have serveral effective locations (one for each flow region). So it always returns 0,0.

Overrides:
getLocation in class SVGTextElementBridge
Parameters:
ctx - the bridge context to use
e - the text element

addContextToChild

protected void addContextToChild(BridgeContext ctx,
                                 Element e)
Description copied from class: SVGTextElementBridge
Add to the element children of the node, an SVGContext to support dynamic update. This is recursive, the children of the nodes are also traversed to add to the support elements their context

Overrides:
addContextToChild in class SVGTextElementBridge
Parameters:
ctx - a BridgeContext value
e - an Element value
See Also:
SVGContext, BridgeUpdateHandler

buildAttributedString

protected AttributedString buildAttributedString(BridgeContext ctx,
                                                 Element element)
Creates the attributed string which represents the given text element children.

Overrides:
buildAttributedString in class SVGTextElementBridge
Parameters:
ctx - the bridge context to use
element - the text element

addGlyphPositionAttributes

protected void addGlyphPositionAttributes(AttributedString as,
                                          Element element,
                                          BridgeContext ctx)
Adds glyph position attributes to an AttributedString.

Overrides:
addGlyphPositionAttributes in class SVGTextElementBridge

addChildGlyphPositionAttributes

protected void addChildGlyphPositionAttributes(AttributedString as,
                                               Element element,
                                               BridgeContext ctx)
Overrides:
addChildGlyphPositionAttributes in class SVGTextElementBridge

addPaintAttributes

protected void addPaintAttributes(AttributedString as,
                                  Element element,
                                  TextNode node,
                                  TextPaintInfo parentPI,
                                  BridgeContext ctx)
Adds painting attributes to an AttributedString.

Overrides:
addPaintAttributes in class SVGTextElementBridge

addChildPaintAttributes

protected void addChildPaintAttributes(AttributedString as,
                                       Element element,
                                       TextNode node,
                                       TextPaintInfo parentPI,
                                       BridgeContext ctx)
Overrides:
addChildPaintAttributes in class SVGTextElementBridge

getFlowDiv

protected AttributedString getFlowDiv(BridgeContext ctx,
                                      Element element)

gatherFlowPara

protected AttributedString gatherFlowPara(BridgeContext ctx,
                                          Element div)

getRegions

protected List getRegions(BridgeContext ctx,
                          Element element)

gatherRegionInfo

protected void gatherRegionInfo(BridgeContext ctx,
                                Element rgn,
                                float verticalAlign,
                                List regions)

buildRegion

protected RegionInfo buildRegion(UnitProcessor.Context uctx,
                                 Element e,
                                 float verticalAlignment)

fillAttributedStringBuffer

protected void fillAttributedStringBuffer(BridgeContext ctx,
                                          Element element,
                                          boolean top,
                                          Integer bidiLevel,
                                          Map initialAttributes,
                                          SVGTextElementBridge.AttributedStringBuffer asb,
                                          List lnLocs)
Fills the given AttributedStringBuffer.


getAttributeMap

protected Map getAttributeMap(BridgeContext ctx,
                              Element element,
                              TextPath textPath,
                              Integer bidiLevel,
                              Map result)
Description copied from class: SVGTextElementBridge
Returns the map to pass to the current characters.

Overrides:
getAttributeMap in class SVGTextElementBridge
Parameters:
ctx - the BridgeContext to use for throwing exceptions
element - the text element whose attributes are being collected
textPath - the text path that the characters of element will be placed along
bidiLevel - the bidi level of element
result - a Map into which the attributes of element's characters will be stored
Returns:
a new Map that contains the attributes that must be inherited into a child element if the given element has no characters before the child element

checkMap

protected void checkMap(Map attrs)

makeMarginInfo

public MarginInfo makeMarginInfo(Element e)

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: