|
||||||||||
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.AnimatableSVGBridge
org.apache.batik.bridge.AbstractGraphicsNodeBridge
org.apache.batik.bridge.SVGGElementBridge
org.apache.batik.bridge.SVGSVGElementBridge
public class SVGSVGElementBridge
Bridge class for the <svg> element.
Nested Class Summary | |
---|---|
static class |
SVGSVGElementBridge.SVGSVGElementViewport
A viewport defined an <svg> element. |
Field Summary |
---|
Fields inherited from class org.apache.batik.bridge.AbstractGraphicsNodeBridge |
---|
bbox, bboxShape, isSVG12, node, unitContext |
Fields inherited from class org.apache.batik.bridge.AnimatableSVGBridge |
---|
ctx, e, targetListeners |
Fields inherited from interface org.apache.batik.dom.svg.SVGContext |
---|
PERCENTAGE_FONT_SIZE, PERCENTAGE_VIEWPORT_HEIGHT, PERCENTAGE_VIEWPORT_SIZE, PERCENTAGE_VIEWPORT_WIDTH |
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_BROKEN, ERR_URI_IMAGE_INVALID, ERR_URI_IO, ERR_URI_MALFORMED, ERR_URI_REFERENCE_A_DOCUMENT, ERR_URI_UNSECURE, ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES, URI_IMAGE_ERROR |
Constructor Summary | |
---|---|
SVGSVGElementBridge()
Constructs a new bridge for the <svg> element. |
Method Summary | |
---|---|
boolean |
animationsPaused()
Returns whether animations are currently paused. |
void |
buildGraphicsNode(BridgeContext ctx,
Element e,
GraphicsNode node)
Builds using the specified BridgeContext and element, the specified graphics node. |
boolean |
checkEnclosure(Element element,
org.w3c.dom.svg.SVGRect svgRect)
Returns true if the given DOM element is enclosed in the svgRect. |
boolean |
checkIntersection(Element element,
org.w3c.dom.svg.SVGRect svgRect)
Returns true if the given DOM element intersects svgRect. |
GraphicsNode |
createGraphicsNode(BridgeContext ctx,
Element e)
Creates a GraphicsNode according to the specified parameters. |
void |
deselectAll()
Used to inform the user agent that the text selection should be cleared. |
void |
dispose()
Disposes this BridgeUpdateHandler and releases all resources. |
boolean |
filterChildren(Element curr,
Element end,
Set elems,
List ret)
|
void |
forceRedraw()
Forces an immediate redraw of the canvas. |
protected Set |
getAncestors(Element end,
Element base)
|
float |
getCurrentTime()
Returns the current document time. |
List |
getEnclosureList(org.w3c.dom.svg.SVGRect svgRect,
Element end)
Returns a List of all the DOM elements that are encosed in svgRect that are below end in the rendering order. |
Bridge |
getInstance()
Returns a new instance of this bridge. |
List |
getIntersectionList(org.w3c.dom.svg.SVGRect svgRect,
Element end)
Returns a List of all the DOM elements that intersect svgRect that are below end in the rendering order. |
String |
getLocalName()
Returns 'svg'. |
protected Element |
getNext(Element curr,
Element base,
Element end)
|
void |
handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
Invoked when the animated value of an animatable attribute has changed. |
void |
handleDOMAttrModifiedEvent(MutationEvent evt)
Invoked when an MutationEvent of type 'DOMAttrModified' is fired. |
protected GraphicsNode |
instantiateGraphicsNode()
Creates a CompositeGraphicsNode. |
void |
pauseAnimations()
Pauses animations in the document. |
void |
setCurrentTime(float t)
Sets the current document time. |
int |
suspendRedraw(int max_wait_milliseconds)
Suspends redrawing of the canvas for the given number of milliseconds. |
void |
unpauseAnimations()
Unpauses animations in the document. |
boolean |
unsuspendRedraw(int suspend_handle_id)
Unsuspends redrawing of the canvas. |
void |
unsuspendRedrawAll()
Unsuspends redrawing of the canvas. |
Methods inherited from class org.apache.batik.bridge.SVGGElementBridge |
---|
handleDOMNodeInsertedEvent, handleElementAdded, isComposite |
Methods inherited from class org.apache.batik.bridge.AnimatableSVGBridge |
---|
addTargetListener, fireBaseAttributeListeners, removeTargetListener |
Methods inherited from class org.apache.batik.bridge.AbstractSVGBridge |
---|
getNamespaceURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.batik.dom.svg.SVGContext |
---|
getBBox, getCTM, getFontSize, getGlobalTransform, getPixelToMM, getPixelUnitToMillimeter, getScreenTransform, getViewportHeight, getViewportWidth, setScreenTransform |
Methods inherited from interface org.apache.batik.bridge.Bridge |
---|
getNamespaceURI |
Constructor Detail |
---|
public SVGSVGElementBridge()
Method Detail |
---|
public String getLocalName()
getLocalName
in interface Bridge
getLocalName
in class SVGGElementBridge
public Bridge getInstance()
getInstance
in interface Bridge
getInstance
in interface GraphicsNodeBridge
getInstance
in class SVGGElementBridge
protected GraphicsNode instantiateGraphicsNode()
instantiateGraphicsNode
in class SVGGElementBridge
public GraphicsNode createGraphicsNode(BridgeContext ctx, Element e)
createGraphicsNode
in interface GraphicsNodeBridge
createGraphicsNode
in class SVGGElementBridge
ctx
- the bridge context to usee
- the element that describes the graphics node to build
public void buildGraphicsNode(BridgeContext ctx, Element e, GraphicsNode node)
buildGraphicsNode
in interface GraphicsNodeBridge
buildGraphicsNode
in class AbstractGraphicsNodeBridge
ctx
- the bridge context to usee
- the element that describes the graphics node to buildnode
- the graphics node to buildpublic void dispose()
dispose
in interface BridgeUpdateHandler
dispose
in class AbstractGraphicsNodeBridge
public void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
handleAnimatedAttributeChanged
in interface BridgeUpdateHandler
handleAnimatedAttributeChanged
in class AbstractGraphicsNodeBridge
public void handleDOMAttrModifiedEvent(MutationEvent evt)
handleDOMAttrModifiedEvent
in interface BridgeUpdateHandler
handleDOMAttrModifiedEvent
in class AbstractGraphicsNodeBridge
public List getIntersectionList(org.w3c.dom.svg.SVGRect svgRect, Element end)
SVGSVGContext
getIntersectionList
in interface SVGSVGContext
public List getEnclosureList(org.w3c.dom.svg.SVGRect svgRect, Element end)
SVGSVGContext
getEnclosureList
in interface SVGSVGContext
public boolean checkIntersection(Element element, org.w3c.dom.svg.SVGRect svgRect)
SVGSVGContext
checkIntersection
in interface SVGSVGContext
public boolean checkEnclosure(Element element, org.w3c.dom.svg.SVGRect svgRect)
SVGSVGContext
checkEnclosure
in interface SVGSVGContext
public boolean filterChildren(Element curr, Element end, Set elems, List ret)
protected Set getAncestors(Element end, Element base)
protected Element getNext(Element curr, Element base, Element end)
public void deselectAll()
SVGSVGContext
deselectAll
in interface SVGSVGContext
public int suspendRedraw(int max_wait_milliseconds)
SVGSVGContext
suspendRedraw
in interface SVGSVGContext
public boolean unsuspendRedraw(int suspend_handle_id)
SVGSVGContext
unsuspendRedraw
in interface SVGSVGContext
public void unsuspendRedrawAll()
SVGSVGContext
unsuspendRedrawAll
in interface SVGSVGContext
public void forceRedraw()
SVGSVGContext
forceRedraw
in interface SVGSVGContext
public void pauseAnimations()
pauseAnimations
in interface SVGSVGContext
public void unpauseAnimations()
unpauseAnimations
in interface SVGSVGContext
public boolean animationsPaused()
animationsPaused
in interface SVGSVGContext
public float getCurrentTime()
getCurrentTime
in interface SVGSVGContext
public void setCurrentTime(float t)
setCurrentTime
in interface SVGSVGContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |