|
||||||||||
| 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,
java.util.Set elems,
java.util.List ret)
|
void |
forceRedraw()
Forces an immediate redraw of the canvas. |
protected java.util.Set |
getAncestors(Element end,
Element base)
|
float |
getCurrentTime()
Returns the current document time. |
java.util.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. |
java.util.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. |
java.lang.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. |
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 java.lang.String getLocalName()
getLocalName in interface BridgegetLocalName in class SVGGElementBridgepublic Bridge getInstance()
getInstance in interface BridgegetInstance in interface GraphicsNodeBridgegetInstance in class SVGGElementBridgeprotected GraphicsNode instantiateGraphicsNode()
instantiateGraphicsNode in class SVGGElementBridge
public GraphicsNode createGraphicsNode(BridgeContext ctx,
Element e)
createGraphicsNode in interface GraphicsNodeBridgecreateGraphicsNode in class SVGGElementBridgectx - 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 GraphicsNodeBridgebuildGraphicsNode in class AbstractGraphicsNodeBridgectx - the bridge context to usee - the element that describes the graphics node to buildnode - the graphics node to buildpublic void dispose()
dispose in interface BridgeUpdateHandlerdispose in class AbstractGraphicsNodeBridgepublic void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue alav)
handleAnimatedAttributeChanged in interface BridgeUpdateHandlerhandleAnimatedAttributeChanged in class AbstractGraphicsNodeBridge
public java.util.List getIntersectionList(org.w3c.dom.svg.SVGRect svgRect,
Element end)
SVGSVGContext
getIntersectionList in interface SVGSVGContext
public java.util.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,
java.util.Set elems,
java.util.List ret)
protected java.util.Set getAncestors(Element end,
Element base)
protected Element getNext(Element curr,
Element base,
Element end)
public void deselectAll()
SVGSVGContext
deselectAll in interface SVGSVGContextpublic int suspendRedraw(int max_wait_milliseconds)
SVGSVGContext
suspendRedraw in interface SVGSVGContextpublic boolean unsuspendRedraw(int suspend_handle_id)
SVGSVGContext
unsuspendRedraw in interface SVGSVGContextpublic void unsuspendRedrawAll()
SVGSVGContext
unsuspendRedrawAll in interface SVGSVGContextpublic void forceRedraw()
SVGSVGContext
forceRedraw in interface SVGSVGContextpublic void pauseAnimations()
pauseAnimations in interface SVGSVGContextpublic void unpauseAnimations()
unpauseAnimations in interface SVGSVGContextpublic boolean animationsPaused()
animationsPaused in interface SVGSVGContextpublic float getCurrentTime()
getCurrentTime in interface SVGSVGContextpublic void setCurrentTime(float t)
setCurrentTime in interface SVGSVGContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||