|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.apps.svgbrowser.Main
This class contains the main method of an SVG viewer.
Inner Class Summary | |
protected class |
Main.FontSizeHandler
To handle the '-font-size' option. |
protected static interface |
Main.OptionHandler
This interface represents an option handler. |
Field Summary | |
protected java.lang.String[] |
arguments
The arguments. |
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 static javax.swing.ImageIcon |
frameIcon
The frame's icon. |
protected java.util.Map |
handlers
The option handlers. |
protected PreferenceDialog |
preferenceDialog
The preference dialog. |
protected XMLPreferenceManager |
preferenceManager
The preference manager. |
protected static ResourceManager |
resources
The resource manager |
static java.lang.String |
RESOURCES
The gui resources file name |
protected java.util.List |
viewerFrames
The viewer frames. |
Constructor Summary | |
Main(java.lang.String[] args)
Creates a new application. |
Method Summary | |
void |
closeJSVGViewerFrame(JSVGViewerFrame f)
Closes the given viewer frame. |
JSVGViewerFrame |
createAndShowJSVGViewerFrame()
Creates and shows a new viewer frame. |
javax.swing.Action |
createExitAction(JSVGViewerFrame vf)
Creates a new application exit action. |
java.lang.String |
getLanguages()
Returns the user languages. |
java.lang.String |
getMedia()
Returns the CSS media to use. |
java.lang.String |
getUserStyleSheetURI()
Returns the user stylesheet uri. |
java.lang.String |
getXMLParserClassName()
Returns the XML parser class name. |
boolean |
isSelectionOverlayXORMode()
Returns true if the selection overlay is painted in XOR mode, false otherwise. |
boolean |
isXMLParserValidating()
Returns true if the XML parser must be in validation mode, false otherwise. |
static void |
main(java.lang.String[] args)
Creates a viewer frame and shows it.. |
void |
openLink(java.lang.String url)
Opens the given link in a new window. |
protected void |
printUsage()
Prints the command line usage. |
void |
run()
Runs the application. |
void |
showPreferenceDialog(JSVGViewerFrame f)
Shows the preference dialog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CSS_PARSER_CLASS_NAME_KEY
public static final java.lang.String RESOURCES
protected static java.util.ResourceBundle bundle
protected static ResourceManager resources
protected static javax.swing.ImageIcon frameIcon
protected XMLPreferenceManager preferenceManager
protected java.lang.String[] arguments
protected java.util.Map handlers
protected java.util.List viewerFrames
protected PreferenceDialog preferenceDialog
Constructor Detail |
public Main(java.lang.String[] args)
args
- The command-line arguments.Method Detail |
public static void main(java.lang.String[] args)
args
- The command-line arguments.public void run()
protected void printUsage()
public JSVGViewerFrame createAndShowJSVGViewerFrame()
createAndShowJSVGViewerFrame
in interface Application
public void closeJSVGViewerFrame(JSVGViewerFrame f)
closeJSVGViewerFrame
in interface Application
public javax.swing.Action createExitAction(JSVGViewerFrame vf)
createExitAction
in interface Application
public void openLink(java.lang.String url)
openLink
in interface Application
public java.lang.String getXMLParserClassName()
getXMLParserClassName
in interface Application
public boolean isXMLParserValidating()
isXMLParserValidating
in interface Application
public void showPreferenceDialog(JSVGViewerFrame f)
showPreferenceDialog
in interface Application
public java.lang.String getLanguages()
getLanguages
in interface Application
public java.lang.String getUserStyleSheetURI()
getUserStyleSheetURI
in interface Application
public java.lang.String getMedia()
getMedia
in interface Application
public boolean isSelectionOverlayXORMode()
isSelectionOverlayXORMode
in interface Application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |