Interface SVGSVGContext
- All Superinterfaces:
SVGContext
- All Known Implementing Classes:
SVGSVGElementBridge
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.
- Version:
- $Id$
-
Field Summary
Fields inherited from interface SVGContext
PERCENTAGE_FONT_SIZE, PERCENTAGE_VIEWPORT_HEIGHT, PERCENTAGE_VIEWPORT_SIZE, PERCENTAGE_VIEWPORT_WIDTH -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether animations are currently paused.booleancheckEnclosure(Element element, org.w3c.dom.svg.SVGRect rect) Returns true if the given DOM element is enclosed in thesvgRect.booleancheckIntersection(Element element, org.w3c.dom.svg.SVGRect rect) Returns true if the given DOM element intersectssvgRect.voidUsed to inform the user agent that the text selection should be cleared.voidForces an immediate redraw of the canvas.floatReturns the current document time.getEnclosureList(org.w3c.dom.svg.SVGRect rect, Element end) Returns a List of all the DOM elements that are encosed insvgRectthat are belowendin the rendering order.getIntersectionList(org.w3c.dom.svg.SVGRect svgRect, Element end) Returns a List of all the DOM elements that intersectsvgRectthat are belowendin the rendering order.voidPauses animations in the document.voidsetCurrentTime(float t) Sets the current document time.intsuspendRedraw(int max_wait_milliseconds) Suspends redrawing of the canvas for the given number of milliseconds.voidUnpauses animations in the document.booleanunsuspendRedraw(int suspend_handle_id) Unsuspends redrawing of the canvas.voidUnsuspends redrawing of the canvas.Methods inherited from interface SVGContext
getBBox, getCTM, getFontSize, getGlobalTransform, getPixelToMM, getPixelUnitToMillimeter, getScreenTransform, getViewportHeight, getViewportWidth, setScreenTransform
-
Method Details
-
getIntersectionList
-
getEnclosureList
-
checkIntersection
Returns true if the given DOM element intersectssvgRect. -
checkEnclosure
Returns true if the given DOM element is enclosed in thesvgRect. -
deselectAll
void deselectAll()Used to inform the user agent that the text selection should be cleared. -
suspendRedraw
int suspendRedraw(int max_wait_milliseconds) Suspends redrawing of the canvas for the given number of milliseconds. -
unsuspendRedraw
boolean unsuspendRedraw(int suspend_handle_id) Unsuspends redrawing of the canvas. -
unsuspendRedrawAll
void unsuspendRedrawAll()Unsuspends redrawing of the canvas. -
forceRedraw
void forceRedraw()Forces an immediate redraw of the canvas. -
pauseAnimations
void pauseAnimations()Pauses animations in the document. -
unpauseAnimations
void unpauseAnimations()Unpauses animations in the document. -
animationsPaused
boolean animationsPaused()Returns whether animations are currently paused. -
getCurrentTime
float getCurrentTime()Returns the current document time. -
setCurrentTime
void setCurrentTime(float t) Sets the current document time.
-