Package aud.util
Class SVGViewer
java.lang.Object
aud.util.SVGViewer
Simple SVG viewer based on
Batik's
SVGCanvas.
Usage:
- Shift+Mouse Left = pan
- Shift+Mouse Right (drag) = zoom in/out
- Ctrl+Mouse Left = rectangle zoom
- Ctrl+Mouse Right (drag) = rotate [disabled]
- Ctrl+I = zoom in
- Ctrl+O = zoom out
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
close viewerprotected JComponent
void
display()
display current svg filevoid
display svg filestatic SVGViewer
displayWindow
(File file, String caption) create new SVGViewer (toplevel window) and displayfile
static void
help()
print help (mouse/key bindings) to stdoutstatic void
visualize given dot files (file names as command line arguments)parent()
get parent widgetvoid
exit application if viewer is closedget status bar
-
Field Details
-
frame
-
svgCanvas
protected org.apache.batik.swing.JSVGCanvas svgCanvas -
label
-
svgfile
-
-
Constructor Details
-
SVGViewer
create new instance
-
-
Method Details
-
parent
get parent widget -
statusbar
get status bar -
close
public void close()close viewer -
createComponents
-
display
display svg file -
display
public void display()display current svg file -
help
public static void help()print help (mouse/key bindings) to stdout -
displayWindow
create new SVGViewer (toplevel window) and displayfile
-
setExitOnClose
public void setExitOnClose()exit application if viewer is closed -
main
visualize given dot files (file names as command line arguments)
-