|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.apps.svgbrowser.SVGInputHandler
public class SVGInputHandler
This implementation of the SquiggleInputHandler class simply displays an SVG file into the JSVGCanvas.
| Field Summary | |
|---|---|
static String[] |
SVG_FILE_EXTENSIONS
|
static String[] |
SVG_MIME_TYPES
|
| Constructor Summary | |
|---|---|
SVGInputHandler()
|
|
| Method Summary | |
|---|---|
boolean |
accept(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(String path)
Returns true if the resource at the given path can be handled |
String |
getDescription()
Returns a description for this handler. |
String[] |
getHandledExtensions()
Returns the list of file extensions handled by this handler |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] SVG_MIME_TYPES
public static final String[] SVG_FILE_EXTENSIONS
| Constructor Detail |
|---|
public SVGInputHandler()
| Method Detail |
|---|
public String[] getHandledMimeTypes()
getHandledMimeTypes in interface SquiggleInputHandlerpublic String[] getHandledExtensions()
getHandledExtensions in interface SquiggleInputHandlerpublic String getDescription()
getDescription in interface SquiggleInputHandler
public void handle(ParsedURL purl,
JSVGViewerFrame svgViewerFrame)
handle in interface SquiggleInputHandlerpublic boolean accept(File f)
accept in interface SquiggleInputHandlerpublic boolean accept(ParsedURL purl)
accept in interface SquiggleInputHandlerpurl - URL describing the candidate inputpublic boolean accept(String path)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||