org.apache.batik.dom.svg
Interface SVGSVGContext
public
interface
SVGSVGContext
extends SVGContext
Context class for svg:svg elements.
Eventually this interface will likely have a number of other
methods but for now it will have methods to do intersection
and enclosure checking.
Method Summary |
boolean | animationsPaused()
Returns whether animations are currently paused. |
boolean | checkEnclosure(Element element, SVGRect rect)
Returns true if the given DOM element is enclosed in the
svgRect. |
boolean | checkIntersection(Element element, SVGRect rect)
Returns true if the given DOM element intersects
svgRect. |
void | deselectAll()
Used to inform the user agent that the text selection should be
cleared. |
void | forceRedraw()
Forces an immediate redraw of the canvas. |
float | getCurrentTime()
Returns the current document time. |
List | getEnclosureList(SVGRect rect, Element end)
Returns a List of all the DOM elements that are encosed in
svgRect that are below end in the
rendering order. |
List | getIntersectionList(SVGRect svgRect, Element end)
Returns a List of all the DOM elements that intersect
svgRect that are below end in the
rendering order. |
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. |
public boolean animationsPaused()
Returns whether animations are currently paused.
public boolean checkEnclosure(Element element, SVGRect rect)
Returns true if the given DOM element is enclosed in the
svgRect.
public boolean checkIntersection(Element element, SVGRect rect)
Returns true if the given DOM element intersects
svgRect.
public void deselectAll()
Used to inform the user agent that the text selection should be
cleared.
public void forceRedraw()
Forces an immediate redraw of the canvas.
public float getCurrentTime()
Returns the current document time.
public List getEnclosureList(SVGRect rect, Element end)
Returns a List of all the DOM elements that are encosed in
svgRect that are below end in the
rendering order.
public List getIntersectionList(SVGRect svgRect, Element end)
Returns a List of all the DOM elements that intersect
svgRect that are below end in the
rendering order.
public void pauseAnimations()
Pauses animations in the document.
public void setCurrentTime(float t)
Sets the current document time.
public int suspendRedraw(int max_wait_milliseconds)
Suspends redrawing of the canvas for the given number of milliseconds.
public void unpauseAnimations()
Unpauses animations in the document.
public boolean unsuspendRedraw(int suspend_handle_id)
Unsuspends redrawing of the canvas.
public void unsuspendRedrawAll()
Unsuspends redrawing of the canvas.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.