|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.bridge.AbstractSVGBridge
org.apache.batik.bridge.AnimatableSVGBridge
org.apache.batik.bridge.AbstractGraphicsNodeBridge
org.apache.batik.bridge.SVGTextElementBridge
org.apache.batik.extension.svg.BatikFlowTextElementBridge
public class BatikFlowTextElementBridge
Bridge class for the <flowText> element.
| 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 AttributedCharacterIterator.Attribute |
FLOW_EMPTY_PARAGRAPH
|
static AttributedCharacterIterator.Attribute |
FLOW_LINE_BREAK
|
static AttributedCharacterIterator.Attribute |
FLOW_PARAGRAPH
|
static AttributedCharacterIterator.Attribute |
FLOW_REGIONS
|
protected static GVTAttributedCharacterIterator.TextAttribute |
KERNING
|
protected static GVTAttributedCharacterIterator.TextAttribute |
LETTER_SPACING
|
static AttributedCharacterIterator.Attribute |
PREFORMATTED
|
protected static GVTAttributedCharacterIterator.TextAttribute |
TEXTPATH
|
protected static GVTAttributedCharacterIterator.TextAttribute |
WORD_SPACING
|
| Fields inherited from class org.apache.batik.bridge.SVGTextElementBridge |
|---|
ALT_GLYPH_HANDLER, BASELINE_SHIFT, childNodeRemovedEventListener, elemTPI, endLimit, GVT_FONT_FAMILIES, GVT_FONTS, laidoutText, PAINT_INFO, subtreeModifiedEventListener, TEXT_COMPOUND_DELIMITER, TEXT_COMPOUND_ID, usingComplexSVGFont, ZERO |
| Fields inherited from class org.apache.batik.bridge.AbstractGraphicsNodeBridge |
|---|
bbox, bboxShape, isSVG12, node, unitContext |
| Fields inherited from class org.apache.batik.bridge.AnimatableSVGBridge |
|---|
ctx, e, targetListeners |
| Fields inherited from interface org.apache.batik.dom.svg.SVGContext |
|---|
PERCENTAGE_FONT_SIZE, PERCENTAGE_VIEWPORT_HEIGHT, PERCENTAGE_VIEWPORT_SIZE, PERCENTAGE_VIEWPORT_WIDTH |
| Fields inherited from interface org.apache.batik.bridge.ErrorConstants |
|---|
ERR_ATTRIBUTE_MISSING, ERR_ATTRIBUTE_VALUE_MALFORMED, ERR_CSS_LENGTH_NEGATIVE, ERR_CSS_URI_BAD_TARGET, ERR_LENGTH_NEGATIVE, ERR_URI_BAD_TARGET, ERR_URI_IMAGE_BROKEN, ERR_URI_IMAGE_INVALID, ERR_URI_IO, ERR_URI_MALFORMED, ERR_URI_REFERENCE_A_DOCUMENT, ERR_URI_UNSECURE, ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES, URI_IMAGE_ERROR |
| 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(UnitProcessor.Context uctx,
Element e,
float verticalAlignment)
|
protected void |
checkMap(Map attrs)
|
protected void |
fillAttributedStringBuffer(BridgeContext ctx,
Element element,
boolean top,
Integer bidiLevel,
Map initialAttributes,
SVGTextElementBridge.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)
|
| Methods inherited from class org.apache.batik.bridge.AnimatableSVGBridge |
|---|
addTargetListener, fireBaseAttributeListeners, removeTargetListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AttributedCharacterIterator.Attribute FLOW_PARAGRAPH
public static final AttributedCharacterIterator.Attribute FLOW_EMPTY_PARAGRAPH
public static final AttributedCharacterIterator.Attribute FLOW_LINE_BREAK
public static final AttributedCharacterIterator.Attribute FLOW_REGIONS
public static final AttributedCharacterIterator.Attribute PREFORMATTED
protected static final GVTAttributedCharacterIterator.TextAttribute TEXTPATH
protected static final GVTAttributedCharacterIterator.TextAttribute ANCHOR_TYPE
protected static final GVTAttributedCharacterIterator.TextAttribute LETTER_SPACING
protected static final GVTAttributedCharacterIterator.TextAttribute WORD_SPACING
protected static final GVTAttributedCharacterIterator.TextAttribute KERNING
| Constructor Detail |
|---|
public BatikFlowTextElementBridge()
| Method Detail |
|---|
public String getNamespaceURI()
getNamespaceURI in interface BridgegetNamespaceURI in class AbstractSVGBridgepublic String getLocalName()
getLocalName in interface BridgegetLocalName in class SVGTextElementBridgepublic Bridge getInstance()
getInstance in interface BridgegetInstance in interface GraphicsNodeBridgegetInstance in class SVGTextElementBridgepublic boolean isComposite()
isComposite in interface GraphicsNodeBridgeisComposite in class SVGTextElementBridgeprotected GraphicsNode instantiateGraphicsNode()
instantiateGraphicsNode in class SVGTextElementBridge
protected Point2D getLocation(BridgeContext ctx,
Element e)
getLocation in class SVGTextElementBridgectx - the bridge context to usee - the text element
protected void addContextToChild(BridgeContext ctx,
Element e)
addContextToChild in class SVGTextElementBridge
protected AttributedString buildAttributedString(BridgeContext ctx,
Element element)
buildAttributedString in class SVGTextElementBridgectx - the bridge context to useelement - the text element
protected void addGlyphPositionAttributes(AttributedString as,
Element element,
BridgeContext ctx)
addGlyphPositionAttributes in class SVGTextElementBridge
protected void addChildGlyphPositionAttributes(AttributedString as,
Element element,
BridgeContext ctx)
addChildGlyphPositionAttributes in class SVGTextElementBridge
protected void addPaintAttributes(AttributedString as,
Element element,
TextNode node,
TextPaintInfo parentPI,
BridgeContext ctx)
addPaintAttributes in class SVGTextElementBridge
protected void addChildPaintAttributes(AttributedString as,
Element element,
TextNode node,
TextPaintInfo parentPI,
BridgeContext ctx)
addChildPaintAttributes in class SVGTextElementBridge
protected AttributedString getFlowDiv(BridgeContext ctx,
Element element)
protected AttributedString gatherFlowPara(BridgeContext ctx,
Element div)
protected List getRegions(BridgeContext ctx,
Element element)
protected void gatherRegionInfo(BridgeContext ctx,
Element rgn,
float verticalAlign,
List regions)
protected RegionInfo buildRegion(UnitProcessor.Context uctx,
Element e,
float verticalAlignment)
protected void fillAttributedStringBuffer(BridgeContext ctx,
Element element,
boolean top,
Integer bidiLevel,
Map initialAttributes,
SVGTextElementBridge.AttributedStringBuffer asb,
List lnLocs)
protected Map getAttributeMap(BridgeContext ctx,
Element element,
TextPath textPath,
Integer bidiLevel,
Map result)
getAttributeMap in class SVGTextElementBridgeprotected void checkMap(Map attrs)
public MarginInfo makeMarginInfo(Element e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||