|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.swing.svg.AbstractJSVGComponent.BridgeUserAgent
org.apache.batik.swing.JSVGCanvas.CanvasUserAgent
protected class JSVGCanvas.CanvasUserAgent
The CanvasUserAgent only adds tooltips to the behavior of the default BridgeUserAgent. A tooltip will be displayed wheneven the mouse lingers over an element which has a <title> or a <desc> child element.
Field Summary |
---|
Fields inherited from class org.apache.batik.swing.svg.AbstractJSVGComponent.BridgeUserAgent |
---|
extensions |
Constructor Summary | |
---|---|
protected |
JSVGCanvas.CanvasUserAgent()
|
Method Summary | |
---|---|
void |
displayError(Exception ex)
Displays an error resulting from the specified Exception. |
void |
displayError(String message)
Displays an error message in the User Agent interface. |
Element |
getPeerWithTag(Element parent,
String nameSpaceURI,
String localName)
Checks if there is a peer element of a given type. |
void |
handleElement(Element elt,
Object data)
The handleElement method builds a tool tip from the content of a <title> element, a <desc> element or both. |
boolean |
hasPeerWithTag(Element elt,
String nameSpaceURI,
String localName)
Returns a boolean defining whether or not there is a peer of elt with the given qualified tag. |
void |
removeToolTip(Element elt)
|
protected void |
replace(StringBuffer sb,
char c,
String r)
|
void |
setToolTip(Element elt,
String toolTip)
Sets the tool tip on the input element. |
String |
toFormattedHTML(String str)
Converts line breaks to HTML breaks and encodes special entities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JSVGCanvas.CanvasUserAgent()
Method Detail |
---|
public void handleElement(Element elt, Object data)
handleElement
in interface UserAgent
handleElement
in class AbstractJSVGComponent.BridgeUserAgent
public String toFormattedHTML(String str)
protected void replace(StringBuffer sb, char c, String r)
public Element getPeerWithTag(Element parent, String nameSpaceURI, String localName)
public boolean hasPeerWithTag(Element elt, String nameSpaceURI, String localName)
public void setToolTip(Element elt, String toolTip)
public void removeToolTip(Element elt)
public void displayError(String message)
displayError
in class AbstractJSVGComponent.BridgeUserAgent
public void displayError(Exception ex)
displayError
in interface UserAgent
displayError
in class AbstractJSVGComponent.BridgeUserAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |