org.apache.batik.apps.svgbrowser

Class ThumbnailDialog

public class ThumbnailDialog extends JDialog

This class represents a Dialog that displays a Thumbnail of the current SVG document.
Nested Class Summary
protected classThumbnailDialog.AreaOfInterestListener
Used to perform a translation using the area of interest.
protected classThumbnailDialog.AreaOfInterestOverlay
An overlay that represents the current area of interest.
protected classThumbnailDialog.ThumbnailCanvasComponentListener
Used to allow the SVG document being displayed by the thumbnail to be resized properly when parent resizes.
protected classThumbnailDialog.ThumbnailComponentListener
Used to allow the SVG document being displayed by the thumbnail to be resized properly.
protected classThumbnailDialog.ThumbnailDocumentListener
Used to determine whether or not the GVT tree of the thumbnail has to be updated.
protected classThumbnailDialog.ThumbnailGVTListener
Used to update the overlay and/or the GVT tree of the thumbnail.
protected classThumbnailDialog.ThumbnailListener
Used the first time the thumbnail dialog is shown to make visible the current GVT tree being displayed by the original SVG component.
Field Summary
protected ThumbnailDialog.AreaOfInterestListeneraoiListener
The overlay used to display the area of interest.
protected static ResourceBundlebundle
The resource bundle
protected booleandocumentChanged
A flag bit that indicates a document has been loaded.
protected booleaninteractionEnabled
protected ThumbnailDialog.AreaOfInterestOverlayoverlay
The overlay used to display the area of interest.
protected static ResourceManagerresources
The resource manager
protected static StringRESOURCES
The resource file name
protected JSVGCanvassvgCanvas
The canvas that owns the SVG document to display.
protected JGVTComponentsvgThumbnailCanvas
The canvas that displays the thumbnail.
Constructor Summary
ThumbnailDialog(Frame owner, JSVGCanvas svgCanvas)
Constructs a new ThumbnailDialog for the specified canvas.
Method Summary
protected CanvasGraphicsNodegetCanvasGraphicsNode(GraphicsNode gn)
booleangetInteractionEnabled()
voidsetInteractionEnabled(boolean b)
protected voidupdateThumbnailGraphicsNode()
Updates the thumbnail component.
protected voidupdateThumbnailRenderingTransform()
Updates the thumbnail component rendering transform.

Field Detail

aoiListener

protected ThumbnailDialog.AreaOfInterestListener aoiListener
The overlay used to display the area of interest.

bundle

protected static ResourceBundle bundle
The resource bundle

documentChanged

protected boolean documentChanged
A flag bit that indicates a document has been loaded.

interactionEnabled

protected boolean interactionEnabled

overlay

protected ThumbnailDialog.AreaOfInterestOverlay overlay
The overlay used to display the area of interest.

resources

protected static ResourceManager resources
The resource manager

RESOURCES

protected static final String RESOURCES
The resource file name

svgCanvas

protected JSVGCanvas svgCanvas
The canvas that owns the SVG document to display.

svgThumbnailCanvas

protected JGVTComponent svgThumbnailCanvas
The canvas that displays the thumbnail.

Constructor Detail

ThumbnailDialog

public ThumbnailDialog(Frame owner, JSVGCanvas svgCanvas)
Constructs a new ThumbnailDialog for the specified canvas.

Parameters: owner the owner frame svgCanvas the canvas that owns the SVG document to display

Method Detail

getCanvasGraphicsNode

protected CanvasGraphicsNode getCanvasGraphicsNode(GraphicsNode gn)

getInteractionEnabled

public boolean getInteractionEnabled()

setInteractionEnabled

public void setInteractionEnabled(boolean b)

updateThumbnailGraphicsNode

protected void updateThumbnailGraphicsNode()
Updates the thumbnail component.

updateThumbnailRenderingTransform

protected void updateThumbnailRenderingTransform()
Updates the thumbnail component rendering transform.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.