Package org.apache.batik.apps.svgbrowser
Interface Application
-
- All Known Implementing Classes:
Main
public interface ApplicationThis interface represents a SVG viewer application.- Version:
- $Id: Application.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddVisitedURI(java.lang.String uri)Notifies Application of recently visited URIbooleancanLoadScriptType(java.lang.String scriptType)Returns true if the input scriptType can be loaded in this application.voidcloseJSVGViewerFrame(JSVGViewerFrame f)Closes the given viewer frame.JSVGViewerFramecreateAndShowJSVGViewerFrame()Creates and shows a new viewer frame.javax.swing.ActioncreateExitAction(JSVGViewerFrame vf)Creates an action to exit the application.intgetAllowedExternalResourceOrigin()Returns the allowed origins for external resources.intgetAllowedScriptOrigin()Returns the allowed origins for scripts.java.lang.StringgetDefaultFontFamily()Returns the default value for the CSS "font-family" propertyjava.lang.StringgetLanguages()Returns the user languages.java.lang.StringgetMedia()Returns the CSS media to use.java.lang.StringgetUISpecialization()Returns the UI resource specialization to use.java.lang.StringgetUserStyleSheetURI()Returns the user stylesheet uri.java.lang.String[]getVisitedURIs()Asks Application for a list of recently visited URIjava.lang.StringgetXMLParserClassName()Returns the XML parser class name.booleanisSelectionOverlayXORMode()Returns true if the selection overlay is painted in XOR mode, false otherwise.booleanisXMLParserValidating()Returns true if the XML parser must be in validation mode, false otherwise.voidopenLink(java.lang.String url)Opens the given link in a new window.voidshowPreferenceDialog(JSVGViewerFrame f)Shows the preference dialog.
-
-
-
Method Detail
-
createAndShowJSVGViewerFrame
JSVGViewerFrame createAndShowJSVGViewerFrame()
Creates and shows a new viewer frame.
-
closeJSVGViewerFrame
void closeJSVGViewerFrame(JSVGViewerFrame f)
Closes the given viewer frame.
-
createExitAction
javax.swing.Action createExitAction(JSVGViewerFrame vf)
Creates an action to exit the application.
-
openLink
void openLink(java.lang.String url)
Opens the given link in a new window.
-
getXMLParserClassName
java.lang.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
void showPreferenceDialog(JSVGViewerFrame f)
Shows the preference dialog.
-
getLanguages
java.lang.String getLanguages()
Returns the user languages.
-
getUserStyleSheetURI
java.lang.String getUserStyleSheetURI()
Returns the user stylesheet uri.- Returns:
- null if no user style sheet was specified.
-
getDefaultFontFamily
java.lang.String getDefaultFontFamily()
Returns the default value for the CSS "font-family" property
-
getMedia
java.lang.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
boolean canLoadScriptType(java.lang.String scriptType)
Returns true if the input scriptType can be loaded in this application.
-
getAllowedScriptOrigin
int getAllowedScriptOrigin()
Returns the allowed origins for scripts.- See Also:
ResourceOrigin
-
getAllowedExternalResourceOrigin
int getAllowedExternalResourceOrigin()
Returns the allowed origins for external resources.- See Also:
ResourceOrigin
-
addVisitedURI
void addVisitedURI(java.lang.String uri)
Notifies Application of recently visited URI
-
getVisitedURIs
java.lang.String[] getVisitedURIs()
Asks Application for a list of recently visited URI
-
getUISpecialization
java.lang.String getUISpecialization()
Returns the UI resource specialization to use.
-
-