Java Doc for SVGTextElementBridge.java in  » Graphic-Library » batik » org » apache » batik » bridge » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » batik » org.apache.batik.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.bridge.AbstractSVGBridge
      org.apache.batik.bridge.AnimatableSVGBridge
         org.apache.batik.bridge.AbstractGraphicsNodeBridge
            org.apache.batik.bridge.SVGTextElementBridge

All known Subclasses:   org.apache.batik.bridge.svg12.SVG12TextElementBridge,  org.apache.batik.extension.svg.BatikFlowTextElementBridge,
SVGTextElementBridge
public class SVGTextElementBridge extends AbstractGraphicsNodeBridge implements SVGTextContent(Code)
Bridge class for the <text> element.
author:
   Stephane Hillion
author:
   Bill Haneman
version:
   $Id: SVGTextElementBridge.java 516914 2007-03-11 14:53:18Z dvholten $

Inner Class :protected class DOMChildNodeRemovedEventListener implements EventListener
Inner Class :protected class DOMSubtreeModifiedEventListener implements EventListener
Inner Class :protected static class AttributedStringBuffer
Inner Class :abstract public class AbstractTextChildSVGContext extends AnimatableSVGBridge
Inner Class :abstract protected class AbstractTextChildBridgeUpdateHandler extends AbstractTextChildSVGContext implements BridgeUpdateHandler
Inner Class :protected class AbstractTextChildTextContent extends AbstractTextChildBridgeUpdateHandler implements SVGTextContent
Inner Class :protected class TRefBridge extends AbstractTextChildTextContent
Inner Class :protected class TextPathBridge extends AbstractTextChildTextContent
Inner Class :protected class TspanBridge extends AbstractTextChildTextContent
Inner Class :protected static class CharacterInformation

Field Summary
final public static  AttributedCharacterIterator.AttributeALT_GLYPH_HANDLER
    
final public static  AttributedCharacterIterator.AttributeANCHOR_TYPE
    
final public static  AttributedCharacterIterator.AttributeBASELINE_SHIFT
    
final public static  AttributedCharacterIterator.AttributeGVT_FONTS
    
final public static  AttributedCharacterIterator.AttributeGVT_FONT_FAMILIES
    
final public static  AttributedCharacterIterator.AttributePAINT_INFO
    
final public static  AttributedCharacterIterator.AttributeTEXTPATH
    
final public static  AttributedCharacterIterator.AttributeTEXT_COMPOUND_DELIMITER
    
final public static  AttributedCharacterIterator.AttributeTEXT_COMPOUND_ID
    
final protected static  IntegerZERO
    
protected  DOMChildNodeRemovedEventListenerchildNodeRemovedEventListener
     The DOM EventListener to receive 'DOMNodeRemoved' event.
protected  WeakHashMapelemTPI
    
protected  intendLimit
     This is used to store the end of the last piece of text content from an element with xml:space="preserve".
protected  AttributedStringlaidoutText
    
protected  DOMSubtreeModifiedEventListenersubtreeModifiedEventListener
     The DOM EventListener to receive 'DOMSubtreeModified' event.
protected  booleanusingComplexSVGFont
    

Constructor Summary
public  SVGTextElementBridge()
     Constructs a new bridge for the <text> element.

Method Summary
protected  voidaddChildGlyphPositionAttributes(AttributedString as, Element element, BridgeContext ctx)
    
protected  voidaddChildPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo parentPI, BridgeContext ctx)
    
protected  voidaddContextToChild(BridgeContext ctx, Element e)
     Add to the element children of the node, a SVGContext to support dynamic update.
protected  voidaddGlyphPositionAttributes(AttributedString as, Element element, BridgeContext ctx)
     Adds glyph position attributes to an AttributedString.
protected  voidaddPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo pi, BridgeContext ctx)
     Adds painting attributes to an AttributedString.
protected  voidaddTextEventListeners(BridgeContext ctx, NodeEventTarget e)
     Adds the DOM listeners for this text bridge.
protected  AttributedStringbuildAttributedString(BridgeContext ctx, Element element)
     Creates the attributed string which represents the given text element children.
public  voidbuildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
     Builds using the specified BridgeContext and element, the specified graphics node.
protected  voidcomputeLaidoutText(BridgeContext ctx, Element e, GraphicsNode node)
     Recompute the layout of the <text> node. Assign onto the TextNode pending to the element the new recomputed AttributedString.
public  GraphicsNodecreateGraphicsNode(BridgeContext ctx, Element e)
     Creates a GraphicsNode according to the specified parameters.
protected  floatdistanceBetweenRun(CharacterInformation last, CharacterInformation first)
    
protected  floatdistanceFirstLastCharacterInRun(CharacterInformation first, CharacterInformation last)
    
protected  voidfillAttributedStringBuffer(BridgeContext ctx, Element element, boolean top, TextPath textPath, Integer bidiLevel, AttributedStringBuffer asb)
     Fills the given AttributedStringBuffer.
protected  MapgetAttributeMap(BridgeContext ctx, Element element, TextPath textPath, Integer bidiLevel)
     Returns the map to pass to the current characters.
public  intgetCharNumAtPosition(float x, float y)
    
protected  intgetCharNumAtPosition(Element e, float x, float y)
    
protected  CharacterInformationgetCharacterInformation(List list, int startIndex, int charnum, AttributedCharacterIterator aci)
     Retrieve the information about a character of en element.
public  floatgetComputedTextLength()
    
protected  floatgetComputedTextLength(Element e)
     Implementation of org.w3c.dom.svg.SVGTextContentElement.getComputedTextLength .
 intgetElementEndIndex(Element element)
    
 intgetElementStartIndex(Element element)
    
protected  Point2DgetEndPoint(CharacterInformation info)
    
public  Point2DgetEndPositionOfChar(int charnum)
    
protected  Point2DgetEndPositionOfChar(Element element, int charnum)
     Implementation of org.w3c.dom.svg.SVGTextContentElement.getEndPositionOfChar(int charnum) .
public  Rectangle2DgetExtentOfChar(int charnum)
    
protected  Rectangle2DgetExtentOfChar(Element element, int charnum)
     Implementation of org.w3c.dom.svg.SVGTextContentElement.getExtentOfChar(int charnum) .
protected  NodegetFirstChild(Node n)
     Returns the first child node of the given node that should be processed by the text bridge.
protected  ListgetFontList(BridgeContext ctx, Element element, Map result)
     This method adds all the font related properties to result It also builds a List of the GVTFonts and returns it.
public  BridgegetInstance()
     Returns a new instance of this bridge.
public  StringgetLocalName()
     Returns 'text'.
protected  Point2DgetLocation(BridgeContext ctx, Element e)
     Returns the text node location according to the 'x' and 'y' attributes of the specified text element.
protected  NodegetNextSibling(Node n)
     Returns the next sibling node of the given node that should be processed by the text bridge.
public  intgetNumberOfChars()
    
protected  intgetNumberOfChars(Element element)
     Implementation of org.w3c.dom.svg.SVGTextContentElement.getNumberOfChars .
protected  NodegetParentNode(Node n)
     Returns the parent node of the given node that should be processed by the text bridge.
protected  TextPaintInfogetParentTextPaintInfo(Element child)
     Retrieve in the AttributeString the closest parent of the node 'child' and extract the text decorations of the parent.
public  floatgetRotationOfChar(int charnum)
    
protected  floatgetRotationOfChar(Element element, int charnum)
     Implementation of org.w3c.dom.svg.SVGTextContentElement.getRotationOfChar(int charnum) .
protected  Point2DgetStartPoint(CharacterInformation info)
    
public  Point2DgetStartPositionOfChar(int charnum)
    
protected  Point2DgetStartPositionOfChar(Element element, int charnum)
     Implementation of org.w3c.dom.svg.SVGTextContentElement.getStartPositionOfChar(int charnum) .
public  floatgetSubStringLength(int charnum, int nchars)
    
protected  floatgetSubStringLength(Element element, int charnum, int nchars)
     Implementation of org.w3c.dom.svg.SVGTextContentElement.getSubStringLength(int charnumint nchars) .
public static  Rectangle2DgetTextBounds(BridgeContext ctx, Element elem, boolean checkSensitivity)
    
public  SetgetTextEnclosureSet(AffineTransform at, Rectangle2D rect)
    
public static  booleangetTextIntersection(BridgeContext ctx, Element elem, AffineTransform ati, Rectangle2D rect, boolean checkSensitivity)
    
public  SetgetTextIntersectionSet(AffineTransform at, Rectangle2D rect)
    
protected  TextNodegetTextNode()
    
protected  TextPaintInfogetTextPaintInfo(Element element, GraphicsNode node, TextPaintInfo parentTPI, BridgeContext ctx)
     Constructs a TextDecoration object for the specified element.
protected  ListgetTextRuns(TextNode node)
     Retrieve the list of layout for the text node.
public  voidhandleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
     Invoked when the animated value of an animatable attribute has changed.
public  voidhandleCSSEngineEvent(CSSEngineEvent evt)
     Invoked when CSS properties have changed on an element.
protected  voidhandleCSSPropertyChanged(int property)
     Invoked for each CSS property that has changed.
public  voidhandleDOMCharacterDataModified(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMCharacterDataModified' is fired.
public  voidhandleDOMChildNodeRemovedEvent(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMNodeRemoved' is fired.
public  voidhandleDOMNodeInsertedEvent(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.
public  voidhandleDOMNodeRemovedEvent(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMNodeRemoved' is fired.
public  voidhandleDOMSubtreeModifiedEvent(MutationEvent evt)
     Invoked when an MutationEvent of type 'DOMSubtree' is fired.
protected  voidinitializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node)
     This method ensures that any modification to a text element and its children is going to be reflected into the GVT tree.
protected  GraphicsNodeinstantiateGraphicsNode()
     Creates the GraphicsNode depending on the GraphicsNodeBridge implementation.
public  booleanisComposite()
     Returns false as text is not a container.
protected  booleanisParentDisplayed(Node childNode)
     Indicate of the parent of a node is a displayed element.
protected  booleanisTextChild(Element e)
    
protected  booleanisTextElement(Element e)
    
public static  booleanisTextSensitive(Element e)
    
protected  booleannodeAncestorOf(Node node1, Node node2)
    
protected  StringnormalizeString(String s, boolean preserve, boolean stripfirst)
     Normalizes the given string.
protected  voidrebuildACI()
    
protected  voidremoveTextEventListeners(BridgeContext ctx, NodeEventTarget e)
     Removes the DOM listeners for this text bridge.
public  voidselectSubString(int charnum, int nchars)
    
protected  voidselectSubString(Element element, int charnum, int nchars)
     Select an ensemble of characters for that element.
public  voidsetBaseTextPaintInfo(TextPaintInfo pi, Element element, GraphicsNode node, BridgeContext ctx)
    
public  voidsetDecorationTextPaintInfo(TextPaintInfo pi, Element element)
    

Field Detail
ALT_GLYPH_HANDLER
final public static AttributedCharacterIterator.Attribute ALT_GLYPH_HANDLER(Code)



ANCHOR_TYPE
final public static AttributedCharacterIterator.Attribute ANCHOR_TYPE(Code)



BASELINE_SHIFT
final public static AttributedCharacterIterator.Attribute BASELINE_SHIFT(Code)



GVT_FONTS
final public static AttributedCharacterIterator.Attribute GVT_FONTS(Code)



GVT_FONT_FAMILIES
final public static AttributedCharacterIterator.Attribute GVT_FONT_FAMILIES(Code)



PAINT_INFO
final public static AttributedCharacterIterator.Attribute PAINT_INFO(Code)



TEXTPATH
final public static AttributedCharacterIterator.Attribute TEXTPATH(Code)



TEXT_COMPOUND_DELIMITER
final public static AttributedCharacterIterator.Attribute TEXT_COMPOUND_DELIMITER(Code)



TEXT_COMPOUND_ID
final public static AttributedCharacterIterator.Attribute TEXT_COMPOUND_ID(Code)



ZERO
final protected static Integer ZERO(Code)



childNodeRemovedEventListener
protected DOMChildNodeRemovedEventListener childNodeRemovedEventListener(Code)
The DOM EventListener to receive 'DOMNodeRemoved' event.



elemTPI
protected WeakHashMap elemTPI(Code)



endLimit
protected int endLimit(Code)
This is used to store the end of the last piece of text content from an element with xml:space="preserve". When we are stripping trailing spaces we need to make sure we don't strip anything before this point.



laidoutText
protected AttributedString laidoutText(Code)



subtreeModifiedEventListener
protected DOMSubtreeModifiedEventListener subtreeModifiedEventListener(Code)
The DOM EventListener to receive 'DOMSubtreeModified' event.



usingComplexSVGFont
protected boolean usingComplexSVGFont(Code)




Constructor Detail
SVGTextElementBridge
public SVGTextElementBridge()(Code)
Constructs a new bridge for the <text> element.




Method Detail
addChildGlyphPositionAttributes
protected void addChildGlyphPositionAttributes(AttributedString as, Element element, BridgeContext ctx)(Code)



addChildPaintAttributes
protected void addChildPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo parentPI, BridgeContext ctx)(Code)



addContextToChild
protected void addContextToChild(BridgeContext ctx, Element e)(Code)
Add to the element children of the node, a SVGContext to support dynamic update. This is recursive, the children of the nodes are also traversed to add to the support elements their context
Parameters:
  ctx - a BridgeContext value
Parameters:
  e - an Element value
See Also:   org.apache.batik.dom.svg.SVGContext
See Also:   org.apache.batik.bridge.BridgeUpdateHandler



addGlyphPositionAttributes
protected void addGlyphPositionAttributes(AttributedString as, Element element, BridgeContext ctx)(Code)
Adds glyph position attributes to an AttributedString.



addPaintAttributes
protected void addPaintAttributes(AttributedString as, Element element, TextNode node, TextPaintInfo pi, BridgeContext ctx)(Code)
Adds painting attributes to an AttributedString.



addTextEventListeners
protected void addTextEventListeners(BridgeContext ctx, NodeEventTarget e)(Code)
Adds the DOM listeners for this text bridge.



buildAttributedString
protected AttributedString buildAttributedString(BridgeContext ctx, Element element)(Code)
Creates the attributed string which represents the given text element children.
Parameters:
  ctx - the bridge context to use
Parameters:
  element - the text element



buildGraphicsNode
public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)(Code)
Builds using the specified BridgeContext and element, the specified graphics node.
Parameters:
  ctx - the bridge context to use
Parameters:
  e - the element that describes the graphics node to build
Parameters:
  node - the graphics node to build



computeLaidoutText
protected void computeLaidoutText(BridgeContext ctx, Element e, GraphicsNode node)(Code)
Recompute the layout of the <text> node. Assign onto the TextNode pending to the element the new recomputed AttributedString. Also update laidoutText with the new value.



createGraphicsNode
public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e)(Code)
Creates a GraphicsNode according to the specified parameters.
Parameters:
  ctx - the bridge context to use
Parameters:
  e - the element that describes the graphics node to build a graphics node that represents the specified element



distanceBetweenRun
protected float distanceBetweenRun(CharacterInformation last, CharacterInformation first)(Code)



distanceFirstLastCharacterInRun
protected float distanceFirstLastCharacterInRun(CharacterInformation first, CharacterInformation last)(Code)



fillAttributedStringBuffer
protected void fillAttributedStringBuffer(BridgeContext ctx, Element element, boolean top, TextPath textPath, Integer bidiLevel, AttributedStringBuffer asb)(Code)
Fills the given AttributedStringBuffer.



getAttributeMap
protected Map getAttributeMap(BridgeContext ctx, Element element, TextPath textPath, Integer bidiLevel)(Code)
Returns the map to pass to the current characters.



getCharNumAtPosition
public int getCharNumAtPosition(float x, float y)(Code)



getCharNumAtPosition
protected int getCharNumAtPosition(Element e, float x, float y)(Code)



getCharacterInformation
protected CharacterInformation getCharacterInformation(List list, int startIndex, int charnum, AttributedCharacterIterator aci)(Code)
Retrieve the information about a character of en element. The element first character in the ACI is 'firstChar' and the character look for is the charnum th character in the element
Parameters:
  list - list of the layouts
Parameters:
  startIndex - index in the ACI of the firstcharacter for the element
Parameters:
  charnum - index of the character (among thecharacters of the element) looked for. information about the glyph representing thecharacter



getComputedTextLength
public float getComputedTextLength()(Code)



getComputedTextLength
protected float getComputedTextLength(Element e)(Code)
Implementation of org.w3c.dom.svg.SVGTextContentElement.getComputedTextLength .



getElementEndIndex
int getElementEndIndex(Element element)(Code)



getElementStartIndex
int getElementStartIndex(Element element)(Code)



getEndPoint
protected Point2D getEndPoint(CharacterInformation info)(Code)



getEndPositionOfChar
public Point2D getEndPositionOfChar(int charnum)(Code)



getEndPositionOfChar
protected Point2D getEndPositionOfChar(Element element, int charnum)(Code)
Implementation of org.w3c.dom.svg.SVGTextContentElement.getEndPositionOfChar(int charnum) .



getExtentOfChar
public Rectangle2D getExtentOfChar(int charnum)(Code)



getExtentOfChar
protected Rectangle2D getExtentOfChar(Element element, int charnum)(Code)
Implementation of org.w3c.dom.svg.SVGTextContentElement.getExtentOfChar(int charnum) .



getFirstChild
protected Node getFirstChild(Node n)(Code)
Returns the first child node of the given node that should be processed by the text bridge.



getFontList
protected List getFontList(BridgeContext ctx, Element element, Map result)(Code)
This method adds all the font related properties to result It also builds a List of the GVTFonts and returns it.



getInstance
public Bridge getInstance()(Code)
Returns a new instance of this bridge.



getLocalName
public String getLocalName()(Code)
Returns 'text'.



getLocation
protected Point2D getLocation(BridgeContext ctx, Element e)(Code)
Returns the text node location according to the 'x' and 'y' attributes of the specified text element.
Parameters:
  ctx - the bridge context to use
Parameters:
  e - the text element



getNextSibling
protected Node getNextSibling(Node n)(Code)
Returns the next sibling node of the given node that should be processed by the text bridge.



getNumberOfChars
public int getNumberOfChars()(Code)



getNumberOfChars
protected int getNumberOfChars(Element element)(Code)
Implementation of org.w3c.dom.svg.SVGTextContentElement.getNumberOfChars .



getParentNode
protected Node getParentNode(Node n)(Code)
Returns the parent node of the given node that should be processed by the text bridge.



getParentTextPaintInfo
protected TextPaintInfo getParentTextPaintInfo(Element child)(Code)
Retrieve in the AttributeString the closest parent of the node 'child' and extract the text decorations of the parent.
Parameters:
  child - an Element value a TextDecoration value



getRotationOfChar
public float getRotationOfChar(int charnum)(Code)



getRotationOfChar
protected float getRotationOfChar(Element element, int charnum)(Code)
Implementation of org.w3c.dom.svg.SVGTextContentElement.getRotationOfChar(int charnum) .



getStartPoint
protected Point2D getStartPoint(CharacterInformation info)(Code)



getStartPositionOfChar
public Point2D getStartPositionOfChar(int charnum)(Code)



getStartPositionOfChar
protected Point2D getStartPositionOfChar(Element element, int charnum)(Code)
Implementation of org.w3c.dom.svg.SVGTextContentElement.getStartPositionOfChar(int charnum) .



getSubStringLength
public float getSubStringLength(int charnum, int nchars)(Code)



getSubStringLength
protected float getSubStringLength(Element element, int charnum, int nchars)(Code)
Implementation of org.w3c.dom.svg.SVGTextContentElement.getSubStringLength(int charnumint nchars) .



getTextBounds
public static Rectangle2D getTextBounds(BridgeContext ctx, Element elem, boolean checkSensitivity)(Code)



getTextEnclosureSet
public Set getTextEnclosureSet(AffineTransform at, Rectangle2D rect)(Code)



getTextIntersection
public static boolean getTextIntersection(BridgeContext ctx, Element elem, AffineTransform ati, Rectangle2D rect, boolean checkSensitivity)(Code)



getTextIntersectionSet
public Set getTextIntersectionSet(AffineTransform at, Rectangle2D rect)(Code)



getTextNode
protected TextNode getTextNode()(Code)



getTextPaintInfo
protected TextPaintInfo getTextPaintInfo(Element element, GraphicsNode node, TextPaintInfo parentTPI, BridgeContext ctx)(Code)
Constructs a TextDecoration object for the specified element. This will contain all of the decoration properties to be used when drawing the text.



getTextRuns
protected List getTextRuns(TextNode node)(Code)
Retrieve the list of layout for the text node.



handleAnimatedAttributeChanged
public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)(Code)
Invoked when the animated value of an animatable attribute has changed.



handleCSSEngineEvent
public void handleCSSEngineEvent(CSSEngineEvent evt)(Code)
Invoked when CSS properties have changed on an element.
Parameters:
  evt - the CSSEngine event that describes the update



handleCSSPropertyChanged
protected void handleCSSPropertyChanged(int property)(Code)
Invoked for each CSS property that has changed.



handleDOMCharacterDataModified
public void handleDOMCharacterDataModified(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMCharacterDataModified' is fired.



handleDOMChildNodeRemovedEvent
public void handleDOMChildNodeRemovedEvent(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMNodeRemoved' is fired.



handleDOMNodeInsertedEvent
public void handleDOMNodeInsertedEvent(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMNodeInserted' is fired.



handleDOMNodeRemovedEvent
public void handleDOMNodeRemovedEvent(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMNodeRemoved' is fired.



handleDOMSubtreeModifiedEvent
public void handleDOMSubtreeModifiedEvent(MutationEvent evt)(Code)
Invoked when an MutationEvent of type 'DOMSubtree' is fired.



initializeDynamicSupport
protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node)(Code)
This method ensures that any modification to a text element and its children is going to be reflected into the GVT tree.



instantiateGraphicsNode
protected GraphicsNode instantiateGraphicsNode()(Code)
Creates the GraphicsNode depending on the GraphicsNodeBridge implementation.



isComposite
public boolean isComposite()(Code)
Returns false as text is not a container.



isParentDisplayed
protected boolean isParentDisplayed(Node childNode)(Code)
Indicate of the parent of a node is a displayed element. <title>, <desc> and <metadata> are non displayable elements. true if the parent of the node is <text>,<tspan>, <tref>, <textPath>, <a>,<altGlyph>



isTextChild
protected boolean isTextChild(Element e)(Code)



isTextElement
protected boolean isTextElement(Element e)(Code)



isTextSensitive
public static boolean isTextSensitive(Element e)(Code)



nodeAncestorOf
protected boolean nodeAncestorOf(Node node1, Node node2)(Code)
Returns true if node1 is an ancestor of node2



normalizeString
protected String normalizeString(String s, boolean preserve, boolean stripfirst)(Code)
Normalizes the given string.



rebuildACI
protected void rebuildACI()(Code)



removeTextEventListeners
protected void removeTextEventListeners(BridgeContext ctx, NodeEventTarget e)(Code)
Removes the DOM listeners for this text bridge.



selectSubString
public void selectSubString(int charnum, int nchars)(Code)



selectSubString
protected void selectSubString(Element element, int charnum, int nchars)(Code)
Select an ensemble of characters for that element. TODO : report the selection to the selection manager in JSVGComponent.



setBaseTextPaintInfo
public void setBaseTextPaintInfo(TextPaintInfo pi, Element element, GraphicsNode node, BridgeContext ctx)(Code)



setDecorationTextPaintInfo
public void setDecorationTextPaintInfo(TextPaintInfo pi, Element element)(Code)



Fields inherited from org.apache.batik.bridge.AbstractGraphicsNodeBridge
protected Rectangle2D bbox(Code)(Java Doc)
protected SoftReference bboxShape(Code)(Java Doc)
protected boolean isSVG12(Code)(Java Doc)
protected GraphicsNode node(Code)(Java Doc)
protected UnitProcessor.Context unitContext(Code)(Java Doc)

Methods inherited from org.apache.batik.bridge.AbstractGraphicsNodeBridge
protected void associateSVGContext(BridgeContext ctx, Element e, GraphicsNode node)(Code)(Java Doc)
public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)(Code)(Java Doc)
protected void checkBBoxChange()(Code)(Java Doc)
protected AffineTransform computeTransform(SVGTransformable te, BridgeContext ctx)(Code)(Java Doc)
public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void disposeTree(Node node)(Code)(Java Doc)
protected void disposeTree(Node node, boolean removeContext)(Code)(Java Doc)
protected void fireBBoxChangeEvent()(Code)(Java Doc)
protected void fireShapeChangeEvent()(Code)(Java Doc)
public Rectangle2D getBBox()(Code)(Java Doc)
public AffineTransform getCTM()(Code)(Java Doc)
public boolean getDisplay(Element e)(Code)(Java Doc)
public float getFontSize()(Code)(Java Doc)
public AffineTransform getGlobalTransform()(Code)(Java Doc)
public float getPixelToMM()(Code)(Java Doc)
public float getPixelUnitToMillimeter()(Code)(Java Doc)
public AffineTransform getScreenTransform()(Code)(Java Doc)
public float getViewportHeight()(Code)(Java Doc)
public float getViewportWidth()(Code)(Java Doc)
public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)(Code)(Java Doc)
public void handleCSSEngineEvent(CSSEngineEvent evt)(Code)(Java Doc)
protected void handleCSSPropertyChanged(int property)(Code)(Java Doc)
public void handleDOMAttrModifiedEvent(MutationEvent evt)(Code)(Java Doc)
public void handleDOMCharacterDataModified(MutationEvent evt)(Code)(Java Doc)
public void handleDOMNodeInsertedEvent(MutationEvent evt)(Code)(Java Doc)
public void handleDOMNodeRemovedEvent(MutationEvent evt)(Code)(Java Doc)
protected void handleGeometryChanged()(Code)(Java Doc)
public void handleOtherAnimationChanged(String type)(Code)(Java Doc)
protected void initializeDynamicSupport(BridgeContext ctx, Element e, GraphicsNode node)(Code)(Java Doc)
abstract protected GraphicsNode instantiateGraphicsNode()(Code)(Java Doc)
public void setScreenTransform(AffineTransform at)(Code)(Java Doc)
protected void setTransform(GraphicsNode n, Element e, BridgeContext ctx)(Code)(Java Doc)

Fields inherited from org.apache.batik.bridge.AnimatableSVGBridge
protected BridgeContext ctx(Code)(Java Doc)
protected Element e(Code)(Java Doc)
protected HashMap targetListeners(Code)(Java Doc)

Methods inherited from org.apache.batik.bridge.AnimatableSVGBridge
public void addTargetListener(String pn, AnimationTargetListener l)(Code)(Java Doc)
protected void fireBaseAttributeListeners(String pn)(Code)(Java Doc)
public void removeTargetListener(String pn, AnimationTargetListener l)(Code)(Java Doc)

Methods inherited from org.apache.batik.bridge.AbstractSVGBridge
public Bridge getInstance()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.