From 8de86c3cedf09716a852ed88361b3915e384e88b Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 24 Mar 2008 03:50:12 +0000 Subject: [PATCH] Finished multiple inheritance delegation --- .../dom/stylesheets/DocumentStyleImpl.java | 2 + .../dom/svg/SVGAnimatedPathDataImpl.java | 2 + .../dom/svg/SVGAnimatedPointsImpl.java | 2 + .../inkscape/dom/svg/SVGFitToViewBoxImpl.java | 2 + .../org/inkscape/dom/svg/SVGGElementImpl.java | 118 ++++++++---- .../inkscape/dom/svg/SVGGlyphElementImpl.java | 18 +- .../dom/svg/SVGGlyphRefElementImpl.java | 22 ++- .../dom/svg/SVGGradientElementImpl.java | 27 ++- .../inkscape/dom/svg/SVGImageElementImpl.java | 122 ++++++++---- .../inkscape/dom/svg/SVGLineElementImpl.java | 119 ++++++++---- .../inkscape/dom/svg/SVGMPathElementImpl.java | 17 +- .../dom/svg/SVGMarkerElementImpl.java | 47 +++-- .../inkscape/dom/svg/SVGMaskElementImpl.java | 55 ++++-- .../dom/svg/SVGMissingGlyphElementImpl.java | 16 +- .../inkscape/dom/svg/SVGPathElementImpl.java | 137 ++++++++++---- .../dom/svg/SVGPatternElementImpl.java | 107 +++++------ .../dom/svg/SVGPolygonElementImpl.java | 126 +++++++++---- .../dom/svg/SVGPolylineElementImpl.java | 126 +++++++++---- .../inkscape/dom/svg/SVGRectElementImpl.java | 117 ++++++++---- .../inkscape/dom/svg/SVGSVGElementImpl.java | 177 ++++++++++++------ .../dom/svg/SVGScriptElementImpl.java | 18 +- .../inkscape/dom/svg/SVGStopElementImpl.java | 17 +- .../dom/svg/SVGSwitchElementImpl.java | 118 ++++++++---- .../dom/svg/SVGSymbolElementImpl.java | 108 ++++++++--- .../inkscape/dom/svg/SVGTRefElementImpl.java | 11 +- .../dom/svg/SVGTextContentElementImpl.java | 94 +++++++--- .../inkscape/dom/svg/SVGTextElementImpl.java | 32 +++- .../dom/svg/SVGTextPathElementImpl.java | 11 +- .../inkscape/dom/svg/SVGTitleElementImpl.java | 35 +++- .../inkscape/dom/svg/SVGUseElementImpl.java | 121 ++++++++---- .../inkscape/dom/svg/SVGViewElementImpl.java | 28 ++- .../org/inkscape/dom/svg/SVGViewSpecImpl.java | 15 +- .../inkscape/dom/svg/SVGZoomAndPanImpl.java | 2 + .../inkscape/dom/views/AbstractViewImpl.java | 2 + .../inkscape/dom/views/DocumentViewImpl.java | 2 + 35 files changed, 1381 insertions(+), 592 deletions(-) diff --git a/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java index b1aedfd90..924e06d4e 100644 --- a/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java +++ b/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java @@ -33,6 +33,8 @@ import org.w3c.dom.stylesheets.StyleSheetList; public class DocumentStyleImpl + extends + org.inkscape.cmn.BaseInterface implements org.w3c.dom.stylesheets.DocumentStyle { diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java index 3a7aea7bc..a26e0b5f7 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java @@ -33,6 +33,8 @@ import org.w3c.dom.svg.SVGPathSegList; public class SVGAnimatedPathDataImpl + extends + org.inkscape.cmn.BaseInterface implements org.w3c.dom.svg.SVGAnimatedPathData { diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java index c95fdd6a4..3b79d667a 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java @@ -32,6 +32,8 @@ import org.w3c.dom.svg.SVGPointList; public class SVGAnimatedPointsImpl + extends + org.inkscape.cmn.BaseInterface implements org.w3c.dom.svg.SVGAnimatedPoints { diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java index 2a2e77df2..a319e03bf 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java @@ -35,6 +35,8 @@ import org.w3c.dom.svg.SVGAnimatedPreserveAspectRatio; public class SVGFitToViewBoxImpl + extends + org.inkscape.cmn.BaseInterface implements org.w3c.dom.svg.SVGFitToViewBox { diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java index cf0fd1e28..fcc026984 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java @@ -53,70 +53,114 @@ public class SVGGElementImpl //EventTarget implements org.w3c.dom.svg.SVGGElement { + +public SVGGElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget + } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java index 663498389..b5dfc9fc0 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java @@ -42,11 +42,23 @@ public class SVGGlyphElementImpl //SVGStylable implements org.w3c.dom.svg.SVGGlyphElement { +public SVGGlyphElementImpl() +{ + imbue(_SVGStylable = new SVGStylableImpl()); +} + + + //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable + } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java index 18faa6161..8f72f4fec 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java @@ -44,17 +44,31 @@ public class SVGGlyphRefElementImpl //SVGStylable implements org.w3c.dom.svg.SVGGlyphRefElement { +public SVGGlyphRefElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable + public native String getGlyphRef( ); public native void setGlyphRef( String glyphRef ) throws DOMException; diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java index 7153eb825..5d4206901 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java @@ -47,21 +47,38 @@ public class SVGGradientElementImpl //SVGUnitTypes implements org.w3c.dom.svg.SVGGradientElement { + +public SVGGradientElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); +} + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable + public native SVGAnimatedEnumeration getGradientUnits( ); public native SVGAnimatedTransformList getGradientTransform( ); public native SVGAnimatedEnumeration getSpreadMethod( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java index aad2a1ae5..d7f287fd1 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java @@ -55,73 +55,119 @@ public class SVGImageElementImpl //EventTarget implements org.w3c.dom.svg.SVGImageElement { + +public SVGImageElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget public native SVGAnimatedLength getX( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java index 76ce2cc41..74a5f7a61 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java @@ -54,73 +54,112 @@ public class SVGLineElementImpl //EventTarget implements org.w3c.dom.svg.SVGLineElement { -//from SVGURIReference -public native SVGAnimatedString getHref( ); -//end SVGURIReference + +public SVGLineElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java index 76f800bf0..9d7c1c6ee 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java @@ -38,12 +38,25 @@ public class SVGMPathElementImpl //SVGExternalResourcesRequired implements org.w3c.dom.svg.SVGMPathElement { + +public SVGMPathElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference + //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java index effb4aa39..656ae0f17 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java @@ -47,28 +47,51 @@ public class SVGMarkerElementImpl //SVGFitToViewBox implements org.w3c.dom.svg.SVGMarkerElement { + +public SVGMarkerElementImpl() +{ + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); +} + //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGFitToViewBox -public native SVGAnimatedRect getViewBox( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +SVGFitToViewBoxImpl _SVGFitToViewBox; +public SVGAnimatedRect getViewBox() + { return _SVGFitToViewBox.getViewBox(); } +public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() + { return _SVGFitToViewBox.getPreserveAspectRatio(); } //end SVGFitToViewBox diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java index b233220ef..507095771 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java @@ -46,32 +46,59 @@ public class SVGMaskElementImpl //SVGUnitTypes implements org.w3c.dom.svg.SVGMaskElement { + +public SVGMaskElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); +} + + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable + public native SVGAnimatedEnumeration getMaskUnits( ); public native SVGAnimatedEnumeration getMaskContentUnits( ); public native SVGAnimatedLength getX( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java index 063d01ea3..cbb115ee1 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java @@ -41,10 +41,20 @@ public class SVGMissingGlyphElementImpl //SVGStylable implements org.w3c.dom.svg.SVGMissingGlyphElement { + +public SVGMissingGlyphElementImpl() +{ + imbue(_SVGStylable = new SVGStylableImpl()); +} + //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java index 86b9f079a..692c13213 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java @@ -53,76 +53,131 @@ public class SVGPathElementImpl //SVGAnimatedPathData implements org.w3c.dom.svg.SVGPathElement { + +public SVGPathElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); + imbue(_SVGAnimatedPathData = new SVGAnimatedPathDataImpl()); +} + + +//from SVGURIReference +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } +//end SVGURIReference + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget //from SVGAnimatedPathData -public native SVGPathSegList getPathSegList( ); -public native SVGPathSegList getNormalizedPathSegList( ); -public native SVGPathSegList getAnimatedPathSegList( ); -public native SVGPathSegList getAnimatedNormalizedPathSegList( ); +SVGAnimatedPathDataImpl _SVGAnimatedPathData; +public SVGPathSegList getPathSegList() + { return _SVGAnimatedPathData.getPathSegList(); } +public SVGPathSegList getNormalizedPathSegList() + { return _SVGAnimatedPathData.getNormalizedPathSegList(); } +public SVGPathSegList getAnimatedPathSegList() + { return _SVGAnimatedPathData.getAnimatedPathSegList(); } +public SVGPathSegList getAnimatedNormalizedPathSegList() + { return _SVGAnimatedPathData.getAnimatedNormalizedPathSegList(); } //end SVGAnimatedPathData public native SVGAnimatedNumber getPathLength( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java index 675868424..9d8c774fe 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java @@ -55,81 +55,76 @@ public class SVGPatternElementImpl //SVGUnitTypes implements org.w3c.dom.svg.SVGPatternElement { + +public SVGPatternElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable -//from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; -//end SVGLocatable - -//from EventTarget -public native void addEventListener(String type, - EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, - EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); -//end EventTarget - //from SVGFitToViewBox -public native SVGAnimatedRect getViewBox( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +SVGFitToViewBoxImpl _SVGFitToViewBox; +public SVGAnimatedRect getViewBox() + { return _SVGFitToViewBox.getViewBox(); } +public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() + { return _SVGFitToViewBox.getPreserveAspectRatio(); } //end SVGFitToViewBox + public native SVGAnimatedEnumeration getPatternUnits( ); public native SVGAnimatedEnumeration getPatternContentUnits( ); public native SVGAnimatedTransformList getPatternTransform( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java index e1e29e027..a93eca993 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java @@ -55,74 +55,122 @@ public class SVGPolygonElementImpl //SVGAnimatedPoints implements org.w3c.dom.svg.SVGPolygonElement { + +public SVGPolygonElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); + imbue(_SVGAnimatedPoints = new SVGAnimatedPointsImpl()); +} + + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget + //from SVGAnimatedPoints -public native SVGPointList getPoints( ); -public native SVGPointList getAnimatedPoints( ); +SVGAnimatedPointsImpl _SVGAnimatedPoints; +public SVGPointList getPoints() + { return _SVGAnimatedPoints.getPoints(); } +public SVGPointList getAnimatedPoints() + { return _SVGAnimatedPoints.getAnimatedPoints(); } //end SVGAnimatedPoints diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java index f1a48ae2e..ea017691d 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java @@ -54,74 +54,122 @@ public class SVGPolylineElementImpl //SVGAnimatedPoints implements org.w3c.dom.svg.SVGPolylineElement { + +public SVGPolylineElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); + imbue(_SVGAnimatedPoints = new SVGAnimatedPointsImpl()); +} + + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget + //from SVGAnimatedPoints -public native SVGPointList getPoints( ); -public native SVGPointList getAnimatedPoints( ); +SVGAnimatedPointsImpl _SVGAnimatedPoints; +public SVGPointList getPoints() + { return _SVGAnimatedPoints.getPoints(); } +public SVGPointList getAnimatedPoints() + { return _SVGAnimatedPoints.getAnimatedPoints(); } //end SVGAnimatedPoints } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java index 8b721d8e3..e0a3aefc7 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java @@ -53,69 +53,112 @@ public class SVGRectElementImpl //EventTarget implements org.w3c.dom.svg.SVGRectElement { + +public SVGRectElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget public native SVGAnimatedLength getX( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java index 818710054..a98db9e07 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java @@ -68,101 +68,164 @@ public class SVGSVGElementImpl //DocumentCSS implements org.w3c.dom.svg.SVGSVGElement { +public SVGSVGElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGLocatable = new SVGLocatableImpl()); + imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); + imbue(_SVGZoomAndPan = new SVGZoomAndPanImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); + imbue(_DocumentEvent = new org.inkscape.dom.events.DocumentEventImpl()); + imbue(_ViewCSS = new org.inkscape.dom.css.ViewCSSImpl()); + imbue(_DocumentCSS = new org.inkscape.dom.css.DocumentCSSImpl()); +} + + +//from SVGURIReference +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } +//end SVGURIReference + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGLocatable -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +private SVGLocatableImpl _SVGLocatable; +public SVGElement getNearestViewportElement() + { return _SVGLocatable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGLocatable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGLocatable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGLocatable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGLocatable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGLocatable.getTransformToElement(element); } //end SVGLocatable -//from SVGFitToViewBox -public native SVGAnimatedRect getViewBox( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); -//end SVGFitToViewBox - -//from SVGZoomAndPan -public native short getZoomAndPan( ); -public native void setZoomAndPan( short zoomAndPan ) - throws DOMException; -//end SVGZoomAndPan - //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget +//from SVGFitToViewBox +SVGFitToViewBoxImpl _SVGFitToViewBox; +public SVGAnimatedRect getViewBox() + { return _SVGFitToViewBox.getViewBox(); } +public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() + { return _SVGFitToViewBox.getPreserveAspectRatio(); } +//end SVGFitToViewBox + +//from SVGZoomAndPan +SVGZoomAndPanImpl _SVGZoomAndPan; +public short getZoomAndPan() + { return _SVGZoomAndPan.getZoomAndPan(); } +public void setZoomAndPan(short zoomAndPan) throws DOMException + { _SVGZoomAndPan.setZoomAndPan(zoomAndPan); } +//end SVGZoomAndPan + + //from DocumentEvent -public native Event createEvent(String eventType) - throws DOMException; -public native boolean canDispatch(String namespaceURI, - String type); +org.inkscape.dom.events.DocumentEventImpl _DocumentEvent; +public Event createEvent(String eventType) throws DOMException + { return _DocumentEvent.createEvent(eventType); } +public boolean canDispatch(String namespaceURI, String type) + { return _DocumentEvent.canDispatch(namespaceURI, type); } //end DocumentEvent //from ViewCSS -public native CSSStyleDeclaration getComputedStyle(Element elt, - String pseudoElt); +org.inkscape.dom.css.ViewCSSImpl _ViewCSS; +public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt) + { return _ViewCSS.getComputedStyle(elt, pseudoElt); } //end ViewCSS //from AbstractView (from ViewCSS) -public native DocumentView getDocument(); +public DocumentView getDocument() + { return _ViewCSS.getDocument(); } //end AbstractView //from DocumentCSS -public native CSSStyleDeclaration getOverrideStyle(Element elt, - String pseudoElt); +org.inkscape.dom.css.DocumentCSSImpl _DocumentCSS; +public CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt) + { return _DocumentCSS.getOverrideStyle(elt, pseudoElt); } //end DocumentCSS //from DocumentStyle (from DocumentCSS) -public native StyleSheetList getStyleSheets(); +public StyleSheetList getStyleSheets() + { return _DocumentCSS.getStyleSheets(); } //end DocumentStyle diff --git a/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java index d1d7d453c..a211ad345 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java @@ -41,15 +41,29 @@ public class SVGScriptElementImpl //SVGExternalResourcesRequired implements org.w3c.dom.svg.SVGScriptElement { + +public SVGScriptElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference + //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired + public native String getType( ); public native void setType( String type ) throws DOMException; diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java index af651d88e..dee28e3ed 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java @@ -40,12 +40,23 @@ public class SVGStopElementImpl //SVGStylable implements org.w3c.dom.svg.SVGStopElement { + +public SVGStopElementImpl() +{ + imbue(_SVGStylable = new SVGStylableImpl()); +} + //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable + public native SVGAnimatedNumber getOffset( ); } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java index 548a6b0bb..fa74caf70 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java @@ -53,70 +53,114 @@ public class SVGSwitchElementImpl //EventTarget implements org.w3c.dom.svg.SVGSwitchElement { + +public SVGSwitchElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget + } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java index 95aca8018..5fded7c3a 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java @@ -53,52 +53,108 @@ public class SVGSymbolElementImpl //EventTarget implements org.w3c.dom.svg.SVGSymbolElement { + +public SVGSymbolElementImpl() +{ + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + + //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable +//from SVGTransformable +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } +//end SVGTransformable + +//from SVGLocatable (from SVGTransformable) +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } +//end SVGLocatable + //from SVGFitToViewBox -public native SVGAnimatedRect getViewBox( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +SVGFitToViewBoxImpl _SVGFitToViewBox; +public SVGAnimatedRect getViewBox() + { return _SVGFitToViewBox.getViewBox(); } +public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() + { return _SVGFitToViewBox.getPreserveAspectRatio(); } //end SVGFitToViewBox //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java index 990c6bfb9..545c1f305 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java @@ -38,8 +38,17 @@ public class SVGTRefElementImpl //SVGURIReference implements org.w3c.dom.svg.SVGTRefElement { + +public SVGTRefElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java index d33a75ab9..3a271ce7a 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java @@ -53,61 +53,93 @@ public class SVGTextContentElementImpl //EventTarget implements org.w3c.dom.svg.SVGTextContentElement { + +public SVGTextContentElementImpl() +{ + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + + //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests - //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired - //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget - public native SVGAnimatedLength getTextLength( ); public native SVGAnimatedEnumeration getLengthAdjust( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java index 2187ed369..a312aade8 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java @@ -37,19 +37,33 @@ public class SVGTextElementImpl //SVGTransformable implements org.w3c.dom.svg.SVGTextElement { + +public SVGTextElementImpl() +{ + imbue(_SVGTransformable = new SVGTransformableImpl()); +} + + //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java index a04ff35c2..ce6a96da9 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java @@ -38,8 +38,17 @@ public class SVGTextPathElementImpl //SVGURIReference implements org.w3c.dom.svg.SVGTextPathElement { + +public SVGTextPathElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference public native SVGAnimatedLength getStartOffset( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java index 19cd537e3..83cdea5bf 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java @@ -44,19 +44,36 @@ public class SVGTitleElementImpl //SVGStylable implements org.w3c.dom.svg.SVGTitleElement { + +public SVGTitleElementImpl() +{ + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); +} + //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable + } diff --git a/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java index 32988bb1e..3283cdc26 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java @@ -53,73 +53,118 @@ public class SVGUseElementImpl //EventTarget implements org.w3c.dom.svg.SVGUseElement { +public SVGUseElementImpl() +{ + imbue(_SVGURIReference = new SVGURIReferenceImpl()); + imbue(_SVGTests = new SVGTestsImpl()); + imbue(_SVGLangSpace = new SVGLangSpaceImpl()); + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGStylable = new SVGStylableImpl()); + imbue(_SVGTransformable = new SVGTransformableImpl()); + imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); +} + + //from SVGURIReference -public native SVGAnimatedString getHref( ); +private SVGURIReferenceImpl _SVGURIReference; +public SVGAnimatedString getHref() + { return _SVGURIReference.getHref(); } //end SVGURIReference //from SVGTests -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); +private SVGTestsImpl _SVGTests; +public SVGStringList getRequiredFeatures() + { return _SVGTests.getRequiredFeatures(); } +public SVGStringList getRequiredExtensions() + { return _SVGTests.getRequiredExtensions(); } +public SVGStringList getSystemLanguage() + { return _SVGTests.getSystemLanguage(); } +public boolean hasExtension (String extension) + { return _SVGTests.hasExtension(extension); } //end SVGTests //from SVGLangSpace -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; +private SVGLangSpaceImpl _SVGLangSpace; +public String getXMLlang() + { return _SVGLangSpace.getXMLlang(); } +public void setXMLlang(String xmllang) + throws DOMException + { _SVGLangSpace.setXMLlang(xmllang); } +public String getXMLspace() + { return _SVGLangSpace.getXMLspace(); } +public void setXMLspace(String xmlspace) + throws DOMException + { _SVGLangSpace.setXMLspace(xmlspace); } //end SVGLangSpace //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired //from SVGStylable -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); +private SVGStylableImpl _SVGStylable; +public SVGAnimatedString getClassName() + { return _SVGStylable.getClassName(); } +public CSSStyleDeclaration getStyle() + { return _SVGStylable.getStyle(); } +public CSSValue getPresentationAttribute(String name) + { return _SVGStylable.getPresentationAttribute(name); } //end SVGStylable //from SVGTransformable -public native SVGAnimatedTransformList getTransform( ); +private SVGTransformableImpl _SVGTransformable; +public SVGAnimatedTransformList getTransform() + { return _SVGTransformable.getTransform(); } //end SVGTransformable //from SVGLocatable (from SVGTransformable) -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; +public SVGElement getNearestViewportElement() + { return _SVGTransformable.getNearestViewportElement(); } +public SVGElement getFarthestViewportElement() + { return _SVGTransformable.getFarthestViewportElement(); } +public SVGRect getBBox() + { return _SVGTransformable.getBBox(); } +public SVGMatrix getCTM() + { return _SVGTransformable.getCTM(); } +public SVGMatrix getScreenCTM() + { return _SVGTransformable.getScreenCTM(); } +public SVGMatrix getTransformToElement (SVGElement element) + throws SVGException + { return _SVGTransformable.getTransformToElement(element); } //end SVGLocatable //from EventTarget -public native void addEventListener(String type, +private org.inkscape.dom.events.EventTargetImpl _EventTarget; +public void addEventListener(String type, EventListener listener, - boolean useCapture); -public native void removeEventListener(String type, + boolean useCapture) + { _EventTarget.addEventListener(type, listener, useCapture); } +public void removeEventListener(String type, EventListener listener, - boolean useCapture); -public native boolean dispatchEvent(Event evt) - throws EventException; -public native void addEventListenerNS(String namespaceURI, + boolean useCapture) + { _EventTarget.removeEventListener(type, listener, useCapture); } +public boolean dispatchEvent(Event evt) + throws EventException + { return _EventTarget.dispatchEvent(evt); } +public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, - Object evtGroup); -public native void removeEventListenerNS(String namespaceURI, + Object evtGroup) + { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } +public void removeEventListenerNS(String namespaceURI, String type, EventListener listener, - boolean useCapture); -public native boolean willTriggerNS(String namespaceURI, - String type); -public native boolean hasEventListenerNS(String namespaceURI, - String type); + boolean useCapture) + { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } +public boolean willTriggerNS(String namespaceURI, + String type) + { return _EventTarget.willTriggerNS(namespaceURI, type); } +public boolean hasEventListenerNS(String namespaceURI, + String type) + { return _EventTarget.hasEventListenerNS(namespaceURI, type); } //end EventTarget diff --git a/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java index 3143847f9..c47336a02 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java @@ -40,19 +40,35 @@ public class SVGViewElementImpl //SVGZoomAndPan implements org.w3c.dom.svg.SVGViewElement { +public SVGViewElementImpl() +{ + imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); + imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); + imbue(_SVGZoomAndPan = new SVGZoomAndPanImpl()); +} + + //from SVGExternalResourcesRequired -public native SVGAnimatedBoolean getExternalResourcesRequired( ); +private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; +public SVGAnimatedBoolean getExternalResourcesRequired() + { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } //end SVGExternalResourcesRequired + //from SVGFitToViewBox -public native SVGAnimatedRect getViewBox( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +SVGFitToViewBoxImpl _SVGFitToViewBox; +public SVGAnimatedRect getViewBox() + { return _SVGFitToViewBox.getViewBox(); } +public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() + { return _SVGFitToViewBox.getPreserveAspectRatio(); } //end SVGFitToViewBox //from SVGZoomAndPan -public native short getZoomAndPan( ); -public native void setZoomAndPan( short zoomAndPan ) - throws DOMException; +SVGZoomAndPanImpl _SVGZoomAndPan; +public short getZoomAndPan() + { return _SVGZoomAndPan.getZoomAndPan(); } +public void setZoomAndPan(short zoomAndPan) throws DOMException + { _SVGZoomAndPan.setZoomAndPan(zoomAndPan); } //end SVGZoomAndPan diff --git a/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java index 6b402f4c5..20042bad5 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java @@ -38,11 +38,22 @@ public class SVGViewSpecImpl //SVGFitToViewBox implements org.w3c.dom.svg.SVGViewSpec { + +public SVGViewSpecImpl() +{ + imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); +} + + //from SVGFitToViewBox -public native SVGAnimatedRect getViewBox( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +SVGFitToViewBoxImpl _SVGFitToViewBox; +public SVGAnimatedRect getViewBox() + { return _SVGFitToViewBox.getViewBox(); } +public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() + { return _SVGFitToViewBox.getPreserveAspectRatio(); } //end SVGFitToViewBox + public native SVGTransformList getTransform( ); public native SVGElement getViewTarget( ); public native String getViewBoxString( ); diff --git a/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java index 8ec9dd2e0..d77d64f75 100644 --- a/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java +++ b/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java @@ -33,6 +33,8 @@ package org.inkscape.dom.svg; import org.w3c.dom.DOMException; public class SVGZoomAndPanImpl + extends + org.inkscape.cmn.BaseInterface implements org.w3c.dom.svg.SVGZoomAndPan { public native short getZoomAndPan( ); diff --git a/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java b/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java index 7e04b9839..9b2bd2dad 100644 --- a/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java +++ b/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java @@ -32,6 +32,8 @@ import org.w3c.dom.views.DocumentView; public class AbstractViewImpl + extends + org.inkscape.cmn.BaseInterface implements org.w3c.dom.views.AbstractView { diff --git a/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java b/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java index a51a7b4a0..a0ae88004 100644 --- a/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java +++ b/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java @@ -33,6 +33,8 @@ import org.w3c.dom.views.AbstractView; public class DocumentViewImpl + extends + org.inkscape.cmn.BaseInterface implements org.w3c.dom.views.DocumentView { -- 2.30.2