link start!
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
public interface Bridge {
|
||||
Bridge getInstance();
|
||||
|
||||
String getLocalName();
|
||||
|
||||
String getNamespaceURI();
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import java.util.Iterator;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface BridgeExtension {
|
||||
String getAuthor();
|
||||
|
||||
String getContactAddress();
|
||||
|
||||
String getDescription();
|
||||
|
||||
Iterator getImplementedExtensions();
|
||||
|
||||
float getPriority();
|
||||
|
||||
String getURL();
|
||||
|
||||
boolean isDynamicElement(Element element);
|
||||
|
||||
void registerTags(BridgeContext bridgeContext);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.apache.batik.css.engine.CSSEngineEvent;
|
||||
import org.apache.batik.dom.svg.AnimatedLiveAttributeValue;
|
||||
import org.w3c.dom.events.MutationEvent;
|
||||
|
||||
public interface BridgeUpdateHandler {
|
||||
void dispose();
|
||||
|
||||
void handleAnimatedAttributeChanged(AnimatedLiveAttributeValue animatedLiveAttributeValue);
|
||||
|
||||
void handleCSSEngineEvent(CSSEngineEvent cSSEngineEvent);
|
||||
|
||||
void handleDOMAttrModifiedEvent(MutationEvent mutationEvent);
|
||||
|
||||
void handleDOMCharacterDataModified(MutationEvent mutationEvent);
|
||||
|
||||
void handleDOMNodeInsertedEvent(MutationEvent mutationEvent);
|
||||
|
||||
void handleDOMNodeRemovedEvent(MutationEvent mutationEvent);
|
||||
|
||||
void handleOtherAnimationChanged(String str);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.apache.batik.ext.awt.image.renderable.ClipRable;
|
||||
import org.apache.batik.gvt.GraphicsNode;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface ClipBridge extends Bridge {
|
||||
ClipRable createClip(BridgeContext bridgeContext, Element element, Element element2, GraphicsNode graphicsNode);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.apache.batik.gvt.RootGraphicsNode;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
public interface DocumentBridge extends Bridge {
|
||||
void buildGraphicsNode(BridgeContext bridgeContext, Document document, RootGraphicsNode rootGraphicsNode);
|
||||
|
||||
RootGraphicsNode createGraphicsNode(BridgeContext bridgeContext, Document document);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
public interface ErrorConstants {
|
||||
public static final String ERR_ATTRIBUTE_MISSING = "attribute.missing";
|
||||
public static final String ERR_ATTRIBUTE_VALUE_MALFORMED = "attribute.malformed";
|
||||
public static final String ERR_CSS_LENGTH_NEGATIVE = "css.length.negative";
|
||||
public static final String ERR_CSS_URI_BAD_TARGET = "css.uri.badTarget";
|
||||
public static final String ERR_LENGTH_NEGATIVE = "length.negative";
|
||||
public static final String ERR_URI_BAD_TARGET = "uri.badTarget";
|
||||
public static final String ERR_URI_IMAGE_BROKEN = "uri.image.broken";
|
||||
public static final String ERR_URI_IMAGE_INVALID = "uri.image.invalid";
|
||||
public static final String ERR_URI_IO = "uri.io";
|
||||
public static final String ERR_URI_MALFORMED = "uri.malformed";
|
||||
public static final String ERR_URI_REFERENCE_A_DOCUMENT = "uri.referenceDocument";
|
||||
public static final String ERR_URI_UNSECURE = "uri.unsecure";
|
||||
public static final String ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES = "xlink.href.circularDependencies";
|
||||
public static final String URI_IMAGE_ERROR = "uri.image.error";
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
public interface ExternalResourceSecurity {
|
||||
void checkLoadExternalResource();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.apache.batik.ext.awt.image.renderable.Filter;
|
||||
import org.apache.batik.gvt.GraphicsNode;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface FilterBridge extends Bridge {
|
||||
Filter createFilter(BridgeContext bridgeContext, Element element, Element element2, GraphicsNode graphicsNode);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import java.awt.geom.Rectangle2D;
|
||||
import java.util.Map;
|
||||
import org.apache.batik.ext.awt.image.renderable.Filter;
|
||||
import org.apache.batik.gvt.GraphicsNode;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface FilterPrimitiveBridge extends Bridge {
|
||||
Filter createFilter(BridgeContext bridgeContext, Element element, Element element2, GraphicsNode graphicsNode, Filter filter, Rectangle2D rectangle2D, Map map);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface GenericBridge extends Bridge {
|
||||
void handleElement(BridgeContext bridgeContext, Element element);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.apache.batik.gvt.GraphicsNode;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface GraphicsNodeBridge extends Bridge {
|
||||
void buildGraphicsNode(BridgeContext bridgeContext, Element element, GraphicsNode graphicsNode);
|
||||
|
||||
GraphicsNode createGraphicsNode(BridgeContext bridgeContext, Element element);
|
||||
|
||||
boolean getDisplay(Element element);
|
||||
|
||||
Bridge getInstance();
|
||||
|
||||
boolean isComposite();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.apache.batik.gvt.Marker;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface MarkerBridge extends Bridge {
|
||||
Marker createMarker(BridgeContext bridgeContext, Element element, Element element2);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import org.apache.batik.gvt.GraphicsNode;
|
||||
import org.apache.batik.gvt.filter.Mask;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface MaskBridge extends Bridge {
|
||||
Mask createMask(BridgeContext bridgeContext, Element element, Element element2, GraphicsNode graphicsNode);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
public interface NoRepaintRunnable extends Runnable {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import java.awt.Paint;
|
||||
import org.apache.batik.gvt.GraphicsNode;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface PaintBridge extends Bridge {
|
||||
Paint createPaint(BridgeContext bridgeContext, Element element, Element element2, GraphicsNode graphicsNode, float f);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
public interface ScriptSecurity {
|
||||
void checkLoadScript();
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
public interface UpdateManagerListener {
|
||||
void managerResumed(UpdateManagerEvent updateManagerEvent);
|
||||
|
||||
void managerStarted(UpdateManagerEvent updateManagerEvent);
|
||||
|
||||
void managerStopped(UpdateManagerEvent updateManagerEvent);
|
||||
|
||||
void managerSuspended(UpdateManagerEvent updateManagerEvent);
|
||||
|
||||
void updateCompleted(UpdateManagerEvent updateManagerEvent);
|
||||
|
||||
void updateFailed(UpdateManagerEvent updateManagerEvent);
|
||||
|
||||
void updateStarted(UpdateManagerEvent updateManagerEvent);
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
import java.awt.Cursor;
|
||||
import java.awt.Point;
|
||||
import java.awt.geom.AffineTransform;
|
||||
import java.awt.geom.Dimension2D;
|
||||
import org.apache.batik.gvt.event.EventDispatcher;
|
||||
import org.apache.batik.gvt.text.Mark;
|
||||
import org.apache.batik.util.ParsedURL;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.svg.SVGAElement;
|
||||
import org.w3c.dom.svg.SVGDocument;
|
||||
|
||||
public interface UserAgent {
|
||||
void checkLoadExternalResource(ParsedURL parsedURL, ParsedURL parsedURL2) throws SecurityException;
|
||||
|
||||
void checkLoadScript(String str, ParsedURL parsedURL, ParsedURL parsedURL2) throws SecurityException;
|
||||
|
||||
void deselectAll();
|
||||
|
||||
void displayError(Exception exception);
|
||||
|
||||
void displayMessage(String str);
|
||||
|
||||
String getAlternateStyleSheet();
|
||||
|
||||
float getBolderFontWeight(float f);
|
||||
|
||||
SVGDocument getBrokenLinkDocument(Element element, String str, String str2);
|
||||
|
||||
Point getClientAreaLocationOnScreen();
|
||||
|
||||
String getDefaultFontFamily();
|
||||
|
||||
EventDispatcher getEventDispatcher();
|
||||
|
||||
ExternalResourceSecurity getExternalResourceSecurity(ParsedURL parsedURL, ParsedURL parsedURL2);
|
||||
|
||||
String getLanguages();
|
||||
|
||||
float getLighterFontWeight(float f);
|
||||
|
||||
String getMedia();
|
||||
|
||||
float getMediumFontSize();
|
||||
|
||||
float getPixelToMM();
|
||||
|
||||
float getPixelUnitToMillimeter();
|
||||
|
||||
ScriptSecurity getScriptSecurity(String str, ParsedURL parsedURL, ParsedURL parsedURL2);
|
||||
|
||||
AffineTransform getTransform();
|
||||
|
||||
String getUserStyleSheetURI();
|
||||
|
||||
Dimension2D getViewportSize();
|
||||
|
||||
String getXMLParserClassName();
|
||||
|
||||
void handleElement(Element element, Object obj);
|
||||
|
||||
boolean hasFeature(String str);
|
||||
|
||||
boolean isXMLParserValidating();
|
||||
|
||||
void openLink(SVGAElement sVGAElement);
|
||||
|
||||
void registerExtension(BridgeExtension bridgeExtension);
|
||||
|
||||
void setSVGCursor(Cursor cursor);
|
||||
|
||||
void setTextSelection(Mark mark, Mark mark2);
|
||||
|
||||
void setTransform(AffineTransform affineTransform);
|
||||
|
||||
void showAlert(String str);
|
||||
|
||||
boolean showConfirm(String str);
|
||||
|
||||
String showPrompt(String str);
|
||||
|
||||
String showPrompt(String str, String str2);
|
||||
|
||||
boolean supportExtension(String str);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.batik.bridge;
|
||||
|
||||
public interface Viewport {
|
||||
float getHeight();
|
||||
|
||||
float getWidth();
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 920 B |
Binary file not shown.
|
After Width: | Height: | Size: 907 B |
@@ -0,0 +1,8 @@
|
||||
package org.apache.batik.bridge.svg12;
|
||||
|
||||
import java.util.EventListener;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface BindingListener extends EventListener {
|
||||
void bindingChanged(Element element, Element element2);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.apache.batik.bridge.svg12;
|
||||
|
||||
import java.util.EventListener;
|
||||
|
||||
public interface ContentSelectionChangedListener extends EventListener {
|
||||
void contentSelectionChanged(ContentSelectionChangedEvent contentSelectionChangedEvent);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.apache.batik.bridge.svg12;
|
||||
|
||||
import org.apache.batik.bridge.BridgeUpdateHandler;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
public interface SVG12BridgeUpdateHandler extends BridgeUpdateHandler {
|
||||
void handleBindingEvent(Element element, Element element2);
|
||||
|
||||
void handleContentSelectionChangedEvent(ContentSelectionChangedEvent contentSelectionChangedEvent);
|
||||
}
|
||||
Reference in New Issue
Block a user