|
|||||||||||
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.AbstractGraphicsNodeBridge
org.apache.batik.bridge.SVGTextElementBridge
org.apache.batik.bridge.svg12.SVGFlowRootElementBridge
Bridge class for the <flowRoot> element.
Nested Class Summary |
Field Summary | |
protected static GVTAttributedCharacterIterator.TextAttribute |
ANCHOR_TYPE
|
static java.text.AttributedCharacterIterator.Attribute |
FLOW_EMPTY_PARAGRAPH
|
static java.text.AttributedCharacterIterator.Attribute |
FLOW_LINE_BREAK
|
static java.text.AttributedCharacterIterator.Attribute |
FLOW_PARAGRAPH
|
static java.text.AttributedCharacterIterator.Attribute |
FLOW_REGIONS
|
protected static GVTAttributedCharacterIterator.TextAttribute |
KERNING
|
protected static GVTAttributedCharacterIterator.TextAttribute |
LETTER_SPACING
|
static java.text.AttributedCharacterIterator.Attribute |
LINE_HEIGHT
|
protected int |
startLen
|
protected static GVTAttributedCharacterIterator.TextAttribute |
TEXTPATH
|
protected static GVTAttributedCharacterIterator.TextAttribute |
WORD_SPACING
|
Fields inherited from class org.apache.batik.bridge.SVGTextElementBridge |
ALT_GLYPH_HANDLER, childNodeRemovedEventListener, elemTPI, endLimit, laidoutText, PAINT_INFO, subtreeModifiedEventListener, TEXT_COMPOUND_DELIMITER, usingComplexSVGFont, ZERO |
Fields inherited from class org.apache.batik.bridge.AbstractGraphicsNodeBridge |
bbox, bboxShape, ctx, e, node |
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_INVALID, ERR_URI_IO, ERR_URI_MALFORMED, ERR_URI_REFERENCE_A_DOCUMENT, ERR_URI_UNSECURE, ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES, MSG_BROKEN_LINK_TITLE |
Constructor Summary | |
SVGFlowRootElementBridge()
Constructs a new bridge for the <flowRoot> element. |
Method Summary | |
protected java.text.AttributedString |
buildAttributedString(BridgeContext ctx,
org.w3c.dom.Element element)
Creates the attributed string which represents the given text element children. |
protected void |
checkMap(java.util.Map attrs)
|
protected void |
computeLaidoutText(BridgeContext ctx,
org.w3c.dom.Element e,
GraphicsNode node)
Recompute the layout of the <text> node. |
protected void |
dumpACIWord(java.text.AttributedString as)
|
protected void |
fillAttributedStringBuffer(BridgeContext ctx,
org.w3c.dom.Element element,
boolean top,
java.lang.Integer bidiLevel,
SVGTextElementBridge.AttributedStringBuffer asb,
java.util.List lnLocs)
Fills the given AttributedStringBuffer. |
protected java.text.AttributedString |
gatherFlowPara(BridgeContext ctx,
org.w3c.dom.Element div)
|
protected void |
gatherRegionInfo(BridgeContext ctx,
org.w3c.dom.Element rgn,
float verticalAlign,
java.util.List regions)
|
protected java.util.Map |
getAttributeMap(BridgeContext ctx,
org.w3c.dom.Element element,
TextPath textPath,
java.lang.Integer bidiLevel)
Returns the map to pass to the current characters. |
protected java.text.AttributedString |
getFlowDiv(BridgeContext ctx,
org.w3c.dom.Element element)
|
protected org.w3c.dom.Element |
getFlowDivElement(org.w3c.dom.Element elem)
|
Bridge |
getInstance()
Returns a new instance of this bridge. |
protected float |
getLineHeight(BridgeContext ctx,
org.w3c.dom.Element element,
float fontSize)
|
java.lang.String |
getLocalName()
Returns 'flowRoot'. |
protected java.awt.geom.Point2D |
getLocation(BridgeContext ctx,
org.w3c.dom.Element e)
Returns the text node location In this case the text node may have serveral effective locations (one for each flow region). |
java.lang.String |
getNamespaceURI()
Returns the SVG namespace URI. |
protected java.util.List |
getRegions(BridgeContext ctx,
org.w3c.dom.Element element)
|
protected void |
initCSSPropertyIndexes(org.w3c.dom.Element e)
|
protected GraphicsNode |
instantiateGraphicsNode()
Creates the GraphicsNode depending on the GraphicsNodeBridge implementation. |
boolean |
isComposite()
Returns false as text is not a container. |
protected boolean |
isTextChild(org.w3c.dom.Element e)
|
protected boolean |
isTextElement(org.w3c.dom.Element e)
|
BlockInfo |
makeBlockInfo(BridgeContext ctx,
org.w3c.dom.Element element)
|
Methods inherited from class org.apache.batik.bridge.AbstractGraphicsNodeBridge |
dispose, getBBox, getCTM, getDisplay, getFontSize, getGlobalTransform, getPixelToMM, getPixelUnitToMillimeter, getScreenTransform, getViewportHeight, getViewportWidth, handleGeometryChanged, setScreenTransform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.text.AttributedCharacterIterator.Attribute FLOW_PARAGRAPH
public static final java.text.AttributedCharacterIterator.Attribute FLOW_EMPTY_PARAGRAPH
public static final java.text.AttributedCharacterIterator.Attribute FLOW_LINE_BREAK
public static final java.text.AttributedCharacterIterator.Attribute FLOW_REGIONS
public static final java.text.AttributedCharacterIterator.Attribute LINE_HEIGHT
protected int startLen
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 SVGFlowRootElementBridge()
Method Detail |
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface Bridge
getNamespaceURI
in class AbstractSVGBridge
public java.lang.String getLocalName()
getLocalName
in interface Bridge
getLocalName
in class SVGTextElementBridge
public Bridge getInstance()
getInstance
in interface GraphicsNodeBridge
getInstance
in class SVGTextElementBridge
public boolean isComposite()
isComposite
in interface GraphicsNodeBridge
isComposite
in class SVGTextElementBridge
protected GraphicsNode instantiateGraphicsNode()
SVGTextElementBridge
instantiateGraphicsNode
in class SVGTextElementBridge
protected java.awt.geom.Point2D getLocation(BridgeContext ctx, org.w3c.dom.Element e)
getLocation
in class SVGTextElementBridge
ctx
- the bridge context to usee
- the text elementprotected boolean isTextElement(org.w3c.dom.Element e)
isTextElement
in class SVGTextElementBridge
protected boolean isTextChild(org.w3c.dom.Element e)
isTextChild
in class SVGTextElementBridge
protected void computeLaidoutText(BridgeContext ctx, org.w3c.dom.Element e, GraphicsNode node)
SVGTextElementBridge
laidoutText
with the new
value.
computeLaidoutText
in class SVGTextElementBridge
protected java.text.AttributedString buildAttributedString(BridgeContext ctx, org.w3c.dom.Element element)
buildAttributedString
in class SVGTextElementBridge
ctx
- the bridge context to useelement
- the text elementprotected void dumpACIWord(java.text.AttributedString as)
protected org.w3c.dom.Element getFlowDivElement(org.w3c.dom.Element elem)
protected java.text.AttributedString getFlowDiv(BridgeContext ctx, org.w3c.dom.Element element)
protected java.text.AttributedString gatherFlowPara(BridgeContext ctx, org.w3c.dom.Element div)
protected java.util.List getRegions(BridgeContext ctx, org.w3c.dom.Element element)
protected void gatherRegionInfo(BridgeContext ctx, org.w3c.dom.Element rgn, float verticalAlign, java.util.List regions)
protected void fillAttributedStringBuffer(BridgeContext ctx, org.w3c.dom.Element element, boolean top, java.lang.Integer bidiLevel, SVGTextElementBridge.AttributedStringBuffer asb, java.util.List lnLocs)
protected java.util.Map getAttributeMap(BridgeContext ctx, org.w3c.dom.Element element, TextPath textPath, java.lang.Integer bidiLevel)
getAttributeMap
in class SVGTextElementBridge
protected void checkMap(java.util.Map attrs)
protected void initCSSPropertyIndexes(org.w3c.dom.Element e)
public BlockInfo makeBlockInfo(BridgeContext ctx, org.w3c.dom.Element element)
protected float getLineHeight(BridgeContext ctx, org.w3c.dom.Element element, float fontSize)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |