|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--org.apache.batik.apps.svgbrowser.JSVGViewerFrame
This class represents a SVG viewer swing frame.
Inner Class Summary | |
class |
JSVGViewerFrame.AboutAction
To show the about dialog |
class |
JSVGViewerFrame.BackAction
To go back to the previous document |
class |
JSVGViewerFrame.CloseAction
To close the last document. |
class |
JSVGViewerFrame.DOMViewerAction
To display the DOM viewer of the document |
class |
JSVGViewerFrame.ExportAsJPGAction
To save the current document as JPG. |
class |
JSVGViewerFrame.ExportAsPNGAction
To save the current document as PNG. |
class |
JSVGViewerFrame.ExportAsTIFFAction
To save the current document as TIFF. |
class |
JSVGViewerFrame.FindDialogAction
To display the Find dialog |
class |
JSVGViewerFrame.FlushAction
To flush image cache (purely for debugging purposes) |
class |
JSVGViewerFrame.ForwardAction
To go forward to the previous document |
protected static class |
JSVGViewerFrame.ImageFileFilter
A FileFilter used when exporting the SVG document as an image. |
class |
JSVGViewerFrame.MonitorAction
To display the memory monitor. |
class |
JSVGViewerFrame.NewWindowAction
To open a new window. |
class |
JSVGViewerFrame.NextTransformAction
To go forward to the next transform |
class |
JSVGViewerFrame.OpenAction
To open a new file. |
class |
JSVGViewerFrame.OpenLocationAction
To open a new document. |
class |
JSVGViewerFrame.PreferencesAction
To show the preferences. |
class |
JSVGViewerFrame.PreviousTransformAction
To go back to the previous transform |
class |
JSVGViewerFrame.PrintAction
To print the current document. |
class |
JSVGViewerFrame.ReloadAction
To reload the current document. |
class |
JSVGViewerFrame.SetTransformAction
To show the set transform dialog |
class |
JSVGViewerFrame.StopAction
To stop the current processing. |
class |
JSVGViewerFrame.ThumbnailDialogAction
To display the Thumbnail dialog |
protected class |
JSVGViewerFrame.UserAgent
This class implements a SVG user agent. |
class |
JSVGViewerFrame.UseStylesheetAction
To apply the selected author stylesheet |
class |
JSVGViewerFrame.ViewSourceAction
To view the source of the current document. |
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
static java.lang.String |
ABOUT_ACTION
|
protected Application |
application
The current application. |
protected boolean |
autoAdjust
The auto adjust flag. |
static java.lang.String |
BACK_ACTION
|
protected JSVGViewerFrame.BackAction |
backAction
The back action |
protected static java.util.ResourceBundle |
bundle
The resource bundle |
static java.lang.String |
CLOSE_ACTION
|
protected java.io.File |
currentExportPath
The current export path. |
protected java.io.File |
currentPath
The current path. |
protected boolean |
debug
The debug flag. |
static java.awt.Cursor |
DEFAULT_CURSOR
The default cursor. |
static java.lang.String |
DOM_VIEWER_ACTION
|
protected DOMViewer |
domViewer
The DOM viewer. |
static java.lang.String |
EXIT_ACTION
|
static java.lang.String |
EXPORT_AS_JPG_ACTION
|
static java.lang.String |
EXPORT_AS_PNG_ACTION
|
static java.lang.String |
EXPORT_AS_TIFF_ACTION
|
static java.lang.String |
FIND_DIALOG_ACTION
|
protected FindDialog |
findDialog
The Find dialog. |
static java.lang.String |
FLUSH_ACTION
|
static java.lang.String |
FORWARD_ACTION
|
protected JSVGViewerFrame.ForwardAction |
forwardAction
The forward action |
protected java.util.Map |
listeners
The map that contains the action listeners |
protected LocalHistory |
localHistory
The local history. |
protected LocationBar |
locationBar
The location bar. |
protected static javax.swing.JFrame |
memoryMonitorFrame
The memory monitor frame. |
static java.lang.String |
MONITOR_ACTION
|
static java.lang.String |
NEW_WINDOW_ACTION
|
static java.lang.String |
NEXT_TRANSFORM_ACTION
|
protected JSVGViewerFrame.NextTransformAction |
nextTransformAction
The next transform action |
static java.lang.String |
OPEN_ACTION
|
static java.lang.String |
OPEN_LOCATION_ACTION
|
static java.lang.String |
PREFERENCES_ACTION
|
static java.lang.String |
PREVIOUS_TRANSFORM_ACTION
|
protected JSVGViewerFrame.PreviousTransformAction |
previousTransformAction
The previous transform action |
static java.lang.String |
PRINT_ACTION
|
static java.lang.String |
RELOAD_ACTION
|
static java.lang.String |
RESET_TRANSFORM_ACTION
|
protected static ResourceManager |
resources
The resource manager |
static java.lang.String |
RESOURCES
The gui resources file name |
static java.lang.String |
SET_TRANSFORM_ACTION
|
protected StatusBar |
statusBar
The status bar. |
static java.lang.String |
STOP_ACTION
|
protected JSVGViewerFrame.StopAction |
stopAction
The stop action |
protected JSVGCanvas |
svgCanvas
The JSVGCanvas. |
protected SVGDocument |
svgDocument
The current document. |
static java.lang.String |
THUMBNAIL_DIALOG_ACTION
|
protected ThumbnailDialog |
thumbnailDialog
The Find dialog. |
protected java.lang.String |
title
The initial frame title. |
protected JAffineTransformChooser.Dialog |
transformDialog
The transform dialog |
protected TransformHistory |
transformHistory
The transform history. |
protected URIChooser |
uriChooser
The URI chooser. |
static java.lang.String |
USE_STYLESHEET_ACTION
|
protected SVGUserAgent |
userAgent
The SVG user agent. |
protected JSVGViewerFrame.UseStylesheetAction |
useStylesheetAction
The use (author) stylesheet action |
static java.lang.String |
VIEW_SOURCE_ACTION
|
static java.awt.Cursor |
WAIT_CURSOR
The cursor indicating that an operation is pending. |
static java.lang.String |
ZOOM_IN_ACTION
|
static java.lang.String |
ZOOM_OUT_ACTION
|
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JSVGViewerFrame(Application app)
Creates a new SVG viewer frame. |
Method Summary | |
void |
documentLoadingCancelled(SVGDocumentLoaderEvent e)
Called when the loading of a document was cancelled. |
void |
documentLoadingCompleted(SVGDocumentLoaderEvent e)
Called when the loading of a document was completed. |
void |
documentLoadingFailed(SVGDocumentLoaderEvent e)
Called when the loading of a document has failed. |
void |
documentLoadingStarted(SVGDocumentLoaderEvent e)
Called when the loading of a document was started. |
javax.swing.Action |
getAction(java.lang.String key)
Returns the action associated with the given string or null on error |
JSVGCanvas |
getJSVGCanvas()
Returns the main JSVGCanvas of this frame. |
void |
gvtBuildCancelled(GVTTreeBuilderEvent e)
Called when a build was cancelled. |
void |
gvtBuildCompleted(GVTTreeBuilderEvent e)
Called when a build was completed. |
void |
gvtBuildFailed(GVTTreeBuilderEvent e)
Called when a build failed. |
void |
gvtBuildStarted(GVTTreeBuilderEvent e)
Called when a build started. |
void |
gvtRenderingCancelled(GVTTreeRendererEvent e)
Called when a rendering was cancelled. |
void |
gvtRenderingCompleted(GVTTreeRendererEvent e)
Called when a rendering was completed. |
void |
gvtRenderingFailed(GVTTreeRendererEvent e)
Called when a rendering failed. |
void |
gvtRenderingPrepare(GVTTreeRendererEvent e)
Called when a rendering is in its preparing phase. |
void |
gvtRenderingStarted(GVTTreeRendererEvent e)
Called when a rendering started. |
void |
linkActivated(LinkActivationEvent e)
Called when a link was activated. |
void |
setAutoAdjust(boolean b)
Whether to auto adjust the canvas to the size of the document. |
void |
setDebug(boolean b)
Whether to show the debug traces. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle |
Methods inherited from class java.awt.Window |
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, removeWindowListener, setCursor, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFont, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
public static final java.lang.String RESOURCES
public static final java.lang.String ABOUT_ACTION
public static final java.lang.String OPEN_ACTION
public static final java.lang.String OPEN_LOCATION_ACTION
public static final java.lang.String NEW_WINDOW_ACTION
public static final java.lang.String RELOAD_ACTION
public static final java.lang.String BACK_ACTION
public static final java.lang.String FORWARD_ACTION
public static final java.lang.String PRINT_ACTION
public static final java.lang.String EXPORT_AS_JPG_ACTION
public static final java.lang.String EXPORT_AS_PNG_ACTION
public static final java.lang.String EXPORT_AS_TIFF_ACTION
public static final java.lang.String PREFERENCES_ACTION
public static final java.lang.String CLOSE_ACTION
public static final java.lang.String VIEW_SOURCE_ACTION
public static final java.lang.String EXIT_ACTION
public static final java.lang.String RESET_TRANSFORM_ACTION
public static final java.lang.String ZOOM_IN_ACTION
public static final java.lang.String ZOOM_OUT_ACTION
public static final java.lang.String PREVIOUS_TRANSFORM_ACTION
public static final java.lang.String NEXT_TRANSFORM_ACTION
public static final java.lang.String USE_STYLESHEET_ACTION
public static final java.lang.String STOP_ACTION
public static final java.lang.String MONITOR_ACTION
public static final java.lang.String DOM_VIEWER_ACTION
public static final java.lang.String SET_TRANSFORM_ACTION
public static final java.lang.String FIND_DIALOG_ACTION
public static final java.lang.String THUMBNAIL_DIALOG_ACTION
public static final java.lang.String FLUSH_ACTION
public static final java.awt.Cursor WAIT_CURSOR
public static final java.awt.Cursor DEFAULT_CURSOR
protected static java.util.ResourceBundle bundle
protected static ResourceManager resources
protected Application application
protected JSVGCanvas svgCanvas
protected static javax.swing.JFrame memoryMonitorFrame
protected java.io.File currentPath
protected java.io.File currentExportPath
protected JSVGViewerFrame.BackAction backAction
protected JSVGViewerFrame.ForwardAction forwardAction
protected JSVGViewerFrame.StopAction stopAction
protected JSVGViewerFrame.PreviousTransformAction previousTransformAction
protected JSVGViewerFrame.NextTransformAction nextTransformAction
protected JSVGViewerFrame.UseStylesheetAction useStylesheetAction
protected boolean debug
protected boolean autoAdjust
protected SVGUserAgent userAgent
protected SVGDocument svgDocument
protected URIChooser uriChooser
protected DOMViewer domViewer
protected FindDialog findDialog
protected ThumbnailDialog thumbnailDialog
protected JAffineTransformChooser.Dialog transformDialog
protected LocationBar locationBar
protected StatusBar statusBar
protected java.lang.String title
protected LocalHistory localHistory
protected TransformHistory transformHistory
protected java.util.Map listeners
Constructor Detail |
public JSVGViewerFrame(Application app)
Method Detail |
public void setDebug(boolean b)
public void setAutoAdjust(boolean b)
public JSVGCanvas getJSVGCanvas()
public javax.swing.Action getAction(java.lang.String key) throws MissingListenerException
getAction
in interface ActionMap
key
- the key mapped with the action to getMissingListenerException
- if the action is not foundpublic void documentLoadingStarted(SVGDocumentLoaderEvent e)
documentLoadingStarted
in interface SVGDocumentLoaderListener
public void documentLoadingCompleted(SVGDocumentLoaderEvent e)
documentLoadingCompleted
in interface SVGDocumentLoaderListener
public void documentLoadingCancelled(SVGDocumentLoaderEvent e)
documentLoadingCancelled
in interface SVGDocumentLoaderListener
public void documentLoadingFailed(SVGDocumentLoaderEvent e)
documentLoadingFailed
in interface SVGDocumentLoaderListener
public void gvtBuildStarted(GVTTreeBuilderEvent e)
gvtBuildStarted
in interface GVTTreeBuilderListener
public void gvtBuildCompleted(GVTTreeBuilderEvent e)
gvtBuildCompleted
in interface GVTTreeBuilderListener
public void gvtBuildCancelled(GVTTreeBuilderEvent e)
gvtBuildCancelled
in interface GVTTreeBuilderListener
public void gvtBuildFailed(GVTTreeBuilderEvent e)
gvtBuildFailed
in interface GVTTreeBuilderListener
public void gvtRenderingPrepare(GVTTreeRendererEvent e)
gvtRenderingPrepare
in interface GVTTreeRendererListener
public void gvtRenderingStarted(GVTTreeRendererEvent e)
gvtRenderingStarted
in interface GVTTreeRendererListener
public void gvtRenderingCompleted(GVTTreeRendererEvent e)
gvtRenderingCompleted
in interface GVTTreeRendererListener
public void gvtRenderingCancelled(GVTTreeRendererEvent e)
gvtRenderingCancelled
in interface GVTTreeRendererListener
public void gvtRenderingFailed(GVTTreeRendererEvent e)
gvtRenderingFailed
in interface GVTTreeRendererListener
public void linkActivated(LinkActivationEvent e)
linkActivated
in interface LinkActivationListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |