|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.refimpl.bridge.SVGTextElementBridge
A factory for the <text> SVG element.
Field Summary | |
protected static java.util.Map |
fonts
|
Constructor Summary | |
SVGTextElementBridge()
|
Method Summary | |
protected java.text.AttributedString |
buildAttributedString(BridgeContext ctx,
Element element,
GraphicsNode node)
Creates the attributed string which represent the given text element children. |
protected java.util.List |
buildAttributedStrings(BridgeContext ctx,
Element element,
GraphicsNode node,
boolean top)
Creates the attributed strings which represent the given text element children. |
void |
buildGraphicsNode(GraphicsNode node,
BridgeContext ctx,
Element element)
Builds the specified GraphicsNode using the specified context and element. |
protected java.text.AttributedString |
createAttributedString(java.lang.String s,
java.util.Map m,
boolean preserve,
boolean top,
boolean first,
boolean last)
Creates an attributes string from the content of the given string. |
GraphicsNode |
createGraphicsNode(BridgeContext ctx,
Element element)
Creates a GraphicsNode using the specified context and element. |
protected java.util.Map |
getAttributeMap(BridgeContext ctx,
Element element,
GraphicsNode node)
Returns the map to pass to the current characters. |
protected java.lang.String |
getElementContent(Element e)
Returns the content of the given element. |
boolean |
isContainer()
Returns true if this bridge is a container, false otherwise. |
void |
update(BridgeMutationEvent evt)
Updates an Element coresponding to the specified BridgeMutationEvent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.util.Map fonts
Constructor Detail |
public SVGTextElementBridge()
Method Detail |
public GraphicsNode createGraphicsNode(BridgeContext ctx, Element element)
GraphicsNodeBridge
createGraphicsNode
in interface GraphicsNodeBridge
org.apache.batik.bridge.GraphicsNodeBridge
ctx
- the context to useelem
- the Element that describes the GraphicsNode to buildpublic void buildGraphicsNode(GraphicsNode node, BridgeContext ctx, Element element)
GraphicsNodeBridge
buildGraphicsNode
in interface GraphicsNodeBridge
org.apache.batik.bridge.GraphicsNodeBridge
node
- the node to buildctx
- the context to useelem
- the Element that describes the GraphicsNode to buildpublic void update(BridgeMutationEvent evt)
GraphicsNodeBridge
update
in interface GraphicsNodeBridge
org.apache.batik.bridge.GraphicsNodeBridge
evt
- the event that describes the modification to performpublic boolean isContainer()
GraphicsNodeBridge
isContainer
in interface GraphicsNodeBridge
protected java.text.AttributedString buildAttributedString(BridgeContext ctx, Element element, GraphicsNode node)
protected java.util.List buildAttributedStrings(BridgeContext ctx, Element element, GraphicsNode node, boolean top)
protected java.lang.String getElementContent(Element e)
protected java.text.AttributedString createAttributedString(java.lang.String s, java.util.Map m, boolean preserve, boolean top, boolean first, boolean last)
protected java.util.Map getAttributeMap(BridgeContext ctx, Element element, GraphicsNode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |