org.apache.batik.extension.svg
public class BatikFlowTextElementBridge extends SVGTextElementBridge implements BatikExtConstants
Nested Class Summary | |
---|---|
protected class | BatikFlowTextElementBridge.BatikFlowContentBridge
Bridge class for flow text children that contain text. |
static class | BatikFlowTextElementBridge.LineBreakInfo |
Field Summary | |
---|---|
protected static GVTAttributedCharacterIterator.TextAttribute | ANCHOR_TYPE |
static Attribute | FLOW_EMPTY_PARAGRAPH |
static Attribute | FLOW_LINE_BREAK |
static Attribute | FLOW_PARAGRAPH |
static Attribute | FLOW_REGIONS |
protected static GVTAttributedCharacterIterator.TextAttribute | KERNING |
protected static GVTAttributedCharacterIterator.TextAttribute | LETTER_SPACING |
static Attribute | PREFORMATTED |
protected static GVTAttributedCharacterIterator.TextAttribute | TEXTPATH |
protected static GVTAttributedCharacterIterator.TextAttribute | WORD_SPACING |
Constructor Summary | |
---|---|
BatikFlowTextElementBridge()
Constructs a new bridge for the <flowText> element. |
Method Summary | |
---|---|
protected void | addChildGlyphPositionAttributes(AttributedString as, Element element, BridgeContext ctx) |
protected void | addChildPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo parentPI, BridgeContext ctx) |
protected void | addContextToChild(BridgeContext ctx, Element e) |
protected void | addGlyphPositionAttributes(AttributedString as, Element element, BridgeContext ctx)
Adds glyph position attributes to an AttributedString. |
protected void | addPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo parentPI, BridgeContext ctx)
Adds painting attributes to an AttributedString. |
protected AttributedString | buildAttributedString(BridgeContext ctx, Element element)
Creates the attributed string which represents the given text
element children.
|
protected RegionInfo | buildRegion(Context uctx, Element e, float verticalAlignment) |
protected void | checkMap(Map attrs) |
protected void | fillAttributedStringBuffer(BridgeContext ctx, Element element, boolean top, Integer bidiLevel, Map initialAttributes, 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, Map result) |
protected AttributedString | getFlowDiv(BridgeContext ctx, Element element) |
Bridge | getInstance()
Returns a new instance of this bridge. |
String | getLocalName()
Returns 'flowText'. |
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) |
protected GraphicsNode | instantiateGraphicsNode() |
boolean | isComposite()
Returns false as text is not a container. |
MarginInfo | makeMarginInfo(Element e) |
Parameters: ctx the bridge context to use element the text element
Parameters: ctx the bridge context to use e the text element