SquiggleInputHandlerpublic class SVGInputHandler extends java.lang.Object implements SquiggleInputHandler
SquiggleInputHandler class
simply displays an SVG file into the JSVGCanvas.| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String[] |
SVG_FILE_EXTENSIONS |
|
static java.lang.String[] |
SVG_MIME_TYPES |
| Constructor | Description |
|---|---|
SVGInputHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accept(java.io.File f) |
Returns true if the input file can be handled.
|
boolean |
accept(java.lang.String path) |
Returns true if the resource at the given path can be handled
|
boolean |
accept(ParsedURL purl) |
Returns true if the input URI can be handled by the handler
|
java.lang.String |
getDescription() |
Returns a description for this handler.
|
java.lang.String[] |
getHandledExtensions() |
Returns the list of file extensions handled by this handler
|
java.lang.String[] |
getHandledMimeTypes() |
Returns the list of mime types handled by this handler.
|
void |
handle(ParsedURL purl,
JSVGViewerFrame svgViewerFrame) |
Handles the given input for the given JSVGViewerFrame
|
public static final java.lang.String[] SVG_MIME_TYPES
public static final java.lang.String[] SVG_FILE_EXTENSIONS
public java.lang.String[] getHandledMimeTypes()
getHandledMimeTypes in interface SquiggleInputHandlerpublic java.lang.String[] getHandledExtensions()
getHandledExtensions in interface SquiggleInputHandlerpublic java.lang.String getDescription()
getDescription in interface SquiggleInputHandlerpublic void handle(ParsedURL purl, JSVGViewerFrame svgViewerFrame)
handle in interface SquiggleInputHandlerpublic boolean accept(java.io.File f)
accept in interface SquiggleInputHandlerpublic boolean accept(ParsedURL purl)
accept in interface SquiggleInputHandlerpurl - URL describing the candidate inputpublic boolean accept(java.lang.String path)
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.