public class SVGInputHandler extends java.lang.Object implements SquiggleInputHandler
SquiggleInputHandler
class
simply displays an SVG file into the JSVGCanvas.Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
SVG_FILE_EXTENSIONS |
static java.lang.String[] |
SVG_MIME_TYPES |
Constructor and Description |
---|
SVGInputHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f)
Returns true if the input file can be handled.
|
boolean |
accept(ParsedURL purl)
Returns true if the input URI can be handled by the handler
|
boolean |
accept(java.lang.String path)
Returns true if the resource at the given path can be handled
|
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 SquiggleInputHandler
public java.lang.String[] getHandledExtensions()
getHandledExtensions
in interface SquiggleInputHandler
public java.lang.String getDescription()
getDescription
in interface SquiggleInputHandler
public void handle(ParsedURL purl, JSVGViewerFrame svgViewerFrame)
handle
in interface SquiggleInputHandler
public boolean accept(java.io.File f)
accept
in interface SquiggleInputHandler
public boolean accept(ParsedURL purl)
accept
in interface SquiggleInputHandler
purl
- URL describing the candidate inputpublic boolean accept(java.lang.String path)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.