org.apache.batik.apps.svgviewer
Class Main

java.lang.Object
  |
  +--org.apache.batik.apps.svgviewer.Main
All Implemented Interfaces:
ViewerFrame.Application

public class Main
extends java.lang.Object
implements ViewerFrame.Application

This class represents a SVG viewer.


Inner Class Summary
 class Main.CloseAction
          To close a frame.
 class Main.ExitAction
          To exit the application
 
Field Summary
protected static java.util.ResourceBundle bundle
          The resource bundle
static java.lang.String CSS_PARSER_CLASS_NAME_KEY
          The CSS parser class name key.
protected  ViewerFrame mainFrame
          The main frame.
protected  int mainFrames
          The number of main frames.
static java.lang.String RESOURCES
          The gui resources file name
static java.lang.String XML_PARSER_CLASS_NAME_KEY
          The XML parser class name key.
protected static java.lang.String xmlParserClassName
          The XML parser class name.
 
Constructor Summary
Main(java.lang.String[] args)
          Creates a viewer application frame.
 
Method Summary
 boolean closeFrame(ViewerFrame f)
          Called when the frame will be closed.
 void createAndShowViewerFrame()
          Creates and shows a new viewer frame.
 javax.swing.Action createCloseAction(ViewerFrame vf)
          Creates a close action.
 javax.swing.Action createExitAction()
          Creates a exit action.
 java.lang.String getXMLParserClassName()
          Returns the XML parser class name.
static void main(java.lang.String[] args)
          The program entry point.
 void openLink(ViewerFrame f, SVGAElement elt)
          Opens the given link.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSS_PARSER_CLASS_NAME_KEY

public static final java.lang.String CSS_PARSER_CLASS_NAME_KEY
The CSS parser class name key.

XML_PARSER_CLASS_NAME_KEY

public static final java.lang.String XML_PARSER_CLASS_NAME_KEY
The XML parser class name key.

RESOURCES

public static final java.lang.String RESOURCES
The gui resources file name

bundle

protected static java.util.ResourceBundle bundle
The resource bundle

xmlParserClassName

protected static java.lang.String xmlParserClassName
The XML parser class name.

mainFrames

protected int mainFrames
The number of main frames.

mainFrame

protected ViewerFrame mainFrame
The main frame.
Constructor Detail

Main

public Main(java.lang.String[] args)
Creates a viewer application frame.
Parameters:
args - The command-line arguments.
Method Detail

main

public static void main(java.lang.String[] args)
The program entry point.
Parameters:
args - The command-line arguments.

createAndShowViewerFrame

public void createAndShowViewerFrame()
Creates and shows a new viewer frame.
Specified by:
createAndShowViewerFrame in interface ViewerFrame.Application

createCloseAction

public javax.swing.Action createCloseAction(ViewerFrame vf)
Creates a close action.
Specified by:
createCloseAction in interface ViewerFrame.Application

createExitAction

public javax.swing.Action createExitAction()
Creates a exit action.
Specified by:
createExitAction in interface ViewerFrame.Application

getXMLParserClassName

public java.lang.String getXMLParserClassName()
Returns the XML parser class name.
Specified by:
getXMLParserClassName in interface ViewerFrame.Application

closeFrame

public boolean closeFrame(ViewerFrame f)
Called when the frame will be closed.
Specified by:
closeFrame in interface ViewerFrame.Application
Returns:
true if the frame must be closed.

openLink

public void openLink(ViewerFrame f,
                     SVGAElement elt)
Opens the given link.
Specified by:
openLink in interface ViewerFrame.Application


Copyright © 2000 Apache Software Foundation. All Rights Reserved.