Class SVGInputHandler
java.lang.Object
org.apache.batik.apps.svgbrowser.SVGInputHandler
- All Implemented Interfaces:
SquiggleInputHandler
This implementation of the
SquiggleInputHandler class
simply displays an SVG file into the JSVGCanvas.- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the input file can be handled.booleanReturns true if the resource at the given path can be handledbooleanReturns true if the input URI can be handled by the handlerReturns a description for this handler.String[]Returns the list of file extensions handled by this handlerString[]Returns the list of mime types handled by this handler.voidhandle(ParsedURL purl, JSVGViewerFrame svgViewerFrame) Handles the given input for the given JSVGViewerFrame
-
Field Details
-
SVG_MIME_TYPES
-
SVG_FILE_EXTENSIONS
-
-
Constructor Details
-
SVGInputHandler
public SVGInputHandler()
-
-
Method Details
-
getHandledMimeTypes
Returns the list of mime types handled by this handler.- Specified by:
getHandledMimeTypesin interfaceSquiggleInputHandler
-
getHandledExtensions
Returns the list of file extensions handled by this handler- Specified by:
getHandledExtensionsin interfaceSquiggleInputHandler
-
getDescription
Returns a description for this handler.- Specified by:
getDescriptionin interfaceSquiggleInputHandler
-
handle
Handles the given input for the given JSVGViewerFrame- Specified by:
handlein interfaceSquiggleInputHandler
-
accept
Returns true if the input file can be handled.- Specified by:
acceptin interfaceSquiggleInputHandler
-
accept
Returns true if the input URI can be handled by the handler- Specified by:
acceptin interfaceSquiggleInputHandler- Parameters:
purl- URL describing the candidate input
-
accept
Returns true if the resource at the given path can be handled
-