Package org.apache.batik.apps.svgbrowser
Interface Application
- All Known Implementing Classes:
Main
public interface Application
This interface represents a SVG viewer application.
- Version:
- $Id: Application.java 1733416 2016-03-03 07:07:13Z gadams $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVisitedURI
(String uri) Notifies Application of recently visited URIboolean
canLoadScriptType
(String scriptType) Returns true if the input scriptType can be loaded in this application.void
Closes the given viewer frame.Creates and shows a new viewer frame.Creates an action to exit the application.int
Returns the allowed origins for external resources.int
Returns the allowed origins for scripts.Returns the default value for the CSS "font-family" propertyReturns the user languages.getMedia()
Returns the CSS media to use.Returns the UI resource specialization to use.Returns the user stylesheet uri.String[]
Asks Application for a list of recently visited URIReturns the XML parser class name.boolean
Returns true if the selection overlay is painted in XOR mode, false otherwise.boolean
Returns true if the XML parser must be in validation mode, false otherwise.void
Opens the given link in a new window.void
Shows the preference dialog.
-
Method Details
-
createAndShowJSVGViewerFrame
JSVGViewerFrame createAndShowJSVGViewerFrame()Creates and shows a new viewer frame. -
closeJSVGViewerFrame
Closes the given viewer frame. -
createExitAction
Creates an action to exit the application. -
openLink
Opens the given link in a new window. -
getXMLParserClassName
String getXMLParserClassName()Returns the XML parser class name. -
isXMLParserValidating
boolean isXMLParserValidating()Returns true if the XML parser must be in validation mode, false otherwise. -
showPreferenceDialog
Shows the preference dialog. -
getLanguages
String getLanguages()Returns the user languages. -
getUserStyleSheetURI
String getUserStyleSheetURI()Returns the user stylesheet uri.- Returns:
- null if no user style sheet was specified.
-
getDefaultFontFamily
String getDefaultFontFamily()Returns the default value for the CSS "font-family" property -
getMedia
String getMedia()Returns the CSS media to use.- Returns:
- empty string if no CSS media was specified.
-
isSelectionOverlayXORMode
boolean isSelectionOverlayXORMode()Returns true if the selection overlay is painted in XOR mode, false otherwise. -
canLoadScriptType
Returns true if the input scriptType can be loaded in this application. -
getAllowedScriptOrigin
int getAllowedScriptOrigin()Returns the allowed origins for scripts.- See Also:
-
getAllowedExternalResourceOrigin
int getAllowedExternalResourceOrigin()Returns the allowed origins for external resources.- See Also:
-
addVisitedURI
Notifies Application of recently visited URI -
getVisitedURIs
String[] getVisitedURIs()Asks Application for a list of recently visited URI -
getUISpecialization
String getUISpecialization()Returns the UI resource specialization to use.
-