org.apache.batik.bridge.svg12
public class SVGFlowRootElementBridge extends SVG12TextElementBridge
Nested Class Summary | |
---|---|
protected class | SVGFlowRootElementBridge.FlowContentBridge
Bridge class for flow text children that contain text. |
protected class | SVGFlowRootElementBridge.RegionChangeListener
svg:shapechange listener for flowRegion elements. |
Field Summary | |
---|---|
static GVTAttributedCharacterIterator.TextAttribute | ANCHOR_TYPE |
protected Map | flowRegionNodes
Map of flowRegion elements to their graphics nodes. |
static Attribute | FLOW_EMPTY_PARAGRAPH |
static Attribute | FLOW_LINE_BREAK |
static Attribute | FLOW_PARAGRAPH |
static Attribute | FLOW_REGIONS |
static GVTAttributedCharacterIterator.TextAttribute | KERNING |
static GVTAttributedCharacterIterator.TextAttribute | LETTER_SPACING |
static Attribute | LINE_HEIGHT |
protected SVGFlowRootElementBridge.RegionChangeListener | regionChangeListener
Listener for flowRegion changes. |
protected int | startLen |
protected TextNode | textNode |
static GVTAttributedCharacterIterator.TextAttribute | TEXTPATH |
static GVTAttributedCharacterIterator.TextAttribute | WORD_SPACING |
Constructor Summary | |
---|---|
SVGFlowRootElementBridge()
Constructs a new bridge for the <flowRoot> element. |
Method Summary | |
---|---|
protected void | addContextToChild(BridgeContext ctx, Element e)
Add to the element children of the node, a
SVGContext to support dynamic update. |
protected AttributedString | buildAttributedString(BridgeContext ctx, Element element)
Creates the attributed string which represents the given text
element children.
|
void | buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
Builds using the specified BridgeContext and element, the
specified graphics node.
|
protected void | checkMap(Map attrs) |
protected void | computeLaidoutText(BridgeContext ctx, Element e, GraphicsNode node) |
GraphicsNode | createGraphicsNode(BridgeContext ctx, Element e)
Creates a GraphicsNode according to the specified parameters.
|
protected void | dumpACIWord(AttributedString as) |
protected void | fillAttributedStringBuffer(BridgeContext ctx, Element element, boolean top, Integer bidiLevel, AttributedStringBuffer asb, List lnLocs)
Fills the given AttributedStringBuffer. |
protected AttributedString | gatherFlowPara(BridgeContext ctx, Element div) |
protected void | gatherRegionInfo(BridgeContext ctx, Element rgn, float verticalAlign, List regions) |
protected Map | getAttributeMap(BridgeContext ctx, Element element, TextPath textPath, Integer bidiLevel)
Returns the map to pass to the current characters. |
protected AttributedString | getFlowDiv(BridgeContext ctx, Element element) |
protected Element | getFlowDivElement(Element elem) |
Bridge | getInstance()
Returns a new instance of this bridge. |
protected float | getLineHeight(BridgeContext ctx, Element element, float fontSize) |
String | getLocalName()
Returns 'flowRoot'. |
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).
|
String | getNamespaceURI()
Returns the SVG namespace URI. |
protected List | getRegions(BridgeContext ctx, Element element)
Returns a list of Shapes that define the flow regions. |
protected TextNode | getTextNode() |
protected void | initCSSPropertyIndexes(Element e) |
protected GraphicsNode | instantiateGraphicsNode()
Creates the graphics node for this element. |
boolean | isComposite()
Returns false as text is not a container. |
protected boolean | isTextChild(Element e) |
protected boolean | isTextElement(Element e) |
BlockInfo | makeBlockInfo(BridgeContext ctx, Element element) |
SVGContext
to support dynamic update. This is
recursive, the children of the nodes are also traversed to add
to the support elements their context
Parameters: ctx a BridgeContext
value e an Element
value
See Also: SVGContext BridgeUpdateHandler
Parameters: ctx the bridge context to use element the text element
Parameters: ctx the bridge context to use e the element that describes the graphics node to build node the graphics node to build
Parameters: ctx the bridge context to use e the element that describes the graphics node to build
Returns: a graphics node that represents the specified element
Parameters: ctx the bridge context to use e the text element