|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface expected from classes which can handle specific types of input for the Squiggle SVG browser. The simplest implementation will simply handle SVG documents. Other, more sophisticated implementations will handle other types of documents and convert them into SVG before displaying them in an SVG canvas.
Method Summary | |
boolean |
accept(java.io.File f)
Returns true if the input file can be handled by the handler |
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 svgFrame)
Handles the given input for the given JSVGViewerFrame |
Method Detail |
public java.lang.String[] getHandledMimeTypes()
public java.lang.String[] getHandledExtensions()
public java.lang.String getDescription()
public boolean accept(java.io.File f)
public boolean accept(ParsedURL purl)
purl
- URL describing the candidate inputpublic void handle(ParsedURL purl, JSVGViewerFrame svgFrame) throws java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |