|
|||||||||||
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 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 |
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 AttributedString |
buildAttributedString(BridgeContext ctx,
Element element)
Creates the attributed string which represents the given text element children. |
protected void |
checkMap(Map attrs)
|
protected void |
computeLaidoutText(BridgeContext ctx,
Element e,
GraphicsNode node)
Recompute the layout of the <text> node. |
protected void |
dumpACIWord(AttributedString as)
|
protected void |
fillAttributedStringBuffer(BridgeContext ctx,
Element element,
boolean top,
Integer bidiLevel,
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)
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)
|
protected void |
initCSSPropertyIndexes(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(Element e)
|
protected boolean |
isTextElement(Element e)
|
BlockInfo |
makeBlockInfo(BridgeContext ctx,
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 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 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 String getNamespaceURI()
getNamespaceURI
in interface Bridge
getNamespaceURI
in class AbstractSVGBridge
public 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 Point2D getLocation(BridgeContext ctx, Element e)
getLocation
in class SVGTextElementBridge
ctx
- the bridge context to usee
- the text elementprotected boolean isTextElement(Element e)
isTextElement
in class SVGTextElementBridge
protected boolean isTextChild(Element e)
isTextChild
in class SVGTextElementBridge
protected void computeLaidoutText(BridgeContext ctx, Element e, GraphicsNode node)
SVGTextElementBridge
laidoutText
with the new
value.
computeLaidoutText
in class SVGTextElementBridge
protected AttributedString buildAttributedString(BridgeContext ctx, Element element)
buildAttributedString
in class SVGTextElementBridge
ctx
- the bridge context to useelement
- the text elementprotected void dumpACIWord(AttributedString as)
protected Element getFlowDivElement(Element elem)
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 void fillAttributedStringBuffer(BridgeContext ctx, Element element, boolean top, Integer bidiLevel, SVGTextElementBridge.AttributedStringBuffer asb, List lnLocs)
protected Map getAttributeMap(BridgeContext ctx, Element element, TextPath textPath, Integer bidiLevel)
getAttributeMap
in class SVGTextElementBridge
protected void checkMap(Map attrs)
protected void initCSSPropertyIndexes(Element e)
public BlockInfo makeBlockInfo(BridgeContext ctx, Element element)
protected float getLineHeight(BridgeContext ctx, Element element, float fontSize)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |