Java Doc for UserAgent.java in  » Graphic-Library » batik » org » apache » batik » bridge » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » batik » org.apache.batik.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.batik.bridge.UserAgent

All known Subclasses:   org.apache.batik.bridge.UserAgentAdapter,
UserAgent
public interface UserAgent (Code)
An interface that provides access to the User Agent informations needed by the bridge.
author:
   Christophe Jolif
author:
   Stephane Hillion
version:
   $Id: UserAgent.java 475477 2006-11-15 22:44:28Z cam $




Method Summary
 voidcheckLoadExternalResource(ParsedURL resourceURL, ParsedURL docURL)
     This method throws a SecurityException if the resource found at url and referenced from docURL should not be loaded. This is a convenience method to call checkLoadExternalResource on the ExternalResourceSecurity strategy returned by getExternalResourceSecurity.
Parameters:
  resourceURL - url for the resource, as defined inthe resource's xlink:href attribute.
 voidcheckLoadScript(String scriptType, ParsedURL scriptURL, ParsedURL docURL)
     This method throws a SecurityException if the script of given type, found at url and referenced from docURL should not be loaded. This is a convenience method to call checkLoadScript on the ScriptSecurity strategy returned by getScriptSecurity.
Parameters:
  scriptType - type of script, as found in the type attribute of the <script> element.
Parameters:
  scriptURL - url for the script, as defined inthe script's xlink:href attribute.
 voiddeselectAll()
     Informs the user agent that the text selection should be cleared.
 voiddisplayError(Exception ex)
     Displays an error resulting from the specified Exception.
 voiddisplayMessage(String message)
     Displays a message in the User Agent interface.
 StringgetAlternateStyleSheet()
     Returns this user agent's alternate style-sheet title.
 floatgetBolderFontWeight(float f)
     Returns a bolder font-weight.
 SVGDocumentgetBrokenLinkDocument(Element e, String url, String message)
     This method should return an image to be displayed when an image can't be loaded.
 PointgetClientAreaLocationOnScreen()
     Returns the location on the screen of the client area in the UserAgent.
 StringgetDefaultFontFamily()
     Returns the default font family.
 EventDispatchergetEventDispatcher()
     Returns the event dispatcher to use.
 ExternalResourceSecuritygetExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL)
     Returns the security settings for the given resource url and document url
Parameters:
  resourceURL - url for the resource, as defined inthe resource's xlink:href attribute.
 StringgetLanguages()
     Returns the language settings.
 floatgetLighterFontWeight(float f)
     Returns a lighter font-weight.
 StringgetMedia()
     Returns this user agent's CSS media.
 floatgetMediumFontSize()
     Returns the medium font size.
 floatgetPixelToMM()
     Returns the size of a px CSS unit in millimeters.
 floatgetPixelUnitToMillimeter()
     Returns the size of a px CSS unit in millimeters.
 ScriptSecuritygetScriptSecurity(String scriptType, ParsedURL scriptURL, ParsedURL docURL)
     Returns the security settings for the given script type, script url and document url
Parameters:
  scriptType - type of script, as found in the type attribute of the <script> element.
Parameters:
  scriptURL - url for the script, as defined inthe script's xlink:href attribute.
 AffineTransformgetTransform()
     Returns the AffineTransform currently applied to the drawing by the UserAgent.
 StringgetUserStyleSheetURI()
     Returns the user stylesheet uri.
 Dimension2DgetViewportSize()
     Returns the default size of the viewport.
 StringgetXMLParserClassName()
     Returns the class name of the XML parser.
 voidhandleElement(Element elt, Object data)
     Notifies the UserAgent that the input element has been found in the document.
 booleanhasFeature(String s)
     Tells whether the given feature is supported by this user agent.
 booleanisXMLParserValidating()
     Returns true if the XML parser must be in validation mode, false otherwise.
 voidopenLink(SVGAElement elt)
     Opens a link.
 voidregisterExtension(BridgeExtension ext)
     Lets the bridge tell the user agent that the following extension is supported by the bridge.
 voidsetSVGCursor(Cursor cursor)
     Informs the user agent to change the cursor.
 voidsetTextSelection(Mark start, Mark end)
     Informs the user agent that the text selection has changed.
 voidsetTransform(AffineTransform at)
     Sets the AffineTransform currently applied to the drawing by the UserAgent.
 voidshowAlert(String message)
     Shows an alert dialog box.
 booleanshowConfirm(String message)
     Shows a confirm dialog box.
 StringshowPrompt(String message)
     Shows a prompt dialog box.
 StringshowPrompt(String message, String defaultValue)
     Shows a prompt dialog box.
 booleansupportExtension(String s)
     Tells whether the given extension is supported by this user agent.



Method Detail
checkLoadExternalResource
void checkLoadExternalResource(ParsedURL resourceURL, ParsedURL docURL) throws SecurityException(Code)
This method throws a SecurityException if the resource found at url and referenced from docURL should not be loaded. This is a convenience method to call checkLoadExternalResource on the ExternalResourceSecurity strategy returned by getExternalResourceSecurity.
Parameters:
  resourceURL - url for the resource, as defined inthe resource's xlink:href attribute. If thatattribute was empty, then this parameter shouldbe null
Parameters:
  docURL - url for the document into which the resource was found.



checkLoadScript
void checkLoadScript(String scriptType, ParsedURL scriptURL, ParsedURL docURL) throws SecurityException(Code)
This method throws a SecurityException if the script of given type, found at url and referenced from docURL should not be loaded. This is a convenience method to call checkLoadScript on the ScriptSecurity strategy returned by getScriptSecurity.
Parameters:
  scriptType - type of script, as found in the type attribute of the <script> element.
Parameters:
  scriptURL - url for the script, as defined inthe script's xlink:href attribute. If thatattribute was empty, then this parameter shouldbe null
Parameters:
  docURL - url for the document into which the script was found.



deselectAll
void deselectAll()(Code)
Informs the user agent that the text selection should be cleared.



displayError
void displayError(Exception ex)(Code)
Displays an error resulting from the specified Exception.



displayMessage
void displayMessage(String message)(Code)
Displays a message in the User Agent interface.



getAlternateStyleSheet
String getAlternateStyleSheet()(Code)
Returns this user agent's alternate style-sheet title.



getBolderFontWeight
float getBolderFontWeight(float f)(Code)
Returns a bolder font-weight.



getBrokenLinkDocument
SVGDocument getBrokenLinkDocument(Element e, String url, String message)(Code)
This method should return an image to be displayed when an image can't be loaded. If it returns 'null' then a BridgeException will be thrown.
Parameters:
  e - The <image> element that can't be loaded.
Parameters:
  url - The resolved url that can't be loaded.
Parameters:
  message - As best as can be determined the reason it can't beloaded (not available, corrupt, unknown format, ...).



getClientAreaLocationOnScreen
Point getClientAreaLocationOnScreen()(Code)
Returns the location on the screen of the client area in the UserAgent.



getDefaultFontFamily
String getDefaultFontFamily()(Code)
Returns the default font family.



getEventDispatcher
EventDispatcher getEventDispatcher()(Code)
Returns the event dispatcher to use.



getExternalResourceSecurity
ExternalResourceSecurity getExternalResourceSecurity(ParsedURL resourceURL, ParsedURL docURL)(Code)
Returns the security settings for the given resource url and document url
Parameters:
  resourceURL - url for the resource, as defined inthe resource's xlink:href attribute. If thatattribute was empty, then this parameter shouldbe null
Parameters:
  docURL - url for the document into which the resource was found.



getLanguages
String getLanguages()(Code)
Returns the language settings.



getLighterFontWeight
float getLighterFontWeight(float f)(Code)
Returns a lighter font-weight.



getMedia
String getMedia()(Code)
Returns this user agent's CSS media.



getMediumFontSize
float getMediumFontSize()(Code)
Returns the medium font size.



getPixelToMM
float getPixelToMM()(Code)
Returns the size of a px CSS unit in millimeters. This will be removed after next release.
See Also:   UserAgent.getPixelUnitToMillimeter()



getPixelUnitToMillimeter
float getPixelUnitToMillimeter()(Code)
Returns the size of a px CSS unit in millimeters.



getScriptSecurity
ScriptSecurity getScriptSecurity(String scriptType, ParsedURL scriptURL, ParsedURL docURL)(Code)
Returns the security settings for the given script type, script url and document url
Parameters:
  scriptType - type of script, as found in the type attribute of the <script> element.
Parameters:
  scriptURL - url for the script, as defined inthe script's xlink:href attribute. If thatattribute was empty, then this parameter shouldbe null
Parameters:
  docURL - url for the document into which the script was found.



getTransform
AffineTransform getTransform()(Code)
Returns the AffineTransform currently applied to the drawing by the UserAgent.



getUserStyleSheetURI
String getUserStyleSheetURI()(Code)
Returns the user stylesheet uri. null if no user style sheet was specified.



getViewportSize
Dimension2D getViewportSize()(Code)
Returns the default size of the viewport.



getXMLParserClassName
String getXMLParserClassName()(Code)
Returns the class name of the XML parser.



handleElement
void handleElement(Element elt, Object data)(Code)
Notifies the UserAgent that the input element has been found in the document. This is sometimes called, for example, to handle <a> or <title> elements in a UserAgent-dependant way.



hasFeature
boolean hasFeature(String s)(Code)
Tells whether the given feature is supported by this user agent.



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



openLink
void openLink(SVGAElement elt)(Code)
Opens a link.
Parameters:
  elt - The activated link element.



registerExtension
void registerExtension(BridgeExtension ext)(Code)
Lets the bridge tell the user agent that the following extension is supported by the bridge.



setSVGCursor
void setSVGCursor(Cursor cursor)(Code)
Informs the user agent to change the cursor.
Parameters:
  cursor - the new cursor



setTextSelection
void setTextSelection(Mark start, Mark end)(Code)
Informs the user agent that the text selection has changed.
Parameters:
  start - The Mark for the start of the selection.
Parameters:
  end - The Mark for the end of the selection.



setTransform
void setTransform(AffineTransform at)(Code)
Sets the AffineTransform currently applied to the drawing by the UserAgent.



showAlert
void showAlert(String message)(Code)
Shows an alert dialog box.



showConfirm
boolean showConfirm(String message)(Code)
Shows a confirm dialog box.



showPrompt
String showPrompt(String message)(Code)
Shows a prompt dialog box.



showPrompt
String showPrompt(String message, String defaultValue)(Code)
Shows a prompt dialog box.



supportExtension
boolean supportExtension(String s)(Code)
Tells whether the given extension is supported by this user agent.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.