1 18 package org.apache.batik.swing.svg; 19 20 import org.apache.batik.bridge.ExternalResourceSecurity; 21 import org.apache.batik.bridge.ScriptSecurity; 22 import org.apache.batik.util.ParsedURL; 23 import org.w3c.dom.Element ; 24 25 32 public interface SVGUserAgent { 33 34 37 void displayError(String message); 38 39 42 void displayError(Exception ex); 43 44 48 void displayMessage(String message); 49 50 53 void showAlert(String message); 54 55 58 String showPrompt(String message); 59 60 63 String showPrompt(String message, String defaultValue); 64 65 68 boolean showConfirm(String message); 69 70 73 float getPixelUnitToMillimeter(); 74 75 80 float getPixelToMM(); 81 82 85 String getDefaultFontFamily(); 86 87 90 float getMediumFontSize(); 91 92 95 float getLighterFontWeight(float f); 96 97 100 float getBolderFontWeight(float f); 101 102 105 String getLanguages(); 106 107 111 String getUserStyleSheetURI(); 112 113 116 String getXMLParserClassName(); 117 118 122 boolean isXMLParserValidating(); 123 124 127 String getMedia(); 128 129 132 String getAlternateStyleSheet(); 133 134 139 void openLink(String uri, boolean newc); 140 141 145 boolean supportExtension(String s); 146 147 154 void handleElement(Element elt, Object data); 155 156 157 170 ScriptSecurity getScriptSecurity(String scriptType, 171 ParsedURL scriptURL, 172 ParsedURL docURL); 173 174 192 void checkLoadScript(String scriptType, 193 ParsedURL scriptURL, 194 ParsedURL docURL) throws SecurityException ; 195 196 207 ExternalResourceSecurity 208 getExternalResourceSecurity(ParsedURL resourceURL, 209 ParsedURL docURL); 210 211 227 void checkLoadExternalResource(ParsedURL resourceURL, 228 ParsedURL docURL) throws SecurityException ; 229 230 } 231 | Popular Tags |