org.apache.batik.apps.svgbrowser

Interface Application

public interface Application

This interface represents a SVG viewer application.
Method Summary
voidaddVisitedURI(String uri)
Notifies Application of recently visited URI
booleancanLoadScriptType(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.
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.
StringgetDefaultFontFamily()
Returns the default value for the CSS "font-family" property
StringgetLanguages()
Returns the user languages.
StringgetMedia()
Returns the CSS media to use.
StringgetUISpecialization()
Returns the UI resource specialization to use.
StringgetUserStyleSheetURI()
Returns the user stylesheet uri.
String[]getVisitedURIs()
Asks Application for a list of recently visited URI
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(String url)
Opens the given link in a new window.
voidshowPreferenceDialog(JSVGViewerFrame f)
Shows the preference dialog.

Method Detail

addVisitedURI

public void addVisitedURI(String uri)
Notifies Application of recently visited URI

canLoadScriptType

public boolean canLoadScriptType(String scriptType)
Returns true if the input scriptType can be loaded in this application.

closeJSVGViewerFrame

public void closeJSVGViewerFrame(JSVGViewerFrame f)
Closes the given viewer frame.

createAndShowJSVGViewerFrame

public JSVGViewerFrame createAndShowJSVGViewerFrame()
Creates and shows a new viewer frame.

createExitAction

public Action createExitAction(JSVGViewerFrame vf)
Creates an action to exit the application.

getAllowedExternalResourceOrigin

public int getAllowedExternalResourceOrigin()
Returns the allowed origins for external resources.

See Also: ResourceOrigin

getAllowedScriptOrigin

public int getAllowedScriptOrigin()
Returns the allowed origins for scripts.

See Also: ResourceOrigin

getDefaultFontFamily

public String getDefaultFontFamily()
Returns the default value for the CSS "font-family" property

getLanguages

public String getLanguages()
Returns the user languages.

getMedia

public String getMedia()
Returns the CSS media to use.

Returns: empty string if no CSS media was specified.

getUISpecialization

public String getUISpecialization()
Returns the UI resource specialization to use.

getUserStyleSheetURI

public String getUserStyleSheetURI()
Returns the user stylesheet uri.

Returns: null if no user style sheet was specified.

getVisitedURIs

public String[] getVisitedURIs()
Asks Application for a list of recently visited URI

getXMLParserClassName

public String getXMLParserClassName()
Returns the XML parser class name.

isSelectionOverlayXORMode

public boolean isSelectionOverlayXORMode()
Returns true if the selection overlay is painted in XOR mode, false otherwise.

isXMLParserValidating

public boolean isXMLParserValidating()
Returns true if the XML parser must be in validation mode, false otherwise.

openLink

public void openLink(String url)
Opens the given link in a new window.

showPreferenceDialog

public void showPreferenceDialog(JSVGViewerFrame f)
Shows the preference dialog.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.