org.apache.batik.dom.svg
Interface SVGSVGContext

All Superinterfaces:
SVGContext
All Known Implementing Classes:
SVGSVGElementBridge

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 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.
 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.
 
Methods inherited from interface org.apache.batik.dom.svg.SVGContext
getBBox, getCTM, getFontSize, getGlobalTransform, getPixelToMM, getPixelUnitToMillimeter, getScreenTransform, getViewportHeight, getViewportWidth, setScreenTransform
 

Method Detail

getIntersectionList

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.


getEnclosureList

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.


checkIntersection

public boolean checkIntersection(Element element,
                                 SVGRect rect)
Returns true if the given DOM element intersects svgRect.


checkEnclosure

public boolean checkEnclosure(Element element,
                              SVGRect rect)
Returns true if the given DOM element is enclosed in the svgRect.


deselectAll

public void deselectAll()
Used to inform the user agent that the text selection should be cleared.



Copyright ? 2005 Apache Software Foundation. All Rights Reserved.