From: ishmal Date: Fri, 21 Mar 2008 05:04:16 +0000 (+0000) Subject: Finally! All of the svg-dom classes and dependencies have native implementation stubs. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e6c6134fd4f3c207b1ac49c8b693ce3e9118c49c;p=inkscape.git Finally! All of the svg-dom classes and dependencies have native implementation stubs. --- diff --git a/src/bind/java/org/inkscape/dom/AttrImpl.java b/src/bind/java/org/inkscape/dom/AttrImpl.java new file mode 100644 index 000000000..ead12c6c5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/AttrImpl.java @@ -0,0 +1,58 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + + +package org.inkscape.dom; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.Element; +import org.w3c.dom.TypeInfo; + + +public class AttrImpl + extends NodeImpl + implements org.w3c.dom.Attr +{ + +public native String getName(); + +public native boolean getSpecified(); + +public native String getValue(); + +public native void setValue(String value) + throws DOMException; + +public native Element getOwnerElement(); + +public native TypeInfo getSchemaTypeInfo(); + +public native boolean isId(); + +} diff --git a/src/bind/java/org/inkscape/dom/CDATASectionImpl.java b/src/bind/java/org/inkscape/dom/CDATASectionImpl.java new file mode 100644 index 000000000..3ac77da54 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/CDATASectionImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + + +package org.inkscape.dom; + + +public class CDATASectionImpl + extends TextImpl + implements org.w3c.dom.CDATASection +{ +} diff --git a/src/bind/java/org/inkscape/dom/CharacterDataImpl.java b/src/bind/java/org/inkscape/dom/CharacterDataImpl.java new file mode 100644 index 000000000..1c540a41c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/CharacterDataImpl.java @@ -0,0 +1,70 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + + + +package org.inkscape.dom; + +import org.w3c.dom.DOMException; + + + + +public class CharacterDataImpl + extends NodeImpl + implements org.w3c.dom.CharacterData +{ + +public native String getData() + throws DOMException; +public native void setData(String data) + throws DOMException; + +public native int getLength(); + +public native String substringData(int offset, + int count) + throws DOMException; + +public native void appendData(String arg) + throws DOMException; + +public native void insertData(int offset, + String arg) + throws DOMException; + +public native void deleteData(int offset, + int count) + throws DOMException; + +public native void replaceData(int offset, + int count, + String arg) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/CommentImpl.java b/src/bind/java/org/inkscape/dom/CommentImpl.java new file mode 100644 index 000000000..5abe4d14b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/CommentImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + + +package org.inkscape.dom; + + +public class CommentImpl + extends CharacterDataImpl + implements org.w3c.dom.Comment +{ +} diff --git a/src/bind/java/org/inkscape/dom/DOMConfigurationImpl.java b/src/bind/java/org/inkscape/dom/DOMConfigurationImpl.java new file mode 100644 index 000000000..23ed58628 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/DOMConfigurationImpl.java @@ -0,0 +1,53 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + +import org.w3c.dom.DOMException; +import org.w3c.dom.DOMStringList; + + + + +public class DOMConfigurationImpl + implements org.w3c.dom.DOMConfiguration +{ + +public native void setParameter(String name, + Object value) + throws DOMException; + +public native Object getParameter(String name) + throws DOMException; + +public native boolean canSetParameter(String name, + Object value); + +public native DOMStringList getParameterNames(); + +} diff --git a/src/bind/java/org/inkscape/dom/DOMErrorHandlerImpl.java b/src/bind/java/org/inkscape/dom/DOMErrorHandlerImpl.java new file mode 100644 index 000000000..5cdbe2ee9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/DOMErrorHandlerImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + + +public class DOMErrorHandlerImpl + implements org.w3c.dom.DOMErrorHandler +{ + +public native boolean handleError(org.w3c.dom.DOMError error); + +} diff --git a/src/bind/java/org/inkscape/dom/DOMErrorImpl.java b/src/bind/java/org/inkscape/dom/DOMErrorImpl.java new file mode 100644 index 000000000..80cb09b9b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/DOMErrorImpl.java @@ -0,0 +1,48 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + + +public class DOMErrorImpl + implements org.w3c.dom.DOMError +{ + +public native short getSeverity(); + +public native String getMessage(); + +public native String getType(); + +public native Object getRelatedException(); + +public native Object getRelatedData(); + +public native org.w3c.dom.DOMLocator getLocation(); + +} diff --git a/src/bind/java/org/inkscape/dom/DOMImplementationImpl.java b/src/bind/java/org/inkscape/dom/DOMImplementationImpl.java index 553d613c4..1c4188ed7 100644 --- a/src/bind/java/org/inkscape/dom/DOMImplementationImpl.java +++ b/src/bind/java/org/inkscape/dom/DOMImplementationImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,65 +20,41 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; +import org.w3c.dom.DOMException; +import org.w3c.dom.Document; +import org.w3c.dom.DocumentType; + public class DOMImplementationImpl - extends DOMBase - implements org.w3c.dom.DOMImplementation + implements org.w3c.dom.DOMImplementation { -/** - * Creates a DOM Document object of the specified type - * with its document element. - */ -public Document createDocument(String namespaceURI, - String qualifiedName, - DocumentType doctype) -{ - return null; -} +public native boolean hasFeature(String feature, + String version); -/** - * Creates an empty DocumentType node. - */ -public DocumentType createDocumentType(String qualifiedName, - String publicId, - String systemId) -{ - return null; -} -/** - * This method returns a specialized object which implements the - * specialized APIs of the specified feature and version, as specified - * in DOM Features. - */ -public Object getFeature(String feature, String version) -{ - return null; -} +public native DocumentType createDocumentType(String qualifiedName, + String publicId, + String systemId) + throws DOMException; -/** - * Test if the DOM implementation implements a specific - * feature and version, as specified in DOM Features. - */ -public boolean hasFeature(String feature, String version) -{ - return false; -} +public native Document createDocument(String namespaceURI, + String qualifiedName, + DocumentType doctype) + throws DOMException; -/** - * - */ -public DOMImplementationImpl() -{ - super(); -} + +public native Object getFeature(String feature, + String version); } diff --git a/src/bind/java/org/inkscape/dom/DOMImplementationListImpl.java b/src/bind/java/org/inkscape/dom/DOMImplementationListImpl.java new file mode 100644 index 000000000..35bee53d2 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/DOMImplementationListImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + +import org.w3c.dom.DOMImplementation; + + +public class DOMImplementationListImpl + implements org.w3c.dom.DOMImplementationList +{ + +public native DOMImplementation item(int index); + + +public native int getLength(); + +} diff --git a/src/bind/java/org/inkscape/dom/DOMImplementationSourceImpl.java b/src/bind/java/org/inkscape/dom/DOMImplementationSourceImpl.java new file mode 100644 index 000000000..a2a2a8f26 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/DOMImplementationSourceImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + +import org.w3c.dom.DOMImplementation; +import org.w3c.dom.DOMImplementationList; + +public class DOMImplementationSourceImpl + implements org.w3c.dom.DOMImplementationSource +{ +public native DOMImplementation getDOMImplementation(String features); + +public native DOMImplementationList getDOMImplementationList(String features); + +} diff --git a/src/bind/java/org/inkscape/dom/DOMLocatorImpl.java b/src/bind/java/org/inkscape/dom/DOMLocatorImpl.java index 813d8c6ba..c5abe4ca1 100644 --- a/src/bind/java/org/inkscape/dom/DOMLocatorImpl.java +++ b/src/bind/java/org/inkscape/dom/DOMLocatorImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,84 +20,29 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; - - public class DOMLocatorImpl - extends DOMBase - implements org.w3c.dom.DOMLocator -{ - - -/** - * The byte offset into the input source this locator is pointing to - * or -1 if there is no byte offset available. - */ -public int getByteOffset() -{ - return 0; -} - - -/** - * The column number this locator is pointing to, - * or -1 if there is no column number available. - */ -public int getColumnNumber() -{ - return 0; -} - - -/** - * The line number this locator is pointing to, or -1 if - * there is no column number available. - */ -public int getLineNumber() + implements org.w3c.dom.DOMLocator { - return 0; -} +public native int getLineNumber(); -/** - * The node this locator is pointing to, or null if no node is available. - */ -public Node getRelatedNode() -{ - return null; -} +public native int getColumnNumber(); +public native int getByteOffset(); -/** - * The URI this locator is pointing to, or null if no URI is available. - */ -public String getUri() -{ - return ""; -} +public native int getUtf16Offset(); +public native org.w3c.dom.Node getRelatedNode(); -/** - * The UTF-16, as defined in [Unicode] and - * Amendment 1 of [ISO/IEC 10646], offset into the input source - * this locator is pointing to or -1 if there is no UTF-16 - * offset available. - */ -public int getUtf16Offset() -{ - return 0; -} - - - -public DOMLocatorImpl() -{ - super(); -} +public native String getUri(); } diff --git a/src/bind/java/org/inkscape/dom/DOMStringListImpl.java b/src/bind/java/org/inkscape/dom/DOMStringListImpl.java new file mode 100644 index 000000000..91c31c574 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/DOMStringListImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + + + +public class DOMStringListImpl + implements org.w3c.dom.DOMStringList +{ + +public native String item(int index); + +public native int getLength(); + +public native boolean contains(String str); + +} diff --git a/src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java b/src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java index 3c10d8f97..4148f598e 100644 --- a/src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java +++ b/src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,28 +20,17 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; - -/** - * No methods are defined for this class - */ -public class DocumentFragmentImpl extends NodeImpl - implements org.w3c.dom.DocumentFragment +public class DocumentFragmentImpl + extends NodeImpl + implements org.w3c.dom.DocumentFragment { - - - - - - -public DocumentFragmentImpl() -{ - super(); -} - } diff --git a/src/bind/java/org/inkscape/dom/DocumentImpl.java b/src/bind/java/org/inkscape/dom/DocumentImpl.java index d0c63d98a..e381ce573 100644 --- a/src/bind/java/org/inkscape/dom/DocumentImpl.java +++ b/src/bind/java/org/inkscape/dom/DocumentImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,281 +20,119 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ + package org.inkscape.dom; -import org.w3c.dom.*; +import org.w3c.dom.DOMException; -public class DocumentImpl extends NodeImpl - implements org.w3c.dom.Document -{ -/** - * Attempts to adopt a node from another document to this document. - */ -public Node adoptNode(Node source) -{ - return null; -} +import org.w3c.dom.Attr; +import org.w3c.dom.CDATASection; +import org.w3c.dom.Comment; +import org.w3c.dom.DocumentFragment; +import org.w3c.dom.DocumentType; +import org.w3c.dom.DOMConfiguration; +import org.w3c.dom.DOMImplementation; +import org.w3c.dom.DOMStringList; +import org.w3c.dom.Element; +import org.w3c.dom.EntityReference; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.w3c.dom.ProcessingInstruction; +import org.w3c.dom.Text; -/** - * Creates an Attr of the given name. - */ -public Attr createAttribute(String name) -{ - return null; -} -/** - * Creates an attribute of the given qualified name and namespace URI. - */ -public Attr createAttributeNS(String namespaceURI, String qualifiedName) -{ - return null; -} -/** - * Creates a CDATASection node whose value is the specified string. - */ -public CDATASection createCDATASection(String data) +public class DocumentImpl + extends NodeImpl + implements org.w3c.dom.Document { - return null; -} -/** - * Creates a Comment node given the specified string. - */ -public Comment createComment(String data) -{ - return null; -} +public native DocumentType getDoctype(); -/** - * Creates an empty DocumentFragment object. - */ -public DocumentFragment createDocumentFragment() -{ - return null; -} +public native DOMImplementation getImplementation(); -/** - * Creates an element of the type specified. - */ -public Element createElement(String tagName) -{ - return null; -} +public native Element getDocumentElement(); -/** - * Creates an element of the given qualified name and namespace URI. - */ -public Element createElementNS(String namespaceURI, String qualifiedName) -{ - return null; -} +public native Element createElement(String tagName) + throws DOMException; -/** - * Creates an EntityReference object. - */ -public EntityReference createEntityReference(String name) -{ - return null; -} +public native DocumentFragment createDocumentFragment(); -/** - * Creates a ProcessingInstruction node given the specified name - * and data strings. - */ -public ProcessingInstruction createProcessingInstruction(String target, String data) -{ - return null; -} +public native Text createTextNode(String data); -/** - * Creates a Text node given the specified string. - */ -public Text createTextNode(String data) -{ - return null; -} +public native Comment createComment(String data); -/** - * The Document Type Declaration (see DocumentType) associated - * with this document. - */ -public DocumentType getDoctype() -{ - return null; -} +public native CDATASection createCDATASection(String data) + throws DOMException; -/** - * This is a convenience attribute that allows direct access to the - * child node that is the document element of the document. - */ -public Element getDocumentElement() -{ - return null; -} +public native ProcessingInstruction createProcessingInstruction(String target, + String data) + throws DOMException; -/** - * The location of the document or null if undefined or if the Document - * was created using DOMImplementation.createDocument. - */ -public String getDocumentURI() -{ - return ""; -} +public native Attr createAttribute(String name) + throws DOMException; -/** - * The configuration used when Document.normalizeDocument() is invoked. - */ -public DOMConfiguration getDomConfig() -{ - return null; -} +public native EntityReference createEntityReference(String name) + throws DOMException; -/** - * Returns the Element that has an ID attribute with the given value. - */ -public Element getElementById(String elementId) -{ - return null; -} +public native NodeList getElementsByTagName(String tagname); -/** - * Returns a NodeList of all the Elements in document order with a - * given tag name and are contained in the document. - */ -public NodeList getElementsByTagName(String tagname) -{ - return null; -} +public native Node importNode(Node importedNode, + boolean deep) + throws DOMException; -/** - * Returns a NodeList of all the Elements with a given local name - * and namespace URI in document order. - */ -public NodeList getElementsByTagNameNS(String namespaceURI, String localName) -{ - return null; -} +public native Element createElementNS(String namespaceURI, + String qualifiedName) + throws DOMException; -/** - * The DOMImplementation object that handles this document. - */ -public DOMImplementation getImplementation() -{ - return null; -} +public native Attr createAttributeNS(String namespaceURI, + String qualifiedName) + throws DOMException; -/** - * An attribute specifying the encoding used for this document at - * the time of the parsing. - */ -public String getInputEncoding() -{ - return ""; -} +public native NodeList getElementsByTagNameNS(String namespaceURI, + String localName); -/** - * An attribute specifying whether error checking is enforced or not. - */ -public boolean getStrictErrorChecking() -{ - return false; -} +public native Element getElementById(String elementId); -/** - * An attribute specifying, as part of the XML declaration, - * the encoding of this document. - */ -public String getXmlEncoding() -{ - return ""; -} +public native String getInputEncoding(); -/** - * An attribute specifying, as part of the XML declaration, - * whether this document is standalone. - */ -public boolean getXmlStandalone() -{ - return false; -} +public native String getXmlEncoding(); -/** - * An attribute specifying, as part of the XML declaration, - * the version number of this document. - */ -public String getXmlVersion() -{ - return ""; -} +public native boolean getXmlStandalone(); -/** - * Imports a node from another document to this document, - * without altering or removing the source node from the - * original document; this method creates a - * new copy of the source node. - */ -public Node importNode(Node importedNode, boolean deep) -{ - return null; -} +public native void setXmlStandalone(boolean xmlStandalone) + throws DOMException; -/** - * This method acts as if the document was going through - * a save and load cycle, putting the document in a "normal" form. - */ -public void normalizeDocument() -{ -} +public native String getXmlVersion(); -/** - * Rename an existing node of type ELEMENT_NODE or ATTRIBUTE_NODE. - */ -public Node renameNode(Node n, String namespaceURI, String qualifiedName) -{ - return null; -} +public native void setXmlVersion(String xmlVersion) + throws DOMException; -/** - * The location of the document or null if undefined or if - * the Document was created using DOMImplementation.createDocument. - */ -public void setDocumentURI(String documentURI) -{ -} +public native boolean getStrictErrorChecking(); -/** - * An attribute specifying whether error checking is enforced or not. - */ -public void setStrictErrorChecking(boolean strictErrorChecking) -{ -} +public native void setStrictErrorChecking(boolean strictErrorChecking); -/** - * An attribute specifying, as part of the XML declaration, - * whether this document is standalone. - */ -public void setXmlStandalone(boolean xmlStandalone) -{ -} +public native String getDocumentURI(); -/** - * An attribute specifying, as part of the XML declaration, - * the version number of this document. - */ -public void setXmlVersion(String xmlVersion) -{ -} +public native void setDocumentURI(String documentURI); +public native Node adoptNode(Node source) + throws DOMException; -public DocumentImpl() -{ - super(); -} +public native DOMConfiguration getDomConfig(); -} +public native void normalizeDocument(); +public native Node renameNode(Node n, + String namespaceURI, + String qualifiedName) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/DocumentTypeImpl.java b/src/bind/java/org/inkscape/dom/DocumentTypeImpl.java index 641565c7e..d3aa13552 100644 --- a/src/bind/java/org/inkscape/dom/DocumentTypeImpl.java +++ b/src/bind/java/org/inkscape/dom/DocumentTypeImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,74 +20,33 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; +import org.w3c.dom.NamedNodeMap; -public class DocumentTypeImpl extends NodeImpl +public class DocumentTypeImpl + extends NodeImpl implements org.w3c.dom.DocumentType { +public native String getName(); -/** - * A NamedNodeMap containing the general entities, both - * external and internal, declared in the DTD. - */ -public NamedNodeMap getEntities() -{ - return null; -} +public native NamedNodeMap getEntities(); -/** - * The internal subset as a string, or null if there is none. - */ -public String getInternalSubset() -{ - return ""; -} +public native NamedNodeMap getNotations(); -/** - * The name of DTD; i.e., the name immediately following the - * DOCTYPE keyword. - */ -public String getName() -{ - return ""; -} +public native String getPublicId(); -/** - * A NamedNodeMap containing the notations declared in the DTD. - */ -public NamedNodeMap getNotations() -{ - return null; -} - -/** - * The public identifier of the external subset. - */ -public String getPublicId() -{ - return null; -} +public native String getSystemId(); -/** - * The system identifier of the external subset. - */ -public String getSystemId() -{ - return ""; -} - - - -public DocumentTypeImpl() -{ - super(); -} +public native String getInternalSubset(); } diff --git a/src/bind/java/org/inkscape/dom/ElementImpl.java b/src/bind/java/org/inkscape/dom/ElementImpl.java index 24aa46404..9040c6ba4 100644 --- a/src/bind/java/org/inkscape/dom/ElementImpl.java +++ b/src/bind/java/org/inkscape/dom/ElementImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,190 +20,92 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; +import org.w3c.dom.DOMException; +import org.w3c.dom.Attr; +import org.w3c.dom.NodeList; +import org.w3c.dom.TypeInfo; -public class ElementImpl extends NodeImpl - implements org.w3c.dom.Element -{ +public class ElementImpl + extends NodeImpl + implements org.w3c.dom.Element -/** - * Retrieves an attribute value by name. - */ -public String getAttribute(String name) { - return ""; -} -/** - * Retrieves an attribute node by name. - */ -public Attr getAttributeNode(String name) -{ - return null; -} +public native String getTagName(); -/** - * Retrieves an Attr node by local name and namespace URI. - */ -public Attr getAttributeNodeNS(String namespaceURI, String localName) -{ - return null; -} +public native String getAttribute(String name); -/** - * Retrieves an attribute value by local name and namespace URI. - */ -public String getAttributeNS(String namespaceURI, String localName) -{ - return ""; -} +public native void setAttribute(String name, + String value) + throws DOMException; -/** - * Returns a NodeList of all descendant Elements with a given - * tag name, in document order. - */ -public NodeList getElementsByTagName(String name) -{ - return null; -} +public native void removeAttribute(String name) + throws DOMException; -/** - * Returns a NodeList of all the descendant Elements with a given - * local name and namespace URI in document order. - */ -public NodeList getElementsByTagNameNS(String namespaceURI, - String localName) -{ - return null; -} +public native Attr getAttributeNode(String name); -/** - * The type information associated with this element. - */ -public TypeInfo getSchemaTypeInfo() -{ - return null; -} +public native Attr setAttributeNode(Attr newAttr) + throws DOMException; -/** - * The name of the element. - */ -public String getTagName() -{ - return ""; -} +public native Attr removeAttributeNode(Attr oldAttr) + throws DOMException; -/** - * Returns true when an attribute with a given name is - * specified on this element or has a default value, false otherwise. - */ -public boolean hasAttribute(String name) -{ - return false; -} +public native NodeList getElementsByTagName(String name); -/** - * Returns true when an attribute with a given local name and - * namespace URI is specified on this element or has a default value, - * false otherwise. - */ -public boolean hasAttributeNS(String namespaceURI, String localName) -{ - return false; -} +public native String getAttributeNS(String namespaceURI, + String localName) + throws DOMException; -/** - * Removes an attribute by name. - */ -public void removeAttribute(String name) -{ -} - -/** - * Removes the specified attribute node. - */ -public Attr removeAttributeNode(Attr oldAttr) -{ - return null; -} - -/** - * Removes an attribute by local name and namespace URI. - */ -public void removeAttributeNS(String namespaceURI, String localName) -{ -} +public native void setAttributeNS(String namespaceURI, + String qualifiedName, + String value) + throws DOMException; -/** - * Adds a new attribute. - */ -public void setAttribute(String name, String value) -{ -} - -/** - * Adds a new attribute node. - */ -public Attr setAttributeNode(Attr newAttr) -{ - return null; -} - -/** - * Adds a new attribute. - */ -public Attr setAttributeNodeNS(Attr newAttr) -{ - return null; -} +public native void removeAttributeNS(String namespaceURI, + String localName) + throws DOMException; -/** - * Adds a new attribute. - */ -public void setAttributeNS(String namespaceURI, - String qualifiedName, String value) -{ -} +public native Attr getAttributeNodeNS(String namespaceURI, + String localName) + throws DOMException; -/** - * If the parameter isId is true, this method declares the - * specified attribute to be a user-determined ID attribute . - */ -public void setIdAttribute(String name, boolean isId) -{ -} +public native Attr setAttributeNodeNS(Attr newAttr) + throws DOMException; -/** - * If the parameter isId is true, this method declares the - * specified attribute to be a user-determined ID attribute . - */ -public void setIdAttributeNode(Attr idAttr, boolean isId) -{ -} +public native NodeList getElementsByTagNameNS(String namespaceURI, + String localName) + throws DOMException; -/** - * If the parameter isId is true, this method declares the specified - * attribute to be a user-determined ID attribute . - */ -public void setIdAttributeNS(String namespaceURI, - String localName, boolean isId) -{ -} +public native boolean hasAttribute(String name); +public native boolean hasAttributeNS(String namespaceURI, + String localName) + throws DOMException; +public native TypeInfo getSchemaTypeInfo(); -public ElementImpl() -{ - super(); -} +public native void setIdAttribute(String name, + boolean isId) + throws DOMException; +public native void setIdAttributeNS(String namespaceURI, + String localName, + boolean isId) + throws DOMException; +public native void setIdAttributeNode(Attr idAttr, + boolean isId) + throws DOMException; } diff --git a/src/bind/java/org/inkscape/dom/EntityImpl.java b/src/bind/java/org/inkscape/dom/EntityImpl.java new file mode 100644 index 000000000..9b86060a6 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/EntityImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + + + +public class EntityImpl + extends NodeImpl + implements org.w3c.dom.Entity +{ +public native String getPublicId(); + +public native String getSystemId(); + +public native String getNotationName(); + +public native String getInputEncoding(); + +public native String getXmlEncoding(); + +public native String getXmlVersion(); + +} diff --git a/src/bind/java/org/inkscape/dom/EntityReferenceImpl.java b/src/bind/java/org/inkscape/dom/EntityReferenceImpl.java new file mode 100644 index 000000000..32bbe6d58 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/EntityReferenceImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + + + +public class EntityReferenceImpl + extends NodeImpl + implements org.w3c.dom.EntityReference +{ +} diff --git a/src/bind/java/org/inkscape/dom/NameListImpl.java b/src/bind/java/org/inkscape/dom/NameListImpl.java new file mode 100644 index 000000000..e6d1f10fe --- /dev/null +++ b/src/bind/java/org/inkscape/dom/NameListImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + + +public class NameListImpl + implements org.w3c.dom.NameList +{ +public native String getName(int index); + +public native String getNamespaceURI(int index); + +public native int getLength(); + +public native boolean contains(String str); + +public native boolean containsNS(String namespaceURI, + String name); + +} diff --git a/src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java b/src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java index 703efe699..2ee9a7c1e 100644 --- a/src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java +++ b/src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,90 +20,46 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; - - - -public class NamedNodeMapImpl - extends DOMBase - implements org.w3c.dom.NamedNodeMap -{ +import org.w3c.dom.DOMException; +import org.w3c.dom.Node; -/** - * The number of nodes in this map. - */ -public int getLength() -{ - return 0; -} -/** - * Retrieves a node specified by name. - */ -public Node getNamedItem(String name) +public class NamedNodeMapImpl + implements org.w3c.dom.NamedNodeMap { - return null; -} -/** - * Retrieves a node specified by local name and namespace URI. - */ -public Node getNamedItemNS(String namespaceURI, String localName) -{ - return null; -} +public native Node getNamedItem(String name); -/** - * Returns the indexth item in the map. - */ -public Node item(int index) -{ - return null; -} -/** - * Removes a node specified by name. - */ -public Node removeNamedItem(String name) -{ - return null; -} +public native Node setNamedItem(Node arg) + throws DOMException; -/** - * Removes a node specified by local name and namespace URI. - */ -public Node removeNamedItemNS(String namespaceURI, String localName) -{ - return null; -} +public native Node removeNamedItem(String name) + throws DOMException; -/** - * Adds a node using its nodeName attribute. - */ -public Node setNamedItem(Node arg) -{ - return null; -} +public native Node item(int index); -/** - * Adds a node using its namespaceURI and localName. - */ -public Node setNamedItemNS(Node arg) -{ - return null; -} +public native int getLength(); +public native Node getNamedItemNS(String namespaceURI, + String localName) + throws DOMException; +public native Node setNamedItemNS(Node arg) + throws DOMException; -public NamedNodeMapImpl() -{ - super(); -} +public native Node removeNamedItemNS(String namespaceURI, + String localName) + throws DOMException; } diff --git a/src/bind/java/org/inkscape/dom/NodeImpl.java b/src/bind/java/org/inkscape/dom/NodeImpl.java index 225d123c6..a2cea09b3 100644 --- a/src/bind/java/org/inkscape/dom/NodeImpl.java +++ b/src/bind/java/org/inkscape/dom/NodeImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,331 +20,119 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; - +import org.w3c.dom.DOMException; +import org.w3c.dom.Document; +import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; +import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; -public class NodeImpl extends DOMBase - implements org.w3c.dom.Node -{ -/** - * Adds the node newChild to the end of the list of children of this node. - */ -public Node appendChild(Node newChild) -{ - return null; -} -/** - * Returns a duplicate of this node, i.e., serves as a generic copy - * constructor for nodes. - */ -public Node cloneNode(boolean deep) +public class NodeImpl + implements org.w3c.dom.Node { - return null; -} -/** - * Compares the reference node, i.e. - */ -public short compareDocumentPosition(Node other) -{ - return 0; -} +public native String getNodeName(); -/** - * A NamedNodeMap containing the attributes of this node (if it is - * an Element) or null otherwise. - */ -public NamedNodeMap getAttributes() -{ - return null; -} +public native String getNodeValue() + throws DOMException; +public native void setNodeValue(String nodeValue) + throws DOMException; -/** - * The absolute base URI of this node or null if the - * implementation wasn't able to obtain an absolute URI. - */ -public String getBaseURI() -{ - return ""; -} +public native short getNodeType(); -/** - * A NodeList that contains all children of this node. - */ -public NodeList getChildNodes() -{ - return null; -} +public native Node getParentNode(); -/** - * This method returns a specialized object which implements the - * specialized APIs of the specified feature and version, as specified in . - */ -public Object getFeature(String feature, String version) -{ - return null; -} +public native NodeList getChildNodes(); -/** - * The first child of this node. - */ -public Node getFirstChild() -{ - return null; -} +public native Node getFirstChild(); -/** - * The last child of this node. - */ -public Node getLastChild() -{ - return null; -} +public native Node getLastChild(); -/** - * Returns the local part of the qualified name of this node. - */ -public String getLocalName() -{ - return ""; -} +public native Node getPreviousSibling(); -/** - * The namespace URI of this node, or null if it is unspecified (see ). - */ -public String getNamespaceURI() -{ - return ""; -} +public native Node getNextSibling(); -/** - * The node immediately following this node. - */ -public Node getNextSibling() -{ - return null; -} +public native NamedNodeMap getAttributes(); -/** - * The name of this node, depending on its type; see the table above. - */ -public String getNodeName() -{ - return ""; -} +public native Document getOwnerDocument(); -/** - * A code representing the type of the underlying object, - * as defined above. - */ -public short getNodeType() -{ - return 0; -} +public native Node insertBefore(Node newChild, + Node refChild) + throws DOMException; -/** - * The value of this node, depending on its type; see the table above. - */ -public String getNodeValue() -{ - return ""; -} +public native Node replaceChild(Node newChild, + Node oldChild) + throws DOMException; -/** - * The Document object associated with this node. - */ -public Document getOwnerDocument() -{ - return null; -} +public native Node removeChild(Node oldChild) + throws DOMException; -/** - * The parent of this node. - */ -public Node getParentNode() -{ - return null; -} +public native Node appendChild(Node newChild) + throws DOMException; -/** - * The namespace prefix of this node, or null if it is unspecified. - */ -public String getPrefix() -{ - return ""; -} +public native boolean hasChildNodes(); -/** - * The node immediately preceding this node. - */ -public Node getPreviousSibling() -{ - return null; -} +public native Node cloneNode(boolean deep); -/** - * This attribute returns the text content of this node - * and its descendants. - */ -public String getTextContent() -{ - return ""; -} +public native void normalize(); -/** - * Retrieves the object associated to a key on a this node. - */ -public Object getUserData(String key) -{ - return null; -} +public native boolean isSupported(String feature, + String version); -/** - * Returns whether this node (if it is an element) has any attributes. - */ -public boolean hasAttributes() -{ - return false; -} +public native String getNamespaceURI(); -/** - * Returns whether this node has any children. - */ -public boolean hasChildNodes() -{ - return false; -} +public native String getPrefix(); -/** - * Inserts the node newChild before the existing child node refChild. - */ -public Node insertBefore(Node newChild, Node refChild) -{ - return null; -} +public native void setPrefix(String prefix) + throws DOMException; -/** - * This method checks if the specified namespaceURI is the - * default namespace or not. - */ -public boolean isDefaultNamespace(String namespaceURI) -{ - return false; -} +public native String getLocalName(); -/** - * Tests whether two nodes are equal. - */ -public boolean isEqualNode(Node arg) -{ - return false; -} +public native boolean hasAttributes(); -/** - * Returns whether this node is the same node as the given one. - */ -public boolean isSameNode(Node other) -{ - return false; -} +public native String getBaseURI(); -/** - * Tests whether the DOM implementation implements a specific feature - * and that feature is supported by this node, as specified in . - */ -public boolean isSupported(String feature, String version) -{ - return false; -} -/** - * Look up the namespace URI associated to the given prefix, - * starting from this node. - */ -public String lookupNamespaceURI(String prefix) -{ - return ""; -} +public native short compareDocumentPosition(Node other) + throws DOMException; -/** - * Look up the prefix associated to the given namespace URI, starting - * from this node. - */ -public String lookupPrefix(String namespaceURI) -{ - return ""; -} -/** - * Puts all Text nodes in the full depth of the sub-tree underneath - * this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes. - */ -public void normalize() -{ -} +public native String getTextContent() + throws DOMException; -/** - * Removes the child node indicated by oldChild from the list of - * children, and returns it. - */ -public Node removeChild(Node oldChild) -{ - return null; -} +public native void setTextContent(String textContent) + throws DOMException; -/** - * Replaces the child node oldChild with newChild in the list of - * children, and returns the oldChild node. - */ -public Node replaceChild(Node newChild, Node oldChild) -{ - return null; -} -/** - * The value of this node, depending on its type; see the table above. - */ -public void setNodeValue(String nodeValue) -{ -} +public native boolean isSameNode(Node other); -/** - * The namespace prefix of this node, or null if it is unspecified. - */ -public void setPrefix(String prefix) -{ -} +public native String lookupPrefix(String namespaceURI); -/** - * This attribute returns the text content of this node and - * its descendants. - */ -public void setTextContent(String textContent) -{ -} +public native boolean isDefaultNamespace(String namespaceURI); -/** - * Associate an object to a key on this node. - */ -public Object setUserData(String key, Object data, UserDataHandler handler) -{ - return null; -} +public native String lookupNamespaceURI(String prefix); +public native boolean isEqualNode(Node arg); -public NodeImpl() -{ - super(); -} +public native Object getFeature(String feature, + String version); +public native Object setUserData(String key, + Object data, + UserDataHandler handler); +public native Object getUserData(String key); } diff --git a/src/bind/java/org/inkscape/dom/NodeListImpl.java b/src/bind/java/org/inkscape/dom/NodeListImpl.java index 338b1d982..14568cc81 100644 --- a/src/bind/java/org/inkscape/dom/NodeListImpl.java +++ b/src/bind/java/org/inkscape/dom/NodeListImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,41 +20,22 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.Node; - -public class NodeListImpl extends DOMBase - implements org.w3c.dom.NodeList +public class NodeListImpl + implements org.w3c.dom.NodeList { -/** - * Returns the indexth item in the collection. - */ -public Node item(int index) -{ - return null; -} +public native org.w3c.dom.Node item(int index); -/** - * The number of nodes in the list. - */ -public int getLength() -{ - return 0; -} - - -/** - * - */ -public NodeListImpl() -{ - super(); -} +public native int getLength(); } diff --git a/src/bind/java/org/inkscape/dom/NotationImpl.java b/src/bind/java/org/inkscape/dom/NotationImpl.java new file mode 100644 index 000000000..326e24f88 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/NotationImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + + +public class NotationImpl + extends NodeImpl + implements org.w3c.dom.Notation +{ + +public native String getPublicId(); + +public native String getSystemId(); + +} diff --git a/src/bind/java/org/inkscape/dom/ProcessingInstructionImpl.java b/src/bind/java/org/inkscape/dom/ProcessingInstructionImpl.java new file mode 100644 index 000000000..db63fd8c0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/ProcessingInstructionImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + +import org.w3c.dom.DOMException; + + + +public class ProcessingInstructionImpl + extends NodeImpl + implements org.w3c.dom.ProcessingInstruction +{ + +public native String getTarget(); + +public native String getData(); + +public native void setData(String data) throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/TextImpl.java b/src/bind/java/org/inkscape/dom/TextImpl.java new file mode 100644 index 000000000..0c0bb79b8 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/TextImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html + */ + +package org.inkscape.dom; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.Text; + + + +public class TextImpl + extends CharacterDataImpl + implements org.w3c.dom.Text +{ + +public native Text splitText(int offset) + throws DOMException; + +public native boolean isElementContentWhitespace(); + +public native String getWholeText(); + +public native Text replaceWholeText(String content) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/TypeInfoImpl.java b/src/bind/java/org/inkscape/dom/TypeInfoImpl.java index c01ffd152..d19f5f6db 100644 --- a/src/bind/java/org/inkscape/dom/TypeInfoImpl.java +++ b/src/bind/java/org/inkscape/dom/TypeInfoImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,58 +20,25 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; - - public class TypeInfoImpl - extends DOMBase - implements org.w3c.dom.TypeInfo -{ - - -/** - * The name of a type declared for the associated element - * or attribute, or null if unknown. - */ -public String getTypeName() -{ - return ""; -} - - -/** - * The namespace of the type declared for the associated - * element or attribute or null if the element does not have - * declaration or if no namespace information is available. - */ -public String getTypeNamespace() + implements org.w3c.dom.TypeInfo { - return ""; -} +public native String getTypeName(); +public native String getTypeNamespace(); -/** - * This method returns if there is a derivation between - * the reference type definition, i.e. - */ -public boolean isDerivedFrom(String typeNamespaceArg, +public native boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, - int derivationMethod) -{ - return false; -} - - - -public TypeInfoImpl() -{ - super(); -} + int derivationMethod); } diff --git a/src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java b/src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java index 329f471bb..98ebeae38 100644 --- a/src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java +++ b/src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java @@ -5,12 +5,12 @@ * Authors: * Bob Jamison * - * Copyright (C) 2007 Bob Jamison + * Copyright (c) 2007-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,34 +20,26 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html */ package org.inkscape.dom; -import org.w3c.dom.*; +import org.w3c.dom.Node; public class UserDataHandlerImpl - extends DOMBase - implements org.w3c.dom.UserDataHandler + implements org.w3c.dom.UserDataHandler { - -/** - * This method is called whenever the node for which this - * is registered is imported or cloned. - */ -public void handle(short operation, String key, - Object data, Node src, Node dst) -{ -} - - - -public UserDataHandlerImpl() -{ - super(); -} +public native void handle(short operation, + String key, + Object data, + Node src, + Node dst); } diff --git a/src/bind/java/org/inkscape/dom/css/CSS2PropertiesImpl.java b/src/bind/java/org/inkscape/dom/css/CSS2PropertiesImpl.java new file mode 100644 index 000000000..2b1404da5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSS2PropertiesImpl.java @@ -0,0 +1,527 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; + + +public class CSS2PropertiesImpl + implements org.w3c.dom.css.CSS2Properties +{ + +public native String getAzimuth(); +public native void setAzimuth(String azimuth) + throws DOMException; + +public native String getBackground(); +public native void setBackground(String background) + throws DOMException; + +public native String getBackgroundAttachment(); +public native void setBackgroundAttachment(String backgroundAttachment) + throws DOMException; + +public native String getBackgroundColor(); +public native void setBackgroundColor(String backgroundColor) + throws DOMException; + +public native String getBackgroundImage(); +public native void setBackgroundImage(String backgroundImage) + throws DOMException; + +public native String getBackgroundPosition(); +public native void setBackgroundPosition(String backgroundPosition) + throws DOMException; + +public native String getBackgroundRepeat(); +public native void setBackgroundRepeat(String backgroundRepeat) + throws DOMException; + +public native String getBorder(); +public native void setBorder(String border) + throws DOMException; + +public native String getBorderCollapse(); +public native void setBorderCollapse(String borderCollapse) + throws DOMException; + +public native String getBorderColor(); +public native void setBorderColor(String borderColor) + throws DOMException; + +public native String getBorderSpacing(); +public native void setBorderSpacing(String borderSpacing) + throws DOMException; + +public native String getBorderStyle(); +public native void setBorderStyle(String borderStyle) + throws DOMException; + +public native String getBorderTop(); +public native void setBorderTop(String borderTop) + throws DOMException; + +public native String getBorderRight(); +public native void setBorderRight(String borderRight) + throws DOMException; + +public native String getBorderBottom(); +public native void setBorderBottom(String borderBottom) + throws DOMException; + +public native String getBorderLeft(); +public native void setBorderLeft(String borderLeft) + throws DOMException; + +public native String getBorderTopColor(); +public native void setBorderTopColor(String borderTopColor) + throws DOMException; + +public native String getBorderRightColor(); +public native void setBorderRightColor(String borderRightColor) + throws DOMException; + +public native String getBorderBottomColor(); +public native void setBorderBottomColor(String borderBottomColor) + throws DOMException; + +public native String getBorderLeftColor(); +public native void setBorderLeftColor(String borderLeftColor) + throws DOMException; + +public native String getBorderTopStyle(); +public native void setBorderTopStyle(String borderTopStyle) + throws DOMException; + +public native String getBorderRightStyle(); +public native void setBorderRightStyle(String borderRightStyle) + throws DOMException; + +public native String getBorderBottomStyle(); +public native void setBorderBottomStyle(String borderBottomStyle) + throws DOMException; + +public native String getBorderLeftStyle(); +public native void setBorderLeftStyle(String borderLeftStyle) + throws DOMException; + +public native String getBorderTopWidth(); +public native void setBorderTopWidth(String borderTopWidth) + throws DOMException; + +public native String getBorderRightWidth(); +public native void setBorderRightWidth(String borderRightWidth) + throws DOMException; + +public native String getBorderBottomWidth(); +public native void setBorderBottomWidth(String borderBottomWidth) + throws DOMException; + +public native String getBorderLeftWidth(); +public native void setBorderLeftWidth(String borderLeftWidth) + throws DOMException; + +public native String getBorderWidth(); +public native void setBorderWidth(String borderWidth) + throws DOMException; + +public native String getBottom(); +public native void setBottom(String bottom) + throws DOMException; + +public native String getCaptionSide(); +public native void setCaptionSide(String captionSide) + throws DOMException; + +public native String getClear(); +public native void setClear(String clear) + throws DOMException; + +public native String getClip(); +public native void setClip(String clip) + throws DOMException; + +public native String getColor(); +public native void setColor(String color) + throws DOMException; + +public native String getContent(); +public native void setContent(String content) + throws DOMException; + +public native String getCounterIncrement(); +public native void setCounterIncrement(String counterIncrement) + throws DOMException; + +public native String getCounterReset(); +public native void setCounterReset(String counterReset) + throws DOMException; + +public native String getCue(); +public native void setCue(String cue) + throws DOMException; + +public native String getCueAfter(); +public native void setCueAfter(String cueAfter) + throws DOMException; + +public native String getCueBefore(); +public native void setCueBefore(String cueBefore) + throws DOMException; + +public native String getCursor(); +public native void setCursor(String cursor) + throws DOMException; + +public native String getDirection(); +public native void setDirection(String direction) + throws DOMException; + +public native String getDisplay(); +public native void setDisplay(String display) + throws DOMException; + +public native String getElevation(); +public native void setElevation(String elevation) + throws DOMException; + +public native String getEmptyCells(); +public native void setEmptyCells(String emptyCells) + throws DOMException; + +public native String getCssFloat(); +public native void setCssFloat(String cssFloat) + throws DOMException; + +public native String getFont(); +public native void setFont(String font) + throws DOMException; + +public native String getFontFamily(); +public native void setFontFamily(String fontFamily) + throws DOMException; + +public native String getFontSize(); +public native void setFontSize(String fontSize) + throws DOMException; + +public native String getFontSizeAdjust(); +public native void setFontSizeAdjust(String fontSizeAdjust) + throws DOMException; + +public native String getFontStretch(); +public native void setFontStretch(String fontStretch) + throws DOMException; + +public native String getFontStyle(); +public native void setFontStyle(String fontStyle) + throws DOMException; + +public native String getFontVariant(); +public native void setFontVariant(String fontVariant) + throws DOMException; + +public native String getFontWeight(); +public native void setFontWeight(String fontWeight) + throws DOMException; + +public native String getHeight(); +public native void setHeight(String height) + throws DOMException; + +public native String getLeft(); +public native void setLeft(String left) + throws DOMException; + +public native String getLetterSpacing(); +public native void setLetterSpacing(String letterSpacing) + throws DOMException; + +public native String getLineHeight(); +public native void setLineHeight(String lineHeight) + throws DOMException; + +public native String getListStyle(); +public native void setListStyle(String listStyle) + throws DOMException; + +public native String getListStyleImage(); +public native void setListStyleImage(String listStyleImage) + throws DOMException; + +public native String getListStylePosition(); +public native void setListStylePosition(String listStylePosition) + throws DOMException; + +public native String getListStyleType(); +public native void setListStyleType(String listStyleType) + throws DOMException; + +public native String getMargin(); +public native void setMargin(String margin) + throws DOMException; + +public native String getMarginTop(); +public native void setMarginTop(String marginTop) + throws DOMException; + +public native String getMarginRight(); +public native void setMarginRight(String marginRight) + throws DOMException; + +public native String getMarginBottom(); +public native void setMarginBottom(String marginBottom) + throws DOMException; + +public native String getMarginLeft(); +public native void setMarginLeft(String marginLeft) + throws DOMException; + +public native String getMarkerOffset(); +public native void setMarkerOffset(String markerOffset) + throws DOMException; + +public native String getMarks(); +public native void setMarks(String marks) + throws DOMException; + +public native String getMaxHeight(); +public native void setMaxHeight(String maxHeight) + throws DOMException; + +public native String getMaxWidth(); +public native void setMaxWidth(String maxWidth) + throws DOMException; + +public native String getMinHeight(); +public native void setMinHeight(String minHeight) + throws DOMException; + +public native String getMinWidth(); +public native void setMinWidth(String minWidth) + throws DOMException; + +public native String getOrphans(); +public native void setOrphans(String orphans) + throws DOMException; + +public native String getOutline(); +public native void setOutline(String outline) + throws DOMException; + +public native String getOutlineColor(); +public native void setOutlineColor(String outlineColor) + throws DOMException; + +public native String getOutlineStyle(); +public native void setOutlineStyle(String outlineStyle) + throws DOMException; + +public native String getOutlineWidth(); +public native void setOutlineWidth(String outlineWidth) + throws DOMException; + +public native String getOverflow(); +public native void setOverflow(String overflow) + throws DOMException; + +public native String getPadding(); +public native void setPadding(String padding) + throws DOMException; + +public native String getPaddingTop(); +public native void setPaddingTop(String paddingTop) + throws DOMException; + +public native String getPaddingRight(); +public native void setPaddingRight(String paddingRight) + throws DOMException; + +public native String getPaddingBottom(); +public native void setPaddingBottom(String paddingBottom) + throws DOMException; + +public native String getPaddingLeft(); +public native void setPaddingLeft(String paddingLeft) + throws DOMException; + +public native String getPage(); +public native void setPage(String page) + throws DOMException; + +public native String getPageBreakAfter(); +public native void setPageBreakAfter(String pageBreakAfter) + throws DOMException; + +public native String getPageBreakBefore(); +public native void setPageBreakBefore(String pageBreakBefore) + throws DOMException; + +public native String getPageBreakInside(); +public native void setPageBreakInside(String pageBreakInside) + throws DOMException; + +public native String getPause(); +public native void setPause(String pause) + throws DOMException; + +public native String getPauseAfter(); +public native void setPauseAfter(String pauseAfter) + throws DOMException; + +public native String getPauseBefore(); +public native void setPauseBefore(String pauseBefore) + throws DOMException; + +public native String getPitch(); +public native void setPitch(String pitch) + throws DOMException; + +public native String getPitchRange(); +public native void setPitchRange(String pitchRange) + throws DOMException; + +public native String getPlayDuring(); +public native void setPlayDuring(String playDuring) + throws DOMException; + +public native String getPosition(); +public native void setPosition(String position) + throws DOMException; + +public native String getQuotes(); +public native void setQuotes(String quotes) + throws DOMException; + +public native String getRichness(); +public native void setRichness(String richness) + throws DOMException; + +public native String getRight(); +public native void setRight(String right) + throws DOMException; + +public native String getSize(); +public native void setSize(String size) + throws DOMException; + +public native String getSpeak(); +public native void setSpeak(String speak) + throws DOMException; + +public native String getSpeakHeader(); +public native void setSpeakHeader(String speakHeader) + throws DOMException; + +public native String getSpeakNumeral(); +public native void setSpeakNumeral(String speakNumeral) + throws DOMException; + +public native String getSpeakPunctuation(); +public native void setSpeakPunctuation(String speakPunctuation) + throws DOMException; + +public native String getSpeechRate(); +public native void setSpeechRate(String speechRate) + throws DOMException; + +public native String getStress(); +public native void setStress(String stress) + throws DOMException; + +public native String getTableLayout(); +public native void setTableLayout(String tableLayout) + throws DOMException; + +public native String getTextAlign(); +public native void setTextAlign(String textAlign) + throws DOMException; + +public native String getTextDecoration(); +public native void setTextDecoration(String textDecoration) + throws DOMException; + +public native String getTextIndent(); +public native void setTextIndent(String textIndent) + throws DOMException; + +public native String getTextShadow(); +public native void setTextShadow(String textShadow) + throws DOMException; + +public native String getTextTransform(); +public native void setTextTransform(String textTransform) + throws DOMException; + +public native String getTop(); +public native void setTop(String top) + throws DOMException; + +public native String getUnicodeBidi(); +public native void setUnicodeBidi(String unicodeBidi) + throws DOMException; + +public native String getVerticalAlign(); +public native void setVerticalAlign(String verticalAlign) + throws DOMException; + +public native String getVisibility(); +public native void setVisibility(String visibility) + throws DOMException; + +public native String getVoiceFamily(); +public native void setVoiceFamily(String voiceFamily) + throws DOMException; + +public native String getVolume(); +public native void setVolume(String volume) + throws DOMException; + +public native String getWhiteSpace(); +public native void setWhiteSpace(String whiteSpace) + throws DOMException; + +public native String getWidows(); +public native void setWidows(String widows) + throws DOMException; + +public native String getWidth(); +public native void setWidth(String width) + throws DOMException; + +public native String getWordSpacing(); +public native void setWordSpacing(String wordSpacing) + throws DOMException; + +public native String getZIndex(); +public native void setZIndex(String zIndex) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSCharsetRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSCharsetRuleImpl.java new file mode 100644 index 000000000..b29173353 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSCharsetRuleImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; + + +public class CSSCharsetRuleImpl + extends CSSRuleImpl + implements org.w3c.dom.css.CSSCharsetRule +{ + +public native String getEncoding(); +public native void setEncoding(String encoding) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSFontFaceRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSFontFaceRuleImpl.java new file mode 100644 index 000000000..cfa779e27 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSFontFaceRuleImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.css.CSSStyleDeclaration; + + + +public class CSSFontFaceRuleImpl + extends CSSRuleImpl + implements org.w3c.dom.css.CSSFontFaceRule +{ + +public native CSSStyleDeclaration getStyle(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSImportRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSImportRuleImpl.java new file mode 100644 index 000000000..8efb7265f --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSImportRuleImpl.java @@ -0,0 +1,48 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.css.CSSStyleSheet; +import org.w3c.dom.stylesheets.MediaList; + + + +public class CSSImportRuleImpl + extends CSSRuleImpl + implements org.w3c.dom.css.CSSImportRule +{ + +public native String getHref(); + +public native MediaList getMedia(); + +public native CSSStyleSheet getStyleSheet(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSMediaRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSMediaRuleImpl.java new file mode 100644 index 000000000..0993592ba --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSMediaRuleImpl.java @@ -0,0 +1,53 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; +import org.w3c.dom.stylesheets.MediaList; +import org.w3c.dom.css.CSSRuleList; + + +public class CSSMediaRuleImpl + extends CSSRuleImpl + implements org.w3c.dom.css.CSSMediaRule +{ + +public native MediaList getMedia(); + +public native CSSRuleList getCssRules(); + +public native int insertRule(String rule, + int index) + throws DOMException; + +public native void deleteRule(int index) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSPageRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSPageRuleImpl.java new file mode 100644 index 000000000..1b7594304 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSPageRuleImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; +import org.w3c.dom.css.CSSStyleDeclaration; + + +public class CSSPageRuleImpl + extends CSSRuleImpl + implements org.w3c.dom.css.CSSPageRule +{ + +public native String getSelectorText(); +public native void setSelectorText(String selectorText) + throws DOMException; + +public native CSSStyleDeclaration getStyle(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSPrimitiveValueImpl.java b/src/bind/java/org/inkscape/dom/css/CSSPrimitiveValueImpl.java new file mode 100644 index 000000000..34abe3ca1 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSPrimitiveValueImpl.java @@ -0,0 +1,68 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; +import org.w3c.dom.css.Counter; +import org.w3c.dom.css.RGBColor; +import org.w3c.dom.css.Rect; + + +public class CSSPrimitiveValueImpl + extends CSSValueImpl + implements org.w3c.dom.css.CSSPrimitiveValue +{ + +public native short getPrimitiveType(); + +public native void setFloatValue(short unitType, + float floatValue) + throws DOMException; + +public native float getFloatValue(short unitType) + throws DOMException; + +public native void setStringValue(short stringType, + String stringValue) + throws DOMException; + +public native String getStringValue() + throws DOMException; + +public native Counter getCounterValue() + throws DOMException; + +public native Rect getRectValue() + throws DOMException; + +public native RGBColor getRGBColorValue() + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSRuleImpl.java new file mode 100644 index 000000000..ace49a055 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSRuleImpl.java @@ -0,0 +1,51 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; +import org.w3c.dom.css.CSSStyleSheet; +import org.w3c.dom.css.CSSRule; + + +public class CSSRuleImpl + implements org.w3c.dom.css.CSSRule +{ + +public native short getType(); + +public native String getCssText(); +public native void setCssText(String cssText) + throws DOMException; + +public native CSSStyleSheet getParentStyleSheet(); + +public native CSSRule getParentRule(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSRuleListImpl.java b/src/bind/java/org/inkscape/dom/css/CSSRuleListImpl.java new file mode 100644 index 000000000..9fa2d0535 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSRuleListImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.css.CSSRule; + + + +public class CSSRuleListImpl + implements org.w3c.dom.css.CSSRuleList +{ + +public native int getLength(); + +public native CSSRule item(int index); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSStyleDeclarationImpl.java b/src/bind/java/org/inkscape/dom/css/CSSStyleDeclarationImpl.java new file mode 100644 index 000000000..73483f07b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSStyleDeclarationImpl.java @@ -0,0 +1,66 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; +import org.w3c.dom.css.CSSRule; +import org.w3c.dom.css.CSSValue; + + + +public class CSSStyleDeclarationImpl + implements org.w3c.dom.css.CSSStyleDeclaration +{ + +public native String getCssText(); +public native void setCssText(String cssText) + throws DOMException; + +public native String getPropertyValue(String propertyName); + +public native CSSValue getPropertyCSSValue(String propertyName); + +public native String removeProperty(String propertyName) + throws DOMException; + +public native String getPropertyPriority(String propertyName); + +public native void setProperty(String propertyName, + String value, + String priority) + throws DOMException; + +public native int getLength(); + +public native String item(int index); + +public native CSSRule getParentRule(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSStyleRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSStyleRuleImpl.java new file mode 100644 index 000000000..de2d4945e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSStyleRuleImpl.java @@ -0,0 +1,47 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; +import org.w3c.dom.css.CSSStyleDeclaration; + + +public class CSSStyleRuleImpl + extends CSSRuleImpl + implements org.w3c.dom.css.CSSStyleRule +{ + +public native String getSelectorText(); +public native void setSelectorText(String selectorText) + throws DOMException; + +public native CSSStyleDeclaration getStyle(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSStyleSheetImpl.java b/src/bind/java/org/inkscape/dom/css/CSSStyleSheetImpl.java new file mode 100644 index 000000000..ed14d69c9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSStyleSheetImpl.java @@ -0,0 +1,55 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; +import org.w3c.dom.stylesheets.StyleSheet; +import org.w3c.dom.css.CSSRule; +import org.w3c.dom.css.CSSRuleList; + + +public class CSSStyleSheetImpl + extends org.inkscape.dom.stylesheets.StyleSheetImpl + implements org.w3c.dom.css.CSSStyleSheet +{ + +public native CSSRule getOwnerRule(); + + +public native CSSRuleList getCssRules(); + +public native int insertRule(String rule, + int index) + throws DOMException; + +public native void deleteRule(int index) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSUnknownRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSUnknownRuleImpl.java new file mode 100644 index 000000000..d09a73681 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSUnknownRuleImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + + +public class CSSUnknownRuleImpl + extends CSSRuleImpl + implements org.w3c.dom.css.CSSUnknownRule +{ +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSValueImpl.java b/src/bind/java/org/inkscape/dom/css/CSSValueImpl.java new file mode 100644 index 000000000..6782a95b7 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSValueImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMException; + + +public class CSSValueImpl + implements org.w3c.dom.css.CSSValue +{ + +public native String getCssText(); +public native void setCssText(String cssText) + throws DOMException; + +public native short getCssValueType(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CSSValueListImpl.java b/src/bind/java/org/inkscape/dom/css/CSSValueListImpl.java new file mode 100644 index 000000000..334afb1c7 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CSSValueListImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.css.CSSValue; + + + +public class CSSValueListImpl + extends CSSValueImpl + implements org.w3c.dom.css.CSSValueList +{ + +public native int getLength(); + +public native CSSValue item(int index); + +} diff --git a/src/bind/java/org/inkscape/dom/css/CounterImpl.java b/src/bind/java/org/inkscape/dom/css/CounterImpl.java new file mode 100644 index 000000000..1f656b944 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/CounterImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + + + +public class CounterImpl + implements org.w3c.dom.css.Counter +{ + +public native String getIdentifier(); + +public native String getListStyle(); + +public native String getSeparator(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/DOMImplementationCSSImpl.java b/src/bind/java/org/inkscape/dom/css/DOMImplementationCSSImpl.java new file mode 100644 index 000000000..16bf7a994 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/DOMImplementationCSSImpl.java @@ -0,0 +1,47 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.DOMImplementation; +import org.w3c.dom.DOMException; +import org.w3c.dom.css.CSSStyleSheet; + + +public class DOMImplementationCSSImpl + extends + org.inkscape.dom.DOMImplementationImpl + implements org.w3c.dom.css.DOMImplementationCSS +{ + +public native CSSStyleSheet createCSSStyleSheet(String title, + String media) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/css/DocumentCSSImpl.java b/src/bind/java/org/inkscape/dom/css/DocumentCSSImpl.java new file mode 100644 index 000000000..bbbd9c110 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/DocumentCSSImpl.java @@ -0,0 +1,47 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.stylesheets.DocumentStyle; +import org.w3c.dom.Element; +import org.w3c.dom.css.CSSStyleDeclaration; + + + +public class DocumentCSSImpl + extends + org.inkscape.dom.stylesheets.DocumentStyleImpl + implements org.w3c.dom.css.DocumentCSS +{ + +public native CSSStyleDeclaration getOverrideStyle(Element elt, + String pseudoElt); + +} diff --git a/src/bind/java/org/inkscape/dom/css/ElementCSSInlineStyleImpl.java b/src/bind/java/org/inkscape/dom/css/ElementCSSInlineStyleImpl.java new file mode 100644 index 000000000..ba36ae487 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/ElementCSSInlineStyleImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + + +package org.inkscape.dom.css; + +import org.w3c.dom.css.CSSStyleDeclaration; + + + +public class ElementCSSInlineStyleImpl + implements org.w3c.dom.css.ElementCSSInlineStyle +{ + +public native CSSStyleDeclaration getStyle(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/RGBColorImpl.java b/src/bind/java/org/inkscape/dom/css/RGBColorImpl.java new file mode 100644 index 000000000..0f4d50b58 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/RGBColorImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.css.CSSPrimitiveValue; + + +public class RGBColorImpl + implements org.w3c.dom.css.RGBColor +{ + +public native CSSPrimitiveValue getRed(); + +public native CSSPrimitiveValue getGreen(); + +public native CSSPrimitiveValue getBlue(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/RectImpl.java b/src/bind/java/org/inkscape/dom/css/RectImpl.java new file mode 100644 index 000000000..1ef0a766a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/RectImpl.java @@ -0,0 +1,48 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + + +package org.inkscape.dom.css; + +import org.w3c.dom.css.CSSPrimitiveValue; + + +public class RectImpl + implements org.w3c.dom.css.Rect +{ + +public native CSSPrimitiveValue getTop(); + +public native CSSPrimitiveValue getRight(); + +public native CSSPrimitiveValue getBottom(); + +public native CSSPrimitiveValue getLeft(); + +} diff --git a/src/bind/java/org/inkscape/dom/css/ViewCSSImpl.java b/src/bind/java/org/inkscape/dom/css/ViewCSSImpl.java new file mode 100644 index 000000000..c52d056b7 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/css/ViewCSSImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style + */ + + +package org.inkscape.dom.css; + +import org.w3c.dom.views.AbstractView; +import org.w3c.dom.Element; +import org.w3c.dom.css.CSSStyleDeclaration; + + +public class ViewCSSImpl + extends + org.inkscape.dom.views.AbstractViewImpl + implements org.w3c.dom.css.ViewCSS +{ + +public native CSSStyleDeclaration getComputedStyle(Element elt, + String pseudoElt); + +} diff --git a/src/bind/java/org/inkscape/dom/events/CustomEventImpl.java b/src/bind/java/org/inkscape/dom/events/CustomEventImpl.java new file mode 100644 index 000000000..3762e57e2 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/CustomEventImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.events.EventTarget; + + + +public class CustomEventImpl + extends EventImpl + implements org.w3c.dom.events.CustomEvent +{ +public native void setDispatchState(EventTarget target, + short phase); + +public native boolean isPropagationStopped(); + +public native boolean isImmediatePropagationStopped(); + +} diff --git a/src/bind/java/org/inkscape/dom/events/DocumentEventImpl.java b/src/bind/java/org/inkscape/dom/events/DocumentEventImpl.java new file mode 100644 index 000000000..653c004de --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/DocumentEventImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.events.Event; + + + +public class DocumentEventImpl + implements org.w3c.dom.events.DocumentEvent +{ + +public native Event createEvent(String eventType) + throws DOMException; +public native boolean canDispatch(String namespaceURI, + String type); + +} diff --git a/src/bind/java/org/inkscape/dom/events/EventImpl.java b/src/bind/java/org/inkscape/dom/events/EventImpl.java new file mode 100644 index 000000000..858a3e095 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/EventImpl.java @@ -0,0 +1,74 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.events.EventTarget; + + + +public class EventImpl + implements org.w3c.dom.events.Event +{ + +public native String getType(); + +public native EventTarget getTarget(); + +public native EventTarget getCurrentTarget(); + +public native short getEventPhase(); + +public native boolean getBubbles(); + +public native boolean getCancelable(); + +public native long getTimeStamp(); + +public native void stopPropagation(); + +public native void preventDefault(); + +public native void initEvent(String eventTypeArg, + boolean canBubbleArg, + boolean cancelableArg); + +public native String getNamespaceURI(); + +public native boolean isCustom(); + +public native void stopImmediatePropagation(); + +public native boolean isDefaultPrevented(); + +public native void initEventNS(String namespaceURIArg, + String eventTypeArg, + boolean canBubbleArg, + boolean cancelableArg); + +} diff --git a/src/bind/java/org/inkscape/dom/events/EventListenerImpl.java b/src/bind/java/org/inkscape/dom/events/EventListenerImpl.java new file mode 100644 index 000000000..4b680ff86 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/EventListenerImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.events.Event; + + + +public class EventListenerImpl + implements org.w3c.dom.events.EventListener +{ + +public native void handleEvent(Event evt); + +} diff --git a/src/bind/java/org/inkscape/dom/events/EventTargetImpl.java b/src/bind/java/org/inkscape/dom/events/EventTargetImpl.java new file mode 100644 index 000000000..e1996f4ee --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/EventTargetImpl.java @@ -0,0 +1,69 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventListener; + + + +public class EventTargetImpl + implements org.w3c.dom.events.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); + +} diff --git a/src/bind/java/org/inkscape/dom/events/KeyboardEventImpl.java b/src/bind/java/org/inkscape/dom/events/KeyboardEventImpl.java new file mode 100644 index 000000000..24f8de968 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/KeyboardEventImpl.java @@ -0,0 +1,70 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.views.AbstractView; + + +public class KeyboardEventImpl + extends UIEventImpl + implements org.w3c.dom.events.KeyboardEvent +{ + +public native String getKeyIdentifier(); + +public native int getKeyLocation(); + +public native boolean getCtrlKey(); + +public native boolean getShiftKey(); + +public native boolean getAltKey(); + +public native boolean getMetaKey(); + +public native boolean getModifierState(String keyIdentifierArg); + +public native void initKeyboardEvent(String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + String keyIdentifierArg, + int keyLocationArg, + String modifiersList); + +public native void initKeyboardEventNS(String namespaceURI, + String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + String keyIdentifierArg, + int keyLocationArg, + String modifiersList); + +} diff --git a/src/bind/java/org/inkscape/dom/events/MouseEventImpl.java b/src/bind/java/org/inkscape/dom/events/MouseEventImpl.java new file mode 100644 index 000000000..900074643 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/MouseEventImpl.java @@ -0,0 +1,96 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.views.AbstractView; + +import org.w3c.dom.events.EventTarget; + + + +public class MouseEventImpl + extends UIEventImpl + implements org.w3c.dom.events.MouseEvent +{ + +public native int getScreenX(); + +public native int getScreenY(); + +public native int getClientX(); + +public native int getClientY(); + +public native boolean getCtrlKey(); + +public native boolean getShiftKey(); + +public native boolean getAltKey(); + +public native boolean getMetaKey(); + +public native short getButton(); + +public native EventTarget getRelatedTarget(); + +public native void initMouseEvent(String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + int detailArg, + int screenXArg, + int screenYArg, + int clientXArg, + int clientYArg, + boolean ctrlKeyArg, + boolean altKeyArg, + boolean shiftKeyArg, + boolean metaKeyArg, + short buttonArg, + EventTarget relatedTargetArg); + +public native boolean getModifierState(String keyIdentifierArg); + +public native void initMouseEventNS(String namespaceURI, + String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + int detailArg, + int screenXArg, + int screenYArg, + int clientXArg, + int clientYArg, + short buttonArg, + EventTarget relatedTargetArg, + String modifiersList); + +} + + diff --git a/src/bind/java/org/inkscape/dom/events/MutationEventImpl.java b/src/bind/java/org/inkscape/dom/events/MutationEventImpl.java new file mode 100644 index 000000000..df3b9915c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/MutationEventImpl.java @@ -0,0 +1,67 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.Node; + + +public class MutationEventImpl + extends EventImpl + implements org.w3c.dom.events.MutationEvent +{ +public native Node getRelatedNode(); + +public native String getPrevValue(); + +public native String getNewValue(); + +public native String getAttrName(); + +public native short getAttrChange(); + +public native void initMutationEvent(String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + Node relatedNodeArg, + String prevValueArg, + String newValueArg, + String attrNameArg, + short attrChangeArg); + +public native void initMutationEventNS(String namespaceURI, + String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + Node relatedNodeArg, + String prevValueArg, + String newValueArg, + String attrNameArg, + short attrChangeArg); + +} diff --git a/src/bind/java/org/inkscape/dom/events/MutationNameEventImpl.java b/src/bind/java/org/inkscape/dom/events/MutationNameEventImpl.java new file mode 100644 index 000000000..5ee722bfa --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/MutationNameEventImpl.java @@ -0,0 +1,58 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.Node; + + +public class MutationNameEventImpl + extends MutationEventImpl + implements org.w3c.dom.events.MutationNameEvent +{ + +public native String getPrevNamespaceURI(); + +public native String getPrevNodeName(); + +public native void initMutationNameEvent(String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + Node relatedNodeArg, + String prevNamespaceURIArg, + String prevNodeNameArg); + +public native void initMutationNameEventNS(String namespaceURI, + String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + Node relatedNodeArg, + String prevNamespaceURIArg, + String prevNodeNameArg); + +} diff --git a/src/bind/java/org/inkscape/dom/events/TextEventImpl.java b/src/bind/java/org/inkscape/dom/events/TextEventImpl.java new file mode 100644 index 000000000..c62963c53 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/TextEventImpl.java @@ -0,0 +1,55 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + + +package org.inkscape.dom.events; + +import org.w3c.dom.views.AbstractView; + + +public class TextEventImpl + extends UIEventImpl + implements org.w3c.dom.events.TextEvent +{ + +public native String getData(); + +public native void initTextEvent(String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + String dataArg); + +public native void initTextEventNS(String namespaceURI, + String type, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + String dataArg); + +} diff --git a/src/bind/java/org/inkscape/dom/events/UIEventImpl.java b/src/bind/java/org/inkscape/dom/events/UIEventImpl.java new file mode 100644 index 000000000..bb66d154f --- /dev/null +++ b/src/bind/java/org/inkscape/dom/events/UIEventImpl.java @@ -0,0 +1,56 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the Events files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html + */ + +package org.inkscape.dom.events; + +import org.w3c.dom.views.AbstractView; + + +public class UIEventImpl + extends EventImpl + implements org.w3c.dom.events.UIEvent +{ + +public native AbstractView getView(); + +public native int getDetail(); + +public native void initUIEvent(String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + int detailArg); + +public native void initUIEventNS(String namespaceURI, + String typeArg, + boolean canBubbleArg, + boolean cancelableArg, + AbstractView viewArg, + int detailArg); + +} diff --git a/src/bind/java/org/inkscape/dom/smil/ElementExclusiveTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementExclusiveTimeContainerImpl.java new file mode 100644 index 000000000..bc9ce930e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementExclusiveTimeContainerImpl.java @@ -0,0 +1,50 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; +import org.w3c.dom.NodeList; + + +public class ElementExclusiveTimeContainerImpl + extends ElementTimeContainerImpl + implements org.w3c.dom.smil.ElementExclusiveTimeContainer +{ + + +public native String getEndSync(); +public native void setEndSync(String endSync) + throws DOMException; + + +public native NodeList getPausedElements(); + + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementLayoutImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementLayoutImpl.java new file mode 100644 index 000000000..0b4b42df7 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementLayoutImpl.java @@ -0,0 +1,55 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + +public class ElementLayoutImpl + implements org.w3c.dom.smil.ElementLayout +{ + +public native String getTitle(); +public native void setTitle(String title) + throws DOMException; + +public native String getBackgroundColor(); +public native void setBackgroundColor(String backgroundColor) + throws DOMException; + +public native int getHeight(); +public native void setHeight(int height) + throws DOMException; + +public native int getWidth(); +public native void setWidth(int width) + throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementParallelTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementParallelTimeContainerImpl.java new file mode 100644 index 000000000..1feed68dd --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementParallelTimeContainerImpl.java @@ -0,0 +1,47 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + +public class ElementParallelTimeContainerImpl + extends ElementTimeContainerImpl + implements org.w3c.dom.smil.ElementParallelTimeContainer +{ + +public native String getEndSync(); +public native void setEndSync(String endSync) + throws DOMException; + + +public native float getImplicitDuration(); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementSequentialTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementSequentialTimeContainerImpl.java new file mode 100644 index 000000000..51a3abd38 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementSequentialTimeContainerImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class ElementSequentialTimeContainerImpl + extends ElementTimeContainerImpl + implements org.w3c.dom.smil.ElementSequentialTimeContainer +{ +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementSyncBehaviorImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementSyncBehaviorImpl.java new file mode 100644 index 000000000..4cbbf7f33 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementSyncBehaviorImpl.java @@ -0,0 +1,51 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class ElementSyncBehaviorImpl + implements org.w3c.dom.smil.ElementSyncBehavior +{ + +public native String getSyncBehavior(); + + +public native float getSyncTolerance(); + + +public native String getDefaultSyncBehavior(); + + +public native float getDefaultSyncTolerance(); + + +public native boolean getSyncMaster(); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTargetAttributesImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTargetAttributesImpl.java new file mode 100644 index 000000000..dde7e8067 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementTargetAttributesImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class ElementTargetAttributesImpl + implements org.w3c.dom.smil.ElementTargetAttributes +{ + +public native String getAttributeName(); +public native void setAttributeName(String attributeName); + + +public native short getAttributeType(); +public native void setAttributeType(short attributeType); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTestImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTestImpl.java new file mode 100644 index 000000000..fff385dbc --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementTestImpl.java @@ -0,0 +1,71 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + +public class ElementTestImpl + implements org.w3c.dom.smil.ElementTest +{ + +public native int getSystemBitrate(); +public native void setSystemBitrate(int systemBitrate) + throws DOMException; + + +public native boolean getSystemCaptions(); +public native void setSystemCaptions(boolean systemCaptions) + throws DOMException; + + +public native String getSystemLanguage(); +public native void setSystemLanguage(String systemLanguage) + throws DOMException; + + +public native boolean getSystemRequired(); + + +public native boolean getSystemScreenSize(); + + +public native boolean getSystemScreenDepth(); + + +public native String getSystemOverdubOrSubtitle(); +public native void setSystemOverdubOrSubtitle(String systemOverdubOrSubtitle) + throws DOMException; + + +public native boolean getSystemAudioDesc(); +public native void setSystemAudioDesc(boolean systemAudioDesc) + throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeContainerImpl.java new file mode 100644 index 000000000..20aa07804 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementTimeContainerImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.NodeList; + + +public class ElementTimeContainerImpl + extends ElementTimeImpl + implements org.w3c.dom.smil.ElementTimeContainer +{ + +public native NodeList getTimeChildren(); + + +public native NodeList getActiveChildrenAt(float instant); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeControlImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeControlImpl.java new file mode 100644 index 000000000..4f7579978 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementTimeControlImpl.java @@ -0,0 +1,47 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + +public class ElementTimeControlImpl + implements org.w3c.dom.smil.ElementTimeControl +{ +public native boolean beginElement() + throws DOMException; +public native boolean beginElementAt(float offset) + throws DOMException; +public native boolean endElement() + throws DOMException; +public native boolean endElementAt(float offset) + throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeImpl.java new file mode 100644 index 000000000..af2d5aff3 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementTimeImpl.java @@ -0,0 +1,93 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.smil.TimeList; + + + +public class ElementTimeImpl + implements org.w3c.dom.smil.ElementTime +{ + +public native TimeList getBegin(); +public native void setBegin(TimeList begin) + throws DOMException; + + +public native TimeList getEnd(); +public native void setEnd(TimeList end) + throws DOMException; + + +public native float getDur(); +public native void setDur(float dur) + throws DOMException; + + + +public native short getRestart(); +public native void setRestart(short restart) + throws DOMException; + + + +public native short getFill(); +public native void setFill(short fill) + throws DOMException; + + +public native float getRepeatCount(); +public native void setRepeatCount(float repeatCount) + throws DOMException; + + +public native float getRepeatDur(); +public native void setRepeatDur(float repeatDur) + throws DOMException; + + +public native boolean beginElement(); + + +public native boolean endElement(); + + +public native void pauseElement(); + + +public native void resumeElement(); + + +public native void seekElement(float seekTo); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeManipulationImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeManipulationImpl.java new file mode 100644 index 000000000..c94812bf6 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/ElementTimeManipulationImpl.java @@ -0,0 +1,58 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + +public class ElementTimeManipulationImpl + implements org.w3c.dom.smil.ElementTimeManipulation +{ + +public native float getSpeed(); +public native void setSpeed(float speed) + throws DOMException; + + +public native float getAccelerate(); +public native void setAccelerate(float accelerate) + throws DOMException; + + +public native float getDecelerate(); +public native void setDecelerate(float decelerate) + throws DOMException; + + +public native boolean getAutoReverse(); +public native void setAutoReverse(boolean autoReverse) + throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimateColorElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimateColorElementImpl.java new file mode 100644 index 000000000..028bda1a9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILAnimateColorElementImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class SMILAnimateColorElementImpl + extends SMILAnimationImpl + implements org.w3c.dom.smil.SMILAnimateColorElement +{ +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimateElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimateElementImpl.java new file mode 100644 index 000000000..371174d4e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILAnimateElementImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class SMILAnimateElementImpl + extends SMILAnimationImpl + implements org.w3c.dom.smil.SMILAnimateElement +{ +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimateMotionElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimateMotionElementImpl.java new file mode 100644 index 000000000..b5f9a5a10 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILAnimateMotionElementImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + +public class SMILAnimateMotionElementImpl + extends SMILAnimateElementImpl + implements org.w3c.dom.smil.SMILAnimateMotionElement +{ + +public native String getPath(); +public native void setPath(String path) throws DOMException; + +public native String getOrigin(); +public native void setOrigin(String origin) throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimationImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimationImpl.java new file mode 100644 index 000000000..b888d0fc7 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILAnimationImpl.java @@ -0,0 +1,155 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.smil.TimeList; + + +public class SMILAnimationImpl + extends SMILElementImpl + //ElementTargetAttributes, + //ElementTime, + //ElementTimeControl + implements org.w3c.dom.smil.SMILAnimation +{ +//from ElementTargetAttributes +public native String getAttributeName(); +public native void setAttributeName(String attributeName); + + +public native short getAttributeType(); +public native void setAttributeType(short attributeType); +//end ElementTargetAttributes + +//from ElementTime +public native TimeList getBegin(); +public native void setBegin(TimeList begin) + throws DOMException; + + +public native TimeList getEnd(); +public native void setEnd(TimeList end) + throws DOMException; + + +public native float getDur(); +public native void setDur(float dur) + throws DOMException; + + + +public native short getRestart(); +public native void setRestart(short restart) + throws DOMException; + + + +public native short getFill(); +public native void setFill(short fill) + throws DOMException; + + +public native float getRepeatCount(); +public native void setRepeatCount(float repeatCount) + throws DOMException; + + +public native float getRepeatDur(); +public native void setRepeatDur(float repeatDur) + throws DOMException; + + +public native boolean beginElement(); + + +public native boolean endElement(); + + +public native void pauseElement(); + + +public native void resumeElement(); + + +public native void seekElement(float seekTo); +//end ElementTime + + +//from ElementTimeControl +public native boolean beginElementAt(float offset) + throws DOMException; + + +public native boolean endElementAt(float offset) + throws DOMException; + +//end ElementTimeControl + + +public native short getAdditive(); +public native void setAdditive(short additive) + throws DOMException; + + +public native short getAccumulate(); +public native void setAccumulate(short accumulate) + throws DOMException; + +public native short getCalcMode(); +public native void setCalcMode(short calcMode) + throws DOMException; + +public native String getKeySplines(); +public native void setKeySplines(String keySplines) + throws DOMException; + +public native TimeList getKeyTimes(); +public native void setKeyTimes(TimeList keyTimes) + throws DOMException; + +public native String getValues(); +public native void setValues(String values) + throws DOMException; + +public native String getFrom(); +public native void setFrom(String from) + throws DOMException; + +public native String getTo(); +public native void setTo(String to) + throws DOMException; + +public native String getBy(); +public native void setBy(String by) + throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILDocumentImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILDocumentImpl.java new file mode 100644 index 000000000..8ff21db44 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILDocumentImpl.java @@ -0,0 +1,103 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.NodeList; +import org.w3c.dom.smil.TimeList; + + + +public class SMILDocumentImpl + extends org.inkscape.dom.DocumentImpl + //ElementTimeContainer + implements org.w3c.dom.smil.SMILDocument +{ +//from ElementTime +public native TimeList getBegin(); +public native void setBegin(TimeList begin) + throws DOMException; + + +public native TimeList getEnd(); +public native void setEnd(TimeList end) + throws DOMException; + + +public native float getDur(); +public native void setDur(float dur) + throws DOMException; + + + +public native short getRestart(); +public native void setRestart(short restart) + throws DOMException; + + + +public native short getFill(); +public native void setFill(short fill) + throws DOMException; + + +public native float getRepeatCount(); +public native void setRepeatCount(float repeatCount) + throws DOMException; + + +public native float getRepeatDur(); +public native void setRepeatDur(float repeatDur) + throws DOMException; + + +public native boolean beginElement(); + + +public native boolean endElement(); + + +public native void pauseElement(); + + +public native void resumeElement(); + + +public native void seekElement(float seekTo); +//end ElementTime + +//from ElementTimeContainer +public native NodeList getTimeChildren(); + +public native NodeList getActiveChildrenAt(float instant); +//end ElementTimeContainer + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILElementImpl.java new file mode 100644 index 000000000..d69fdf02e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILElementImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + +public class SMILElementImpl + extends org.inkscape.dom.ElementImpl + implements org.w3c.dom.smil.SMILElement +{ + +public native String getId(); +public native void setId(String id) throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILLayoutElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILLayoutElementImpl.java new file mode 100644 index 000000000..51fc5912a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILLayoutElementImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class SMILLayoutElementImpl + extends SMILElementImpl + implements org.w3c.dom.smil.SMILLayoutElement +{ + +public native String getType(); + + +public native boolean getResolved(); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILMediaElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILMediaElementImpl.java new file mode 100644 index 000000000..f0293db2c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILMediaElementImpl.java @@ -0,0 +1,157 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.smil.TimeList; + + + +public class SMILMediaElementImpl + extends SMILElementImpl //ElementTime + implements org.w3c.dom.smil.SMILMediaElement +{ +//from ElementTime +public native TimeList getBegin(); +public native void setBegin(TimeList begin) + throws DOMException; + + +public native TimeList getEnd(); +public native void setEnd(TimeList end) + throws DOMException; + + +public native float getDur(); +public native void setDur(float dur) + throws DOMException; + + + +public native short getRestart(); +public native void setRestart(short restart) + throws DOMException; + + + +public native short getFill(); +public native void setFill(short fill) + throws DOMException; + + +public native float getRepeatCount(); +public native void setRepeatCount(float repeatCount) + throws DOMException; + + +public native float getRepeatDur(); +public native void setRepeatDur(float repeatDur) + throws DOMException; + + +public native boolean beginElement(); + + +public native boolean endElement(); + + +public native void pauseElement(); + + +public native void resumeElement(); + + +public native void seekElement(float seekTo); +//end ElementTime + + +public native String getAbstractAttr(); +public native void setAbstractAttr(String abstractAttr) + throws DOMException; + + +public native String getAlt(); +public native void setAlt(String alt) + throws DOMException; + +public native String getAuthor(); +public native void setAuthor(String author) + throws DOMException; + +public native String getClipBegin(); +public native void setClipBegin(String clipBegin) + throws DOMException; + +public native String getClipEnd(); +public native void setClipEnd(String clipEnd) + throws DOMException; + +public native String getCopyright(); +public native void setCopyright(String copyright) + throws DOMException; + +public native String getLongdesc(); +public native void setLongdesc(String longdesc) + throws DOMException; + +public native String getPort(); +public native void setPort(String port) + throws DOMException; + +public native String getReadIndex(); +public native void setReadIndex(String readIndex) + throws DOMException; + +public native String getRtpformat(); +public native void setRtpformat(String rtpformat) + throws DOMException; + +public native String getSrc(); +public native void setSrc(String src) + throws DOMException; + +public native String getStripRepeat(); +public native void setStripRepeat(String stripRepeat) + throws DOMException; + +public native String getTitle(); +public native void setTitle(String title) + throws DOMException; + +public native String getTransport(); +public native void setTransport(String transport) + throws DOMException; + +public native String getType(); +public native void setType(String type) + throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRefElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRefElementImpl.java new file mode 100644 index 000000000..1eb3d6a28 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILRefElementImpl.java @@ -0,0 +1,37 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class SMILRefElementImpl + extends SMILMediaElementImpl + implements org.w3c.dom.smil.SMILRefElement +{ +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRegionElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRegionElementImpl.java new file mode 100644 index 000000000..1e0def6cd --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILRegionElementImpl.java @@ -0,0 +1,68 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + +public class SMILRegionElementImpl + extends SMILElementImpl //, ElementLayout + implements org.w3c.dom.smil.SMILRegionElement +{ + +//from ElementLayout +public native String getTitle(); +public native void setTitle(String title) + throws DOMException; + +public native String getBackgroundColor(); +public native void setBackgroundColor(String backgroundColor) + throws DOMException; + +public native int getHeight(); +public native void setHeight(int height) + throws DOMException; + +public native int getWidth(); +public native void setWidth(int width) + throws DOMException; +//end ElementLayout + + +public native String getFit(); +public native void setFit(String fit) throws DOMException; + +public native String getTop(); +public native void setTop(String top) throws DOMException; + +public native int getZIndex(); +public native void setZIndex(int zIndex) throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRegionInterfaceImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRegionInterfaceImpl.java new file mode 100644 index 000000000..1f44f9d1b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILRegionInterfaceImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.smil.SMILRegionElement; + + +public class SMILRegionInterfaceImpl + implements org.w3c.dom.smil.SMILRegionInterface +{ + +public native SMILRegionElement getRegion(); +public native void setRegion(SMILRegionElement region); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRootLayoutElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRootLayoutElementImpl.java new file mode 100644 index 000000000..5e43bcf2d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILRootLayoutElementImpl.java @@ -0,0 +1,58 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + + +public class SMILRootLayoutElementImpl + extends SMILElementImpl //, ElementLayout + implements org.w3c.dom.smil.SMILRootLayoutElement +{ +//from ElementLayout +public native String getTitle(); +public native void setTitle(String title) + throws DOMException; + +public native String getBackgroundColor(); +public native void setBackgroundColor(String backgroundColor) + throws DOMException; + +public native int getHeight(); +public native void setHeight(int height) + throws DOMException; + +public native int getWidth(); +public native void setWidth(int width) + throws DOMException; +//end ElementLayout + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILSetElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILSetElementImpl.java new file mode 100644 index 000000000..6465efb7d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILSetElementImpl.java @@ -0,0 +1,123 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.smil.TimeList; + + + +public class SMILSetElementImpl + extends SMILElementImpl + //ElementTimeControl, + //ElementTime, + //ElementTargetAttributes + implements org.w3c.dom.smil.SMILSetElement +{ +//from ElementTimeControl +public native boolean beginElement() + throws DOMException; + +public native boolean beginElementAt(float offset) + throws DOMException; + +public native boolean endElement() + throws DOMException; + + +public native boolean endElementAt(float offset) + throws DOMException; + +//end ElementTimeControl + + +//from ElementTime +public native TimeList getBegin(); +public native void setBegin(TimeList begin) + throws DOMException; + + +public native TimeList getEnd(); +public native void setEnd(TimeList end) + throws DOMException; + + +public native float getDur(); +public native void setDur(float dur) + throws DOMException; + + + +public native short getRestart(); +public native void setRestart(short restart) + throws DOMException; + + + +public native short getFill(); +public native void setFill(short fill) + throws DOMException; + + +public native float getRepeatCount(); +public native void setRepeatCount(float repeatCount) + throws DOMException; + + +public native float getRepeatDur(); +public native void setRepeatDur(float repeatDur) + throws DOMException; + + +public native void pauseElement(); + + +public native void resumeElement(); + + +public native void seekElement(float seekTo); +//end ElementTime + + +//from ElementTargetAttributes +public native String getAttributeName(); +public native void setAttributeName(String attributeName); + + +public native short getAttributeType(); +public native void setAttributeType(short attributeType); +//end ElementTargetAttributes + + +public native String getTo(); +public native void setTo(String to); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILSwitchElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILSwitchElementImpl.java new file mode 100644 index 000000000..78fe093b5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILSwitchElementImpl.java @@ -0,0 +1,40 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + + +public class SMILSwitchElementImpl + extends SMILElementImpl + implements org.w3c.dom.smil.SMILSwitchElement +{ + +public native org.w3c.dom.Element getSelectedElement(); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/SMILTopLayoutElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILTopLayoutElementImpl.java new file mode 100644 index 000000000..2e372eda8 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/SMILTopLayoutElementImpl.java @@ -0,0 +1,57 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; + + + +public class SMILTopLayoutElementImpl + extends SMILElementImpl //, ElementLayout + implements org.w3c.dom.smil.SMILTopLayoutElement +{ +//from ElementLayout +public native String getTitle(); +public native void setTitle(String title) + throws DOMException; + +public native String getBackgroundColor(); +public native void setBackgroundColor(String backgroundColor) + throws DOMException; + +public native int getHeight(); +public native void setHeight(int height) + throws DOMException; + +public native int getWidth(); +public native void setWidth(int width) + throws DOMException; +//end ElementLayout +} + diff --git a/src/bind/java/org/inkscape/dom/smil/TimeEventImpl.java b/src/bind/java/org/inkscape/dom/smil/TimeEventImpl.java new file mode 100644 index 000000000..40305a7ba --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/TimeEventImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.views.AbstractView; + + + +public class TimeEventImpl + extends org.inkscape.dom.events.EventImpl + implements org.w3c.dom.smil.TimeEvent +{ + +public native AbstractView getView(); + +public native int getDetail(); + +public native void initTimeEvent(String typeArg, + AbstractView viewArg, + int detailArg); + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/TimeImpl.java b/src/bind/java/org/inkscape/dom/smil/TimeImpl.java new file mode 100644 index 000000000..e5c6d5987 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/TimeImpl.java @@ -0,0 +1,70 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.DOMException; +import org.w3c.dom.Element; + + + +public class TimeImpl + implements org.w3c.dom.smil.Time +{ + +public native boolean getResolved(); + +public native double getResolvedOffset(); + +public native short getTimeType(); + +public native double getOffset(); +public native void setOffset(double offset) + throws DOMException; + +public native Element getBaseElement(); +public native void setBaseElement(Element baseElement) + throws DOMException; + + +public native boolean getBaseBegin(); +public native void setBaseBegin(boolean baseBegin) + throws DOMException; + + +public native String getEvent(); +public native void setEvent(String event) + throws DOMException; + + +public native String getMarker(); +public native void setMarker(String marker) + throws DOMException; + +} + diff --git a/src/bind/java/org/inkscape/dom/smil/TimeListImpl.java b/src/bind/java/org/inkscape/dom/smil/TimeListImpl.java new file mode 100644 index 000000000..88759e61b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/smil/TimeListImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that the SMIL files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/smil-boston-dom/java-binding.html + */ + +package org.inkscape.dom.smil; + +import org.w3c.dom.smil.Time; + + +public class TimeListImpl + implements org.w3c.dom.smil.TimeList +{ + +public native Time item(int index); + +public native int getLength(); + +} + diff --git a/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java new file mode 100644 index 000000000..b1aedfd90 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style/ + */ + + +package org.inkscape.dom.stylesheets; + +import org.w3c.dom.stylesheets.StyleSheetList; + + +public class DocumentStyleImpl + implements org.w3c.dom.stylesheets.DocumentStyle +{ + +public native StyleSheetList getStyleSheets(); + +} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/LinkStyleImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/LinkStyleImpl.java new file mode 100644 index 000000000..8497fbccd --- /dev/null +++ b/src/bind/java/org/inkscape/dom/stylesheets/LinkStyleImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style/ + */ + +package org.inkscape.dom.stylesheets; + +import org.w3c.dom.stylesheets.StyleSheet; + + + +public class LinkStyleImpl + implements org.w3c.dom.stylesheets.LinkStyle +{ + +public native StyleSheet getSheet(); + +} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/MediaListImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/MediaListImpl.java new file mode 100644 index 000000000..7451dd55d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/stylesheets/MediaListImpl.java @@ -0,0 +1,53 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style/ + */ + + +package org.inkscape.dom.stylesheets; + +import org.w3c.dom.DOMException; + + +public class MediaListImpl + implements org.w3c.dom.stylesheets.MediaList +{ + +public native String getMediaText(); +public native void setMediaText(String mediaText) + throws DOMException; + +public native int getLength(); + +public native String item(int index); + +public native void deleteMedium(String oldMedium) + throws DOMException; + +public native void appendMedium(String newMedium) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetImpl.java new file mode 100644 index 000000000..7383fa871 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetImpl.java @@ -0,0 +1,56 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style/ + */ + +package org.inkscape.dom.stylesheets; + +import org.w3c.dom.Node; +import org.w3c.dom.stylesheets.StyleSheet; +import org.w3c.dom.stylesheets.MediaList; + + + +public class StyleSheetImpl + implements org.w3c.dom.stylesheets.StyleSheet +{ + +public native String getType(); + +public native boolean getDisabled(); +public native void setDisabled(boolean disabled); + +public native Node getOwnerNode(); + +public native StyleSheet getParentStyleSheet(); + +public native String getHref(); + +public native String getTitle(); + +public native MediaList getMedia(); + +} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetListImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetListImpl.java new file mode 100644 index 000000000..11d024948 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetListImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these DOM files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/DOM-Level-2-Style/ + */ + + +package org.inkscape.dom.stylesheets; + +import org.w3c.dom.stylesheets.StyleSheet; + +public class StyleSheetListImpl + implements org.w3c.dom.stylesheets.StyleSheetList +{ + +public native int getLength(); + +public native StyleSheet item(int index); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/GetSVGDocumentImpl.java b/src/bind/java/org/inkscape/dom/svg/GetSVGDocumentImpl.java new file mode 100644 index 000000000..afa49fd2f --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/GetSVGDocumentImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGDocument; + + +public class GetSVGDocumentImpl + implements org.w3c.dom.svg.GetSVGDocument +{ + +public native SVGDocument getSVGDocument ( ) + throws DOMException; + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAElementImpl.java new file mode 100644 index 000000000..120683570 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAElementImpl.java @@ -0,0 +1,129 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGAElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGAElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + +public native SVGAnimatedString getTarget( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphDefElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphDefElementImpl.java new file mode 100644 index 000000000..a7d7fa013 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphDefElementImpl.java @@ -0,0 +1,36 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +public class SVGAltGlyphDefElementImpl + extends SVGElementImpl + implements org.w3c.dom.svg.SVGAltGlyphDefElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphElementImpl.java new file mode 100644 index 000000000..0dbdd1474 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphElementImpl.java @@ -0,0 +1,53 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.*; + + +public class SVGAltGlyphElementImpl + extends + SVGTextPositioningElementImpl + //SVGURIReference + implements org.w3c.dom.svg.SVGAltGlyphElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + + +public native String getGlyphRef( ); +public native void setGlyphRef( String glyphRef ) + throws DOMException; +public native String getFormat( ); +public native void setFormat( String format ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphItemElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphItemElementImpl.java new file mode 100644 index 000000000..6c769576a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphItemElementImpl.java @@ -0,0 +1,36 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +public class SVGAltGlyphItemElementImpl + extends SVGElementImpl + implements org.w3c.dom.svg.SVGAltGlyphItemElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAngleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAngleImpl.java new file mode 100644 index 000000000..8c6f385d4 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAngleImpl.java @@ -0,0 +1,50 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGAngleImpl + implements org.w3c.dom.svg.SVGAngle +{ +public native short getUnitType( ); +public native float getValue( ); +public native void setValue( float value ) + throws DOMException; +public native float getValueInSpecifiedUnits( ); +public native void setValueInSpecifiedUnits( float valueInSpecifiedUnits ) + throws DOMException; +public native String getValueAsString( ); +public native void setValueAsString( String valueAsString ) + throws DOMException; + +public native void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits ); +public native void convertToSpecifiedUnits ( short unitType ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateColorElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateColorElementImpl.java new file mode 100644 index 000000000..d8dbeeab0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimateColorElementImpl.java @@ -0,0 +1,36 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +public class SVGAnimateColorElementImpl + extends SVGAnimationElementImpl + implements org.w3c.dom.svg.SVGAnimateColorElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateElementImpl.java new file mode 100644 index 000000000..fb4cf9fe0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimateElementImpl.java @@ -0,0 +1,35 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +public class SVGAnimateElementImpl + extends SVGAnimationElementImpl + implements org.w3c.dom.svg.SVGAnimateElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateMotionElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateMotionElementImpl.java new file mode 100644 index 000000000..40911bf9d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimateMotionElementImpl.java @@ -0,0 +1,35 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +public class SVGAnimateMotionElementImpl + extends SVGAnimationElementImpl + implements org.w3c.dom.svg.SVGAnimateMotionElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateTransformElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateTransformElementImpl.java new file mode 100644 index 000000000..1be3639ac --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimateTransformElementImpl.java @@ -0,0 +1,35 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +public class SVGAnimateTransformElementImpl + extends SVGAnimationElementImpl + implements org.w3c.dom.svg.SVGAnimateTransformElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedAngleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedAngleImpl.java new file mode 100644 index 000000000..f419f49cc --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedAngleImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAngle; + + + +public class SVGAnimatedAngleImpl + implements org.w3c.dom.svg.SVGAnimatedAngle +{ + +public native SVGAngle getBaseVal( ); +public native SVGAngle getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedBooleanImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedBooleanImpl.java new file mode 100644 index 000000000..7501e5120 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedBooleanImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + + +public class SVGAnimatedBooleanImpl + implements org.w3c.dom.svg.SVGAnimatedBoolean +{ + +public native boolean getBaseVal( ); + +public native void setBaseVal( boolean baseVal ) + throws DOMException; + +public native boolean getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedEnumerationImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedEnumerationImpl.java new file mode 100644 index 000000000..f38118053 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedEnumerationImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGAnimatedEnumerationImpl + implements org.w3c.dom.svg.SVGAnimatedEnumeration +{ + +public native short getBaseVal( ); + +public native void setBaseVal( short baseVal ) + throws DOMException; + +public native short getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedIntegerImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedIntegerImpl.java new file mode 100644 index 000000000..dc6ad43d1 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedIntegerImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + + +public class SVGAnimatedIntegerImpl + implements org.w3c.dom.svg.SVGAnimatedInteger +{ + +public native int getBaseVal( ); + +public native void setBaseVal( int baseVal ) + throws DOMException; + +public native int getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthImpl.java new file mode 100644 index 000000000..44dce05c8 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGLength; + + +public class SVGAnimatedLengthImpl + implements org.w3c.dom.svg.SVGAnimatedLength +{ + +public native SVGLength getBaseVal( ); + +public native SVGLength getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthListImpl.java new file mode 100644 index 000000000..b9ec6059a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthListImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGLengthList; + + +public class SVGAnimatedLengthListImpl + implements org.w3c.dom.svg.SVGAnimatedLengthList +{ + +public native SVGLengthList getBaseVal( ); +public native SVGLengthList getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberImpl.java new file mode 100644 index 000000000..dffbb259c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGAnimatedNumberImpl + implements org.w3c.dom.svg.SVGAnimatedNumber +{ + +public native float getBaseVal( ); + +public native void setBaseVal( float baseVal ) + throws DOMException; + +public native float getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberListImpl.java new file mode 100644 index 000000000..0862330b0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberListImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGNumberList; + + +public class SVGAnimatedNumberListImpl + implements org.w3c.dom.svg.SVGAnimatedNumberList +{ + +public native SVGNumberList getBaseVal( ); + +public native SVGNumberList getAnimVal( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java new file mode 100644 index 000000000..3a7aea7bc --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGPathSegList; + + +public class SVGAnimatedPathDataImpl + implements org.w3c.dom.svg.SVGAnimatedPathData +{ + +public native SVGPathSegList getPathSegList( ); +public native SVGPathSegList getNormalizedPathSegList( ); +public native SVGPathSegList getAnimatedPathSegList( ); +public native SVGPathSegList getAnimatedNormalizedPathSegList( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java new file mode 100644 index 000000000..c95fdd6a4 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGPointList; + + +public class SVGAnimatedPointsImpl + implements org.w3c.dom.svg.SVGAnimatedPoints +{ + +public native SVGPointList getPoints( ); +public native SVGPointList getAnimatedPoints( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPreserveAspectRatioImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPreserveAspectRatioImpl.java new file mode 100644 index 000000000..93d463ca0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPreserveAspectRatioImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGPreserveAspectRatio; + + +public class SVGAnimatedPreserveAspectRatioImpl + implements org.w3c.dom.svg.SVGAnimatedPreserveAspectRatio +{ +public native SVGPreserveAspectRatio getBaseVal( ); +public native SVGPreserveAspectRatio getAnimVal( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedRectImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedRectImpl.java new file mode 100644 index 000000000..ba2bc09a8 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedRectImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGRect; + +public class SVGAnimatedRectImpl + implements org.w3c.dom.svg.SVGAnimatedRect +{ +public native SVGRect getBaseVal( ); +public native SVGRect getAnimVal( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedStringImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedStringImpl.java new file mode 100644 index 000000000..4276bcb13 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedStringImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +public class SVGAnimatedStringImpl + implements org.w3c.dom.svg.SVGAnimatedString +{ +public native String getBaseVal( ); +public native void setBaseVal( String baseVal ) + throws DOMException; +public native String getAnimVal( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedTransformListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedTransformListImpl.java new file mode 100644 index 000000000..21a015177 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedTransformListImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGTransformList; + + +public class SVGAnimatedTransformListImpl + implements org.w3c.dom.svg.SVGAnimatedTransformList +{ +public native SVGTransformList getBaseVal( ); +public native SVGTransformList getAnimVal( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimationElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimationElementImpl.java new file mode 100644 index 000000000..e4c1dc160 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGAnimationElementImpl.java @@ -0,0 +1,107 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.smil.ElementTimeControl; +import org.w3c.dom.svg.*; + +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventListener; + + + +public class SVGAnimationElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGExternalResourcesRequired, + //ElementTimeControl, + //EventTarget + implements org.w3c.dom.svg.SVGAnimationElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String extension ); +//end SVGTests + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from ElementTimeControl +public native boolean beginElement() + throws DOMException; +public native boolean beginElementAt(float offset) + throws DOMException; +public native boolean endElement() + throws DOMException; +public native boolean endElementAt(float offset) + throws DOMException; +//end ElementTimeControl + + +//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 + + +public native SVGElement getTargetElement( ); + +public native float getStartTime ( ); + +public native float getCurrentTime ( ); + +public native float getSimpleDuration ( ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGCSSRuleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGCSSRuleImpl.java new file mode 100644 index 000000000..d99f6da80 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGCSSRuleImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + + + +public class SVGCSSRuleImpl + extends + org.inkscape.dom.css.CSSRuleImpl + implements org.w3c.dom.svg.SVGCSSRule +{ + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGCircleElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGCircleElementImpl.java new file mode 100644 index 000000000..6b1faacbd --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGCircleElementImpl.java @@ -0,0 +1,127 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventListener; + + +public class SVGCircleElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGCircleElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + +public native SVGAnimatedLength getCx( ); + +public native SVGAnimatedLength getCy( ); + +public native SVGAnimatedLength getR( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGClipPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGClipPathElementImpl.java new file mode 100644 index 000000000..37fc8ad0f --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGClipPathElementImpl.java @@ -0,0 +1,97 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + + +public class SVGClipPathElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //SVGUnitTypes + implements org.w3c.dom.svg.SVGClipPathElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + +public native SVGAnimatedEnumeration getClipPathUnits( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGColorImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGColorImpl.java new file mode 100644 index 000000000..51d11e777 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGColorImpl.java @@ -0,0 +1,54 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGException; +import org.w3c.dom.css.RGBColor; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.svg.SVGICCColor; + +public class SVGColorImpl + extends + org.inkscape.dom.css.CSSValueImpl + implements org.w3c.dom.svg.SVGColor +{ + +public native short getColorType( ); +public native RGBColor getRGBColor( ); +public native SVGICCColor getICCColor( ); + +public native void setRGBColor ( String rgbColor ) + throws SVGException; +public native void setRGBColorICCColor ( String rgbColor, String iccColor ) + throws SVGException; +public native void setColor ( short colorType, String rgbColor, String iccColor ) + throws SVGException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGColorProfileElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGColorProfileElementImpl.java new file mode 100644 index 000000000..66dac7c5e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGColorProfileElementImpl.java @@ -0,0 +1,59 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGAnimatedString; + + + +public class SVGColorProfileElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGRenderingIntent + implements org.w3c.dom.svg.SVGColorProfileElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +public native String getLocal( ); +public native void setLocal( String local ) + throws DOMException; + +public native String getName( ); +public native void setName( String name ) + throws DOMException; + +public native short getRenderingIntent( ); +public native void setRenderingIntent( short renderingIntent ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGColorProfileRuleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGColorProfileRuleImpl.java new file mode 100644 index 000000000..62b95b219 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGColorProfileRuleImpl.java @@ -0,0 +1,53 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + + +public class SVGColorProfileRuleImpl + extends + SVGCSSRuleImpl + //SVGRenderingIntent + implements org.w3c.dom.svg.SVGColorProfileRule +{ + +public native String getSrc( ); +public native void setSrc( String src ) + throws DOMException; + +public native String getName( ); +public native void setName( String name ) + throws DOMException; + +public native short getRenderingIntent( ); +public native void setRenderingIntent( short renderingIntent ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGComponentTransferFunctionElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGComponentTransferFunctionElementImpl.java new file mode 100644 index 000000000..e257e76c8 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGComponentTransferFunctionElementImpl.java @@ -0,0 +1,50 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedEnumeration; +import org.w3c.dom.svg.SVGAnimatedNumberList; +import org.w3c.dom.svg.SVGAnimatedNumber; + + +public class SVGComponentTransferFunctionElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGComponentTransferFunctionElement +{ + +public native SVGAnimatedEnumeration getType( ); +public native SVGAnimatedNumberList getTableValues( ); +public native SVGAnimatedNumber getSlope( ); +public native SVGAnimatedNumber getIntercept( ); +public native SVGAnimatedNumber getAmplitude( ); +public native SVGAnimatedNumber getExponent( ); +public native SVGAnimatedNumber getOffset( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGCursorElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGCursorElementImpl.java new file mode 100644 index 000000000..6eb318bb9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGCursorElementImpl.java @@ -0,0 +1,64 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + + +public class SVGCursorElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGTests, + //SVGExternalResourcesRequired + implements org.w3c.dom.svg.SVGCursorElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String extension ); +//end SVGTests + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + + + +public native SVGAnimatedLength getX( ); + +public native SVGAnimatedLength getY( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDefinitionSrcElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDefinitionSrcElementImpl.java new file mode 100644 index 000000000..bc57aa1c9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGDefinitionSrcElementImpl.java @@ -0,0 +1,36 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +public class SVGDefinitionSrcElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGDefinitionSrcElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDefsElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDefsElementImpl.java new file mode 100644 index 000000000..919de9611 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGDefsElementImpl.java @@ -0,0 +1,122 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGDefsElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGDefsElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDescElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDescElementImpl.java new file mode 100644 index 000000000..335362520 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGDescElementImpl.java @@ -0,0 +1,64 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGDescElementImpl + extends + SVGElementImpl + // SVGLangSpace, + // SVGStylable + implements org.w3c.dom.svg.SVGDescElement +{ +//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; +//end SVGLangSpace + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDocumentImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDocumentImpl.java new file mode 100644 index 000000000..f23c17a6a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGDocumentImpl.java @@ -0,0 +1,64 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.Document; +import org.w3c.dom.events.Event; +import org.w3c.dom.events.DocumentEvent; + +import org.w3c.dom.svg.SVGSVGElement; + + +public class SVGDocumentImpl + extends + org.inkscape.dom.DocumentImpl + // DocumentEvent + implements org.w3c.dom.svg.SVGDocument +{ +//from DocumentEvent +public native Event createEvent(String eventType) + throws DOMException; + +public native boolean canDispatch(String namespaceURI, + String type); +//end DocumentEvent + +public native String getTitle( ); + +public native String getReferrer( ); + +public native String getDomain( ); + +public native String getURL( ); + +public native SVGSVGElement getRootElement( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGElementImpl.java new file mode 100644 index 000000000..f0f8c3436 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGElementImpl.java @@ -0,0 +1,53 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGElement; +import org.w3c.dom.svg.SVGSVGElement; + + + +public class SVGElementImpl + extends + org.inkscape.dom.ElementImpl + implements org.w3c.dom.svg.SVGElement +{ + +public native String getId( ); +public native void setId( String id ) + throws DOMException; +public native String getXMLbase( ); +public native void setXMLbase( String xmlbase ) + throws DOMException; +public native SVGSVGElement getOwnerSVGElement( ); +public native SVGElement getViewportElement( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceImpl.java new file mode 100644 index 000000000..2d33de6c2 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGElement; +import org.w3c.dom.svg.SVGUseElement; +import org.w3c.dom.svg.SVGElementInstance; +import org.w3c.dom.svg.SVGElementInstanceList; + + +public class SVGElementInstanceImpl + extends + org.inkscape.dom.events.EventTargetImpl + implements org.w3c.dom.svg.SVGElementInstance +{ + +public native SVGElement getCorrespondingElement( ); +public native SVGUseElement getCorrespondingUseElement( ); +public native SVGElementInstance getParentNode( ); +public native SVGElementInstanceList getChildNodes( ); +public native SVGElementInstance getFirstChild( ); +public native SVGElementInstance getLastChild( ); +public native SVGElementInstance getPreviousSibling( ); +public native SVGElementInstance getNextSibling( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceListImpl.java new file mode 100644 index 000000000..c504701ae --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceListImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGElementInstance; + + +public class SVGElementInstanceListImpl + implements org.w3c.dom.svg.SVGElementInstanceList +{ +public native int getLength( ); + +public native SVGElementInstance item ( int index ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGEllipseElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGEllipseElementImpl.java new file mode 100644 index 000000000..5a5cdbe91 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGEllipseElementImpl.java @@ -0,0 +1,131 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGEllipseElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGEllipseElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + + +public native SVGAnimatedLength getCx( ); + +public native SVGAnimatedLength getCy( ); + +public native SVGAnimatedLength getRx( ); + +public native SVGAnimatedLength getRy( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGEventImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGEventImpl.java new file mode 100644 index 000000000..ab1b4686d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGEventImpl.java @@ -0,0 +1,40 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + + + + +public class SVGEventImpl + extends + org.inkscape.dom.events.EventImpl + implements org.w3c.dom.svg.SVGEvent +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGExternalResourcesRequiredImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGExternalResourcesRequiredImpl.java new file mode 100644 index 000000000..b4830d9a0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGExternalResourcesRequiredImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedBoolean; + + +public class SVGExternalResourcesRequiredImpl + implements org.w3c.dom.svg.SVGExternalResourcesRequired +{ + +public native SVGAnimatedBoolean getExternalResourcesRequired( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEBlendElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEBlendElementImpl.java new file mode 100644 index 000000000..1bf2b4e98 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEBlendElementImpl.java @@ -0,0 +1,68 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFEBlendElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEBlendElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); + +public native SVGAnimatedString getIn2( ); + +public native SVGAnimatedEnumeration getMode( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEColorMatrixElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEColorMatrixElementImpl.java new file mode 100644 index 000000000..626b377b6 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEColorMatrixElementImpl.java @@ -0,0 +1,68 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFEColorMatrixElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEColorMatrixElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); + +public native SVGAnimatedEnumeration getType( ); + +public native SVGAnimatedNumberList getValues( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEComponentTransferElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEComponentTransferElementImpl.java new file mode 100644 index 000000000..3909943fe --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEComponentTransferElementImpl.java @@ -0,0 +1,63 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFEComponentTransferElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEComponentTransferElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFECompositeElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFECompositeElementImpl.java new file mode 100644 index 000000000..ec6185fc7 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFECompositeElementImpl.java @@ -0,0 +1,77 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFECompositeElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFECompositeElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + + +public native SVGAnimatedString getIn1( ); + +public native SVGAnimatedString getIn2( ); + +public native SVGAnimatedEnumeration getOperator( ); + +public native SVGAnimatedNumber getK1( ); + +public native SVGAnimatedNumber getK2( ); + +public native SVGAnimatedNumber getK3( ); + +public native SVGAnimatedNumber getK4( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEConvolveMatrixElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEConvolveMatrixElementImpl.java new file mode 100644 index 000000000..567df36ec --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEConvolveMatrixElementImpl.java @@ -0,0 +1,83 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFEConvolveMatrixElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEConvolveMatrixElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedInteger getOrderX( ); + +public native SVGAnimatedInteger getOrderY( ); + +public native SVGAnimatedNumberList getKernelMatrix( ); + +public native SVGAnimatedNumber getDivisor( ); + +public native SVGAnimatedNumber getBias( ); + +public native SVGAnimatedInteger getTargetX( ); + +public native SVGAnimatedInteger getTargetY( ); + +public native SVGAnimatedEnumeration getEdgeMode( ); + +public native SVGAnimatedNumber getKernelUnitLengthX( ); + +public native SVGAnimatedNumber getKernelUnitLengthY( ); + +public native SVGAnimatedBoolean getPreserveAlpha( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEDiffuseLightingElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEDiffuseLightingElementImpl.java new file mode 100644 index 000000000..c5bbaa00d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEDiffuseLightingElementImpl.java @@ -0,0 +1,71 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFEDiffuseLightingElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEDiffuseLightingElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); + +public native SVGAnimatedNumber getSurfaceScale( ); + +public native SVGAnimatedNumber getDiffuseConstant( ); + +public native SVGAnimatedNumber getKernelUnitLengthX( ); + +public native SVGAnimatedNumber getKernelUnitLengthY( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEDisplacementMapElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEDisplacementMapElementImpl.java new file mode 100644 index 000000000..9a92612fe --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEDisplacementMapElementImpl.java @@ -0,0 +1,66 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFEDisplacementMapElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEDisplacementMapElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); +public native SVGAnimatedString getIn2( ); +public native SVGAnimatedNumber getScale( ); +public native SVGAnimatedEnumeration getXChannelSelector( ); +public native SVGAnimatedEnumeration getYChannelSelector( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEDistantLightElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEDistantLightElementImpl.java new file mode 100644 index 000000000..bda6f9f2c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEDistantLightElementImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedNumber; + + +public class SVGFEDistantLightElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFEDistantLightElement +{ + +public native SVGAnimatedNumber getAzimuth( ); +public native SVGAnimatedNumber getElevation( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFloodElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFloodElementImpl.java new file mode 100644 index 000000000..006aebb4d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEFloodElementImpl.java @@ -0,0 +1,63 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFEFloodElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEFloodElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncAElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncAElementImpl.java new file mode 100644 index 000000000..347f2b0de --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncAElementImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + + +public class SVGFEFuncAElementImpl + extends + SVGComponentTransferFunctionElementImpl + implements org.w3c.dom.svg.SVGFEFuncAElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncBElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncBElementImpl.java new file mode 100644 index 000000000..536521c4a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncBElementImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + + +public class SVGFEFuncBElementImpl + extends + SVGComponentTransferFunctionElementImpl + implements org.w3c.dom.svg.SVGFEFuncBElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncGElementImpl.java new file mode 100644 index 000000000..09e50e137 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncGElementImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + + +public class SVGFEFuncGElementImpl + extends + SVGComponentTransferFunctionElementImpl + implements org.w3c.dom.svg.SVGFEFuncGElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncRElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncRElementImpl.java new file mode 100644 index 000000000..21cf4674e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncRElementImpl.java @@ -0,0 +1,40 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + + + +public class SVGFEFuncRElementImpl + extends + SVGComponentTransferFunctionElementImpl + implements org.w3c.dom.svg.SVGFEFuncRElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEGaussianBlurElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEGaussianBlurElementImpl.java new file mode 100644 index 000000000..26d26388e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEGaussianBlurElementImpl.java @@ -0,0 +1,69 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFEGaussianBlurElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEGaussianBlurElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + + +public native SVGAnimatedString getIn1( ); + +public native SVGAnimatedNumber getStdDeviationX( ); + +public native SVGAnimatedNumber getStdDeviationY( ); + +public native void setStdDeviation ( float stdDeviationX, float stdDeviationY ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEImageElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEImageElementImpl.java new file mode 100644 index 000000000..0ae130ffc --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEImageElementImpl.java @@ -0,0 +1,88 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGFEImageElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEImageElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEMergeElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEMergeElementImpl.java new file mode 100644 index 000000000..ab9185a55 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEMergeElementImpl.java @@ -0,0 +1,59 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFEMergeElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEMergeElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEMergeNodeElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEMergeNodeElementImpl.java new file mode 100644 index 000000000..9083d0ae0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEMergeNodeElementImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedString; + + +public class SVGFEMergeNodeElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFEMergeNodeElement +{ + +public native SVGAnimatedString getIn1( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEMorphologyElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEMorphologyElementImpl.java new file mode 100644 index 000000000..b6d397733 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEMorphologyElementImpl.java @@ -0,0 +1,62 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFEMorphologyElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEMorphologyElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); +public native SVGAnimatedEnumeration getOperator( ); +public native SVGAnimatedNumber getRadiusX( ); +public native SVGAnimatedNumber getRadiusY( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEOffsetElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEOffsetElementImpl.java new file mode 100644 index 000000000..f368c732b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEOffsetElementImpl.java @@ -0,0 +1,64 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFEOffsetElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFEOffsetElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +public native SVGAnimatedString getIn1( ); + +public native SVGAnimatedNumber getDx( ); + +public native SVGAnimatedNumber getDy( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEPointLightElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEPointLightElementImpl.java new file mode 100644 index 000000000..5da2e6571 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFEPointLightElementImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedNumber; + + +public class SVGFEPointLightElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFEPointLightElement +{ +public native SVGAnimatedNumber getX( ); +public native SVGAnimatedNumber getY( ); +public native SVGAnimatedNumber getZ( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFESpecularLightingElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFESpecularLightingElementImpl.java new file mode 100644 index 000000000..ff660695e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFESpecularLightingElementImpl.java @@ -0,0 +1,66 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFESpecularLightingElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFESpecularLightingElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); + +public native SVGAnimatedNumber getSurfaceScale( ); + +public native SVGAnimatedNumber getSpecularConstant( ); + +public native SVGAnimatedNumber getSpecularExponent( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFESpotLightElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFESpotLightElementImpl.java new file mode 100644 index 000000000..9cd942d59 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFESpotLightElementImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedNumber; + + +public class SVGFESpotLightElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFESpotLightElement +{ +public native SVGAnimatedNumber getX( ); +public native SVGAnimatedNumber getY( ); +public native SVGAnimatedNumber getZ( ); +public native SVGAnimatedNumber getPointsAtX( ); +public native SVGAnimatedNumber getPointsAtY( ); +public native SVGAnimatedNumber getPointsAtZ( ); +public native SVGAnimatedNumber getSpecularExponent( ); +public native SVGAnimatedNumber getLimitingConeAngle( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFETileElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFETileElementImpl.java new file mode 100644 index 000000000..fea42c589 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFETileElementImpl.java @@ -0,0 +1,60 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFETileElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFETileElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native SVGAnimatedString getIn1( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFETurbulenceElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFETurbulenceElementImpl.java new file mode 100644 index 000000000..bac59965a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFETurbulenceElementImpl.java @@ -0,0 +1,69 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGFETurbulenceElementImpl + extends + SVGElementImpl + //SVGFilterPrimitiveStandardAttributes + implements org.w3c.dom.svg.SVGFETurbulenceElement +{ +//from SVGFilterPrimitiveStandardAttributes +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +//end SVGFilterPrimitiveStandardAttributes + +//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +public native SVGAnimatedNumber getBaseFrequencyX( ); + +public native SVGAnimatedNumber getBaseFrequencyY( ); + +public native SVGAnimatedInteger getNumOctaves( ); + +public native SVGAnimatedNumber getSeed( ); + +public native SVGAnimatedEnumeration getStitchTiles( ); + +public native SVGAnimatedEnumeration getType( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFilterElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFilterElementImpl.java new file mode 100644 index 000000000..2604d8f03 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFilterElementImpl.java @@ -0,0 +1,83 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFilterElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGUnitTypes + implements org.w3c.dom.svg.SVGFilterElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +public native SVGAnimatedEnumeration getFilterUnits( ); +public native SVGAnimatedEnumeration getPrimitiveUnits( ); +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedInteger getFilterResX( ); +public native SVGAnimatedInteger getFilterResY( ); +public native void setFilterRes ( int filterResX, int filterResY ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFilterPrimitiveStandardAttributesImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFilterPrimitiveStandardAttributesImpl.java new file mode 100644 index 000000000..1dd6b2ea6 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFilterPrimitiveStandardAttributesImpl.java @@ -0,0 +1,47 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedLength; +import org.w3c.dom.svg.SVGAnimatedString; + + +public class SVGFilterPrimitiveStandardAttributesImpl + extends + SVGStylableImpl + implements org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes +{ +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedString getResult( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java new file mode 100644 index 000000000..2a2e77df2 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedRect; +import org.w3c.dom.svg.SVGAnimatedPreserveAspectRatio; + + +public class SVGFitToViewBoxImpl + implements org.w3c.dom.svg.SVGFitToViewBox +{ + +public native SVGAnimatedRect getViewBox( ); +public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontElementImpl.java new file mode 100644 index 000000000..98522a98a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFontElementImpl.java @@ -0,0 +1,57 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGFontElementImpl + extends + SVGElementImpl + //SVGExternalResourcesRequired, + //SVGStylable + implements org.w3c.dom.svg.SVGFontElement +{ +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceElementImpl.java new file mode 100644 index 000000000..3e5da61f5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceElementImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + + +public class SVGFontFaceElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFontFaceElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceFormatElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceFormatElementImpl.java new file mode 100644 index 000000000..448ffe732 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceFormatElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGFontFaceFormatElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFontFaceFormatElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceNameElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceNameElementImpl.java new file mode 100644 index 000000000..506e1136f --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceNameElementImpl.java @@ -0,0 +1,39 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + + +public class SVGFontFaceNameElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFontFaceNameElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceSrcElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceSrcElementImpl.java new file mode 100644 index 000000000..7f86c9453 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceSrcElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGFontFaceSrcElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFontFaceSrcElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceUriElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceUriElementImpl.java new file mode 100644 index 000000000..228bc4867 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceUriElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGFontFaceUriElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGFontFaceUriElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGForeignObjectElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGForeignObjectElementImpl.java new file mode 100644 index 000000000..ed7e5dd73 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGForeignObjectElementImpl.java @@ -0,0 +1,126 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGForeignObjectElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGForeignObjectElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java new file mode 100644 index 000000000..cf0fd1e28 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java @@ -0,0 +1,122 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGGElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGGElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java new file mode 100644 index 000000000..663498389 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGGlyphElementImpl + extends + SVGElementImpl + //SVGStylable + implements org.w3c.dom.svg.SVGGlyphElement +{ +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 new file mode 100644 index 000000000..18faa6161 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java @@ -0,0 +1,76 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGGlyphRefElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGStylable + implements org.w3c.dom.svg.SVGGlyphRefElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +public native String getGlyphRef( ); +public native void setGlyphRef( String glyphRef ) + throws DOMException; +public native String getFormat( ); +public native void setFormat( String format ) + throws DOMException; +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getDx( ); +public native void setDx( float dx ) + throws DOMException; +public native float getDy( ); +public native void setDy( float dy ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java new file mode 100644 index 000000000..7153eb825 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java @@ -0,0 +1,70 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGGradientElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGUnitTypes + implements org.w3c.dom.svg.SVGGradientElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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/SVGHKernElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGHKernElementImpl.java new file mode 100644 index 000000000..d8d303ec1 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGHKernElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGHKernElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGHKernElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGICCColorImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGICCColorImpl.java new file mode 100644 index 000000000..f282df71e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGICCColorImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGNumberList; + + +public class SVGICCColorImpl + implements org.w3c.dom.svg.SVGICCColor +{ +public native String getColorProfile( ); +public native void setColorProfile( String colorProfile ) + throws DOMException; +public native SVGNumberList getColors( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java new file mode 100644 index 000000000..aad2a1ae5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java @@ -0,0 +1,132 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGImageElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGImageElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLangSpaceImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLangSpaceImpl.java new file mode 100644 index 000000000..4a35f0539 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGLangSpaceImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + + +public class SVGLangSpaceImpl + implements org.w3c.dom.svg.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; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLengthImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLengthImpl.java new file mode 100644 index 000000000..7b6bf9f86 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGLengthImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + + +public class SVGLengthImpl + implements org.w3c.dom.svg.SVGLength +{ +public native short getUnitType( ); +public native float getValue( ); +public native void setValue( float value ) + throws DOMException; +public native float getValueInSpecifiedUnits( ); +public native void setValueInSpecifiedUnits( float valueInSpecifiedUnits ) + throws DOMException; +public native String getValueAsString( ); +public native void setValueAsString( String valueAsString ) + throws DOMException; + +public native void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits ); +public native void convertToSpecifiedUnits ( short unitType ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLengthListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLengthListImpl.java new file mode 100644 index 000000000..4f0ce4c66 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGLengthListImpl.java @@ -0,0 +1,56 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGException; +import org.w3c.dom.svg.SVGLength; + + +public class SVGLengthListImpl + implements org.w3c.dom.svg.SVGLengthList +{ +public native int getNumberOfItems( ); + +public native void clear ( ) + throws DOMException; +public native SVGLength initialize ( SVGLength newItem ) + throws DOMException, SVGException; +public native SVGLength getItem ( int index ) + throws DOMException; +public native SVGLength insertItemBefore ( SVGLength newItem, int index ) + throws DOMException, SVGException; +public native SVGLength replaceItem ( SVGLength newItem, int index ) + throws DOMException, SVGException; +public native SVGLength removeItem ( int index ) + throws DOMException; +public native SVGLength appendItem ( SVGLength newItem ) + throws DOMException, SVGException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java new file mode 100644 index 000000000..76ce2cc41 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java @@ -0,0 +1,131 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGLineElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGLineElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + +public native SVGAnimatedLength getX1( ); +public native SVGAnimatedLength getY1( ); +public native SVGAnimatedLength getX2( ); +public native SVGAnimatedLength getY2( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLinearGradientElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLinearGradientElementImpl.java new file mode 100644 index 000000000..26d3bb8c0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGLinearGradientElementImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedLength; + + +public class SVGLinearGradientElementImpl + extends + SVGGradientElementImpl + implements org.w3c.dom.svg.SVGLinearGradientElement +{ +public native SVGAnimatedLength getX1( ); +public native SVGAnimatedLength getY1( ); +public native SVGAnimatedLength getX2( ); +public native SVGAnimatedLength getY2( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLocatableImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLocatableImpl.java new file mode 100644 index 000000000..f7045fb04 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGLocatableImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGException; +import org.w3c.dom.svg.SVGElement; +import org.w3c.dom.svg.SVGRect; +import org.w3c.dom.svg.SVGMatrix; + + +public class SVGLocatableImpl + implements org.w3c.dom.svg.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; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java new file mode 100644 index 000000000..76f800bf0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java @@ -0,0 +1,50 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + + +public class SVGMPathElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGExternalResourcesRequired + implements org.w3c.dom.svg.SVGMPathElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean 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 new file mode 100644 index 000000000..effb4aa39 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java @@ -0,0 +1,84 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGMarkerElementImpl + extends + SVGElementImpl + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGFitToViewBox + implements org.w3c.dom.svg.SVGMarkerElement +{ +//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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +//from SVGFitToViewBox +public native SVGAnimatedRect getViewBox( ); +public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +//end SVGFitToViewBox + + +public native SVGAnimatedLength getRefX( ); +public native SVGAnimatedLength getRefY( ); +public native SVGAnimatedEnumeration getMarkerUnits( ); +public native SVGAnimatedLength getMarkerWidth( ); +public native SVGAnimatedLength getMarkerHeight( ); +public native SVGAnimatedEnumeration getOrientType( ); +public native SVGAnimatedAngle getOrientAngle( ); +public native void setOrientToAuto ( ); +public native void setOrientToAngle ( SVGAngle angle ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java new file mode 100644 index 000000000..b233220ef --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java @@ -0,0 +1,81 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGMaskElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGUnitTypes + implements org.w3c.dom.svg.SVGMaskElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +public native SVGAnimatedEnumeration getMaskUnits( ); +public native SVGAnimatedEnumeration getMaskContentUnits( ); +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMatrixImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMatrixImpl.java new file mode 100644 index 000000000..65cf6fbfe --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGMatrixImpl.java @@ -0,0 +1,72 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGException; +import org.w3c.dom.svg.SVGMatrix; + + +public class SVGMatrixImpl + implements org.w3c.dom.svg.SVGMatrix +{ +public native float getA( ); +public native void setA( float a ) + throws DOMException; +public native float getB( ); +public native void setB( float b ) + throws DOMException; +public native float getC( ); +public native void setC( float c ) + throws DOMException; +public native float getD( ); +public native void setD( float d ) + throws DOMException; +public native float getE( ); +public native void setE( float e ) + throws DOMException; +public native float getF( ); +public native void setF( float f ) + throws DOMException; + +public native SVGMatrix multiply ( SVGMatrix secondMatrix ); +public native SVGMatrix inverse ( ) + throws SVGException; +public native SVGMatrix translate ( float x, float y ); +public native SVGMatrix scale ( float scaleFactor ); +public native SVGMatrix scaleNonUniform ( float scaleFactorX, float scaleFactorY ); +public native SVGMatrix rotate ( float angle ); +public native SVGMatrix rotateFromVector ( float x, float y ) + throws SVGException; +public native SVGMatrix flipX ( ); +public native SVGMatrix flipY ( ); +public native SVGMatrix skewX ( float angle ); +public native SVGMatrix skewY ( float angle ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMetadataElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMetadataElementImpl.java new file mode 100644 index 000000000..e0197ee6f --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGMetadataElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGMetadataElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGMetadataElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java new file mode 100644 index 000000000..063d01ea3 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java @@ -0,0 +1,51 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGMissingGlyphElementImpl + extends + SVGElementImpl + //SVGStylable + implements org.w3c.dom.svg.SVGMissingGlyphElement +{ +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGNumberImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGNumberImpl.java new file mode 100644 index 000000000..1a0c94ffd --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGNumberImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + + +public class SVGNumberImpl + implements org.w3c.dom.svg.SVGNumber +{ +public native float getValue( ); +public native void setValue( float value ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGNumberListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGNumberListImpl.java new file mode 100644 index 000000000..7e2b0c693 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGNumberListImpl.java @@ -0,0 +1,58 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGException; +import org.w3c.dom.svg.SVGNumber; + + +public class SVGNumberListImpl + implements org.w3c.dom.svg.SVGNumberList +{ + +public native int getNumberOfItems( ); + +public native void clear ( ) + throws DOMException; +public native SVGNumber initialize ( SVGNumber newItem ) + throws DOMException, SVGException; +public native SVGNumber getItem ( int index ) + throws DOMException; +public native SVGNumber insertItemBefore ( SVGNumber newItem, int index ) + throws DOMException, SVGException; +public native SVGNumber replaceItem ( SVGNumber newItem, int index ) + throws DOMException, SVGException; +public native SVGNumber removeItem ( int index ) + throws DOMException; +public native SVGNumber appendItem ( SVGNumber newItem ) + throws DOMException, SVGException; + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPaintImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPaintImpl.java new file mode 100644 index 000000000..7387ae150 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPaintImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.css.RGBColor; +import org.w3c.dom.svg.SVGException; + + + +public class SVGPaintImpl + extends + SVGColorImpl + implements org.w3c.dom.svg.SVGPaint +{ +public native short getPaintType( ); +public native String getUri( ); + +public native void setUri ( String uri ); +public native void setPaint ( short paintType, String uri, + String rgbColor, String iccColor ) + throws SVGException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java new file mode 100644 index 000000000..86b9f079a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java @@ -0,0 +1,160 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGPathElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget, + //SVGAnimatedPathData + implements org.w3c.dom.svg.SVGPathElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 SVGAnimatedPathData +public native SVGPathSegList getPathSegList( ); +public native SVGPathSegList getNormalizedPathSegList( ); +public native SVGPathSegList getAnimatedPathSegList( ); +public native SVGPathSegList getAnimatedNormalizedPathSegList( ); +//end SVGAnimatedPathData + +public native SVGAnimatedNumber getPathLength( ); +public native float getTotalLength ( ); +public native SVGPoint getPointAtLength ( float distance ); +public native int getPathSegAtLength ( float distance ); + +//CREATEs +public native SVGPathSegClosePath createSVGPathSegClosePath ( ); +public native SVGPathSegMovetoAbs createSVGPathSegMovetoAbs ( float x, float y ); +public native SVGPathSegMovetoRel createSVGPathSegMovetoRel ( float x, float y ); +public native SVGPathSegLinetoAbs createSVGPathSegLinetoAbs ( float x, float y ); +public native SVGPathSegLinetoRel createSVGPathSegLinetoRel ( float x, float y ); + +public native SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs ( float x, float y, float x1, float y1, float x2, float y2 ); +public native SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel ( float x, float y, float x1, float y1, float x2, float y2 ); + +public native SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs ( float x, float y, float x1, float y1 ); +public native SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel ( float x, float y, float x1, float y1 ); + +public native SVGPathSegArcAbs createSVGPathSegArcAbs ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag ); +public native SVGPathSegArcRel createSVGPathSegArcRel ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag ); + +public native SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs ( float x ); +public native SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel ( float x ); + +public native SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs ( float y ); +public native SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel ( float y ); + +public native SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs ( float x, float y, float x2, float y2 ); +public native SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel ( float x, float y, float x2, float y2 ); + +public native SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs ( float x, float y ); +public native SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel ( float x, float y ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java new file mode 100644 index 000000000..ebef29a0a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java @@ -0,0 +1,61 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegArcAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegArcAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getR1( ); +public native void setR1( float r1 ) + throws DOMException; +public native float getR2( ); +public native void setR2( float r2 ) + throws DOMException; +public native float getAngle( ); +public native void setAngle( float angle ) + throws DOMException; +public native boolean getLargeArcFlag( ); +public native void setLargeArcFlag( boolean largeArcFlag ) + throws DOMException; +public native boolean getSweepFlag( ); +public native void setSweepFlag( boolean sweepFlag ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcRelImpl.java new file mode 100644 index 000000000..5d2b15774 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcRelImpl.java @@ -0,0 +1,61 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegArcRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegArcRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getR1( ); +public native void setR1( float r1 ) + throws DOMException; +public native float getR2( ); +public native void setR2( float r2 ) + throws DOMException; +public native float getAngle( ); +public native void setAngle( float angle ) + throws DOMException; +public native boolean getLargeArcFlag( ); +public native void setLargeArcFlag( boolean largeArcFlag ) + throws DOMException; +public native boolean getSweepFlag( ); +public native void setSweepFlag( boolean sweepFlag ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegClosePathImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegClosePathImpl.java new file mode 100644 index 000000000..c1615d007 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegClosePathImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGPathSegClosePathImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegClosePath +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicAbsImpl.java new file mode 100644 index 000000000..2ace254c2 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicAbsImpl.java @@ -0,0 +1,58 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoCubicAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoCubicAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getX1( ); +public native void setX1( float x1 ) + throws DOMException; +public native float getY1( ); +public native void setY1( float y1 ) + throws DOMException; +public native float getX2( ); +public native void setX2( float x2 ) + throws DOMException; +public native float getY2( ); +public native void setY2( float y2 ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicRelImpl.java new file mode 100644 index 000000000..d3bbf140b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicRelImpl.java @@ -0,0 +1,58 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoCubicRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoCubicRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getX1( ); +public native void setX1( float x1 ) + throws DOMException; +public native float getY1( ); +public native void setY1( float y1 ) + throws DOMException; +public native float getX2( ); +public native void setX2( float x2 ) + throws DOMException; +public native float getY2( ); +public native void setY2( float y2 ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java new file mode 100644 index 000000000..1c1b1328c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoCubicSmoothAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoCubicSmoothAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getX2( ); +public native void setX2( float x2 ) + throws DOMException; +public native float getY2( ); +public native void setY2( float y2 ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothRelImpl.java new file mode 100644 index 000000000..265228bb5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothRelImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoCubicSmoothRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoCubicSmoothRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getX2( ); +public native void setX2( float x2 ) + throws DOMException; +public native float getY2( ); +public native void setY2( float y2 ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java new file mode 100644 index 000000000..bc2b39052 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoQuadraticAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getX1( ); +public native void setX1( float x1 ) + throws DOMException; +public native float getY1( ); +public native void setY1( float y1 ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java new file mode 100644 index 000000000..35dd8f927 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoQuadraticRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getX1( ); +public native void setX1( float x1 ) + throws DOMException; +public native float getY1( ); +public native void setY1( float y1 ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbsImpl.java new file mode 100644 index 000000000..50f0f4be2 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbsImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoQuadraticSmoothAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticSmoothAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothRelImpl.java new file mode 100644 index 000000000..c55c706fc --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothRelImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegCurvetoQuadraticSmoothRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticSmoothRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegImpl.java new file mode 100644 index 000000000..2a57b613c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSeg +{ +public native short getPathSegType( ); +public native String getPathSegTypeAsLetter( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java new file mode 100644 index 000000000..c53dc3de3 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegLinetoAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegLinetoAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java new file mode 100644 index 000000000..d7e29c87d --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegLinetoHorizontalAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegLinetoHorizontalAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalRelImpl.java new file mode 100644 index 000000000..105f321e8 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalRelImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegLinetoHorizontalRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegLinetoHorizontalRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoRelImpl.java new file mode 100644 index 000000000..1c941a79e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoRelImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegLinetoRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegLinetoRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalAbsImpl.java new file mode 100644 index 000000000..ef7e38820 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalAbsImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegLinetoVerticalAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegLinetoVerticalAbs +{ +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalRelImpl.java new file mode 100644 index 000000000..22fdf9232 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalRelImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegLinetoVerticalRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegLinetoVerticalRel +{ +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegListImpl.java new file mode 100644 index 000000000..99d10586c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegListImpl.java @@ -0,0 +1,57 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGException; + +import org.w3c.dom.svg.SVGPathSeg; + + +public class SVGPathSegListImpl + implements org.w3c.dom.svg.SVGPathSegList +{ +public native int getNumberOfItems( ); + +public native void clear ( ) + throws DOMException; +public native SVGPathSeg initialize ( SVGPathSeg newItem ) + throws DOMException, SVGException; +public native SVGPathSeg getItem ( int index ) + throws DOMException; +public native SVGPathSeg insertItemBefore ( SVGPathSeg newItem, int index ) + throws DOMException, SVGException; +public native SVGPathSeg replaceItem ( SVGPathSeg newItem, int index ) + throws DOMException, SVGException; +public native SVGPathSeg removeItem ( int index ) + throws DOMException; +public native SVGPathSeg appendItem ( SVGPathSeg newItem ) + throws DOMException, SVGException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java new file mode 100644 index 000000000..a2e08dc46 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegMovetoAbsImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegMovetoAbs +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoRelImpl.java new file mode 100644 index 000000000..989925787 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoRelImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPathSegMovetoRelImpl + extends + SVGPathSegImpl + implements org.w3c.dom.svg.SVGPathSegMovetoRel +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java new file mode 100644 index 000000000..675868424 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java @@ -0,0 +1,140 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGPatternElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGFitToViewBox, + //SVGUnitTypes + implements org.w3c.dom.svg.SVGPatternElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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( ); +//end SVGFitToViewBox + + +public native SVGAnimatedEnumeration getPatternUnits( ); +public native SVGAnimatedEnumeration getPatternContentUnits( ); +public native SVGAnimatedTransformList getPatternTransform( ); +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPointImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPointImpl.java new file mode 100644 index 000000000..87f806a1b --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPointImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGPoint; +import org.w3c.dom.svg.SVGMatrix; + + +public class SVGPointImpl + implements org.w3c.dom.svg.SVGPoint +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; + +public native SVGPoint matrixTransform ( SVGMatrix matrix ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPointListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPointListImpl.java new file mode 100644 index 000000000..e1ab60265 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPointListImpl.java @@ -0,0 +1,56 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGException; +import org.w3c.dom.svg.SVGPoint; + + +public class SVGPointListImpl + implements org.w3c.dom.svg.SVGPointList +{ +public native int getNumberOfItems( ); + +public native void clear ( ) + throws DOMException; +public native SVGPoint initialize ( SVGPoint newItem ) + throws DOMException, SVGException; +public native SVGPoint getItem ( int index ) + throws DOMException; +public native SVGPoint insertItemBefore ( SVGPoint newItem, int index ) + throws DOMException, SVGException; +public native SVGPoint replaceItem ( SVGPoint newItem, int index ) + throws DOMException, SVGException; +public native SVGPoint removeItem ( int index ) + throws DOMException; +public native SVGPoint appendItem ( SVGPoint newItem ) + throws DOMException, SVGException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java new file mode 100644 index 000000000..e1e29e027 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java @@ -0,0 +1,129 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGPolygonElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget, + //SVGAnimatedPoints + implements org.w3c.dom.svg.SVGPolygonElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 SVGAnimatedPoints +public native SVGPointList getPoints( ); +public native SVGPointList 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 new file mode 100644 index 000000000..f1a48ae2e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java @@ -0,0 +1,127 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGPolylineElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget, + //SVGAnimatedPoints + implements org.w3c.dom.svg.SVGPolylineElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 SVGAnimatedPoints +public native SVGPointList getPoints( ); +public native SVGPointList getAnimatedPoints( ); +//end SVGAnimatedPoints + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPreserveAspectRatioImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPreserveAspectRatioImpl.java new file mode 100644 index 000000000..07d9e26ec --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGPreserveAspectRatioImpl.java @@ -0,0 +1,44 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGPreserveAspectRatioImpl + implements org.w3c.dom.svg.SVGPreserveAspectRatio +{ +public native short getAlign( ); +public native void setAlign( short align ) + throws DOMException; +public native short getMeetOrSlice( ); +public native void setMeetOrSlice( short meetOrSlice ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRadialGradientElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRadialGradientElementImpl.java new file mode 100644 index 000000000..28db7de38 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGRadialGradientElementImpl.java @@ -0,0 +1,46 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedLength; + + +public class SVGRadialGradientElementImpl + extends + SVGGradientElementImpl + implements org.w3c.dom.svg.SVGRadialGradientElement +{ +public native SVGAnimatedLength getCx( ); +public native SVGAnimatedLength getCy( ); +public native SVGAnimatedLength getR( ); +public native SVGAnimatedLength getFx( ); +public native SVGAnimatedLength getFy( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java new file mode 100644 index 000000000..8b721d8e3 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java @@ -0,0 +1,127 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGRectElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGRectElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGAnimatedLength getRx( ); +public native SVGAnimatedLength getRy( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRectImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRectImpl.java new file mode 100644 index 000000000..9b4b0e762 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGRectImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + + +public class SVGRectImpl + implements org.w3c.dom.svg.SVGRect +{ +public native float getX( ); +public native void setX( float x ) + throws DOMException; +public native float getY( ); +public native void setY( float y ) + throws DOMException; +public native float getWidth( ); +public native void setWidth( float width ) + throws DOMException; +public native float getHeight( ); +public native void setHeight( float height ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRenderingIntentImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRenderingIntentImpl.java new file mode 100644 index 000000000..629a105cb --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGRenderingIntentImpl.java @@ -0,0 +1,36 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGRenderingIntentImpl + implements org.w3c.dom.svg.SVGRenderingIntent +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java new file mode 100644 index 000000000..818710054 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java @@ -0,0 +1,217 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.NodeList; +import org.w3c.dom.Element; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; +import org.w3c.dom.css.RGBColor; + +import org.w3c.dom.views.DocumentView; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; +import org.w3c.dom.events.DocumentEvent; + +import org.w3c.dom.stylesheets.DocumentStyle; +import org.w3c.dom.stylesheets.StyleSheetList; + + + +public class SVGSVGElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGLocatable, + //SVGFitToViewBox, + //SVGZoomAndPan, + //EventTarget, + //DocumentEvent, + //ViewCSS, + //DocumentCSS + implements org.w3c.dom.svg.SVGSVGElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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; +//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, + 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 DocumentEvent +public native Event createEvent(String eventType) + throws DOMException; +public native boolean canDispatch(String namespaceURI, + String type); +//end DocumentEvent + +//from ViewCSS +public native CSSStyleDeclaration getComputedStyle(Element elt, + String pseudoElt); +//end ViewCSS + +//from AbstractView (from ViewCSS) +public native DocumentView getDocument(); +//end AbstractView + +//from DocumentCSS +public native CSSStyleDeclaration getOverrideStyle(Element elt, + String pseudoElt); +//end DocumentCSS + +//from DocumentStyle (from DocumentCSS) +public native StyleSheetList getStyleSheets(); +//end DocumentStyle + + +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native String getContentScriptType( ); +public native void setContentScriptType( String contentScriptType ) + throws DOMException; +public native String getContentStyleType( ); +public native void setContentStyleType( String contentStyleType ) + throws DOMException; +public native SVGRect getViewport( ); +public native float getPixelUnitToMillimeterX( ); +public native float getPixelUnitToMillimeterY( ); +public native float getScreenPixelToMillimeterX( ); +public native float getScreenPixelToMillimeterY( ); +public native boolean getUseCurrentView( ); +public native void setUseCurrentView( boolean useCurrentView ) + throws DOMException; +public native SVGViewSpec getCurrentView( ); +public native float getCurrentScale( ); +public native void setCurrentScale( float currentScale ) + throws DOMException; +public native SVGPoint getCurrentTranslate( ); + +public native int suspendRedraw ( int max_wait_milliseconds ); +public native void unsuspendRedraw ( int suspend_handle_id ) + throws DOMException; +public native void unsuspendRedrawAll ( ); +public native void forceRedraw ( ); +public native void pauseAnimations ( ); +public native void unpauseAnimations ( ); +public native boolean animationsPaused ( ); +public native float getCurrentTime ( ); +public native void setCurrentTime ( float seconds ); +public native NodeList getIntersectionList ( SVGRect rect, SVGElement referenceElement ); +public native NodeList getEnclosureList ( SVGRect rect, SVGElement referenceElement ); +public native boolean checkIntersection ( SVGElement element, SVGRect rect ); +public native boolean checkEnclosure ( SVGElement element, SVGRect rect ); +public native void deselectAll ( ); +public native SVGNumber createSVGNumber ( ); +public native SVGLength createSVGLength ( ); +public native SVGAngle createSVGAngle ( ); +public native SVGPoint createSVGPoint ( ); +public native SVGMatrix createSVGMatrix ( ); +public native SVGRect createSVGRect ( ); +public native SVGTransform createSVGTransform ( ); +public native SVGTransform createSVGTransformFromMatrix ( SVGMatrix matrix ); +public native Element getElementById ( String elementId ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java new file mode 100644 index 000000000..d1d7d453c --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java @@ -0,0 +1,56 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.*; + + + +public class SVGScriptElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGExternalResourcesRequired + implements org.w3c.dom.svg.SVGScriptElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean 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/SVGSetElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSetElementImpl.java new file mode 100644 index 000000000..9187d6104 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGSetElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGSetElementImpl + extends + SVGAnimationElementImpl + implements org.w3c.dom.svg.SVGSetElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java new file mode 100644 index 000000000..af651d88e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java @@ -0,0 +1,51 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + +public class SVGStopElementImpl + extends + SVGElementImpl + //SVGStylable + implements org.w3c.dom.svg.SVGStopElement +{ +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +public native SVGAnimatedNumber getOffset( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStringListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStringListImpl.java new file mode 100644 index 000000000..cb352d9c9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGStringListImpl.java @@ -0,0 +1,56 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGException; + + + +public class SVGStringListImpl + implements org.w3c.dom.svg.SVGStringList +{ +public native int getNumberOfItems( ); + +public native void clear ( ) + throws DOMException; +public native String initialize ( String newItem ) + throws DOMException, SVGException; +public native String getItem ( int index ) + throws DOMException; +public native String insertItemBefore ( String newItem, int index ) + throws DOMException, SVGException; +public native String replaceItem ( String newItem, int index ) + throws DOMException, SVGException; +public native String removeItem ( int index ) + throws DOMException; +public native String appendItem ( String newItem ) + throws DOMException, SVGException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStylableImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStylableImpl.java new file mode 100644 index 000000000..54df62696 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGStylableImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; +import org.w3c.dom.svg.SVGAnimatedString; + +public class SVGStylableImpl + implements org.w3c.dom.svg.SVGStylable +{ + +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStyleElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStyleElementImpl.java new file mode 100644 index 000000000..8b7408434 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGStyleElementImpl.java @@ -0,0 +1,52 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGStyleElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGStyleElement +{ +public native String getXMLspace( ); +public native void setXMLspace( String xmlspace ) + throws DOMException; +public native String getType( ); +public native void setType( String type ) + throws DOMException; +public native String getMedia( ); +public native void setMedia( String media ) + throws DOMException; +public native String getTitle( ); +public native void setTitle( String title ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java new file mode 100644 index 000000000..548a6b0bb --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java @@ -0,0 +1,122 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGSwitchElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGSwitchElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + +} + diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java new file mode 100644 index 000000000..95aca8018 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java @@ -0,0 +1,105 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + + +public class SVGSymbolElementImpl + extends + SVGElementImpl + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGFitToViewBox, + //EventTarget + implements org.w3c.dom.svg.SVGSymbolElement +{ +//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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +//from SVGFitToViewBox +public native SVGAnimatedRect getViewBox( ); +public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +//end SVGFitToViewBox + +//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 + + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java new file mode 100644 index 000000000..990c6bfb9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedString; + + + +public class SVGTRefElementImpl + extends + SVGTextPositioningElementImpl + //SVGURIReference + implements org.w3c.dom.svg.SVGTRefElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTSpanElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTSpanElementImpl.java new file mode 100644 index 000000000..89ed5dabb --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTSpanElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGTSpanElementImpl + extends + SVGTextPositioningElementImpl + implements org.w3c.dom.svg.SVGTSpanElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTestsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTestsImpl.java new file mode 100644 index 000000000..c31291fc4 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTestsImpl.java @@ -0,0 +1,43 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGStringList; + + +public class SVGTestsImpl + implements org.w3c.dom.svg.SVGTests +{ +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String extension ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java new file mode 100644 index 000000000..d33a75ab9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java @@ -0,0 +1,129 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventListener; + + + + +public class SVGTextContentElementImpl + extends + SVGElementImpl + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //EventTarget + implements org.w3c.dom.svg.SVGTextContentElement +{ +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +//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 + + + + +public native SVGAnimatedLength getTextLength( ); +public native SVGAnimatedEnumeration getLengthAdjust( ); + +public native int getNumberOfChars ( ); +public native float getComputedTextLength ( ); +public native float getSubStringLength ( int charnum, int nchars ) + throws DOMException; +public native SVGPoint getStartPositionOfChar ( int charnum ) + throws DOMException; +public native SVGPoint getEndPositionOfChar ( int charnum ) + throws DOMException; +public native SVGRect getExtentOfChar ( int charnum ) + throws DOMException; +public native float getRotationOfChar ( int charnum ) + throws DOMException; +public native int getCharNumAtPosition ( SVGPoint point ); +public native void selectSubString ( int charnum, int nchars ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java new file mode 100644 index 000000000..2187ed369 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java @@ -0,0 +1,55 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + + +public class SVGTextElementImpl + extends + SVGTextPositioningElementImpl + //SVGTransformable + implements org.w3c.dom.svg.SVGTextElement +{ +//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 + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java new file mode 100644 index 000000000..a04ff35c2 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java @@ -0,0 +1,48 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedLength; +import org.w3c.dom.svg.SVGAnimatedString; +import org.w3c.dom.svg.SVGAnimatedEnumeration; + +public class SVGTextPathElementImpl + extends + SVGTextContentElementImpl + //SVGURIReference + implements org.w3c.dom.svg.SVGTextPathElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +public native SVGAnimatedLength getStartOffset( ); +public native SVGAnimatedEnumeration getMethod( ); +public native SVGAnimatedEnumeration getSpacing( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextPositioningElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextPositioningElementImpl.java new file mode 100644 index 000000000..1192f081a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTextPositioningElementImpl.java @@ -0,0 +1,45 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedLengthList; +import org.w3c.dom.svg.SVGAnimatedNumberList; + + +public class SVGTextPositioningElementImpl + extends + SVGTextContentElementImpl + implements org.w3c.dom.svg.SVGTextPositioningElement +{ +public native SVGAnimatedLengthList getX( ); +public native SVGAnimatedLengthList getY( ); +public native SVGAnimatedLengthList getDx( ); +public native SVGAnimatedLengthList getDy( ); +public native SVGAnimatedNumberList getRotate( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java new file mode 100644 index 000000000..19cd537e3 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java @@ -0,0 +1,62 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + + + +public class SVGTitleElementImpl + extends + SVGElementImpl + //SVGLangSpace, + //SVGStylable + implements org.w3c.dom.svg.SVGTitleElement +{ +//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; +//end SVGLangSpace + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String name ); +//end SVGStylable + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTransformImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTransformImpl.java new file mode 100644 index 000000000..1a5fdc3e5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTransformImpl.java @@ -0,0 +1,49 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGMatrix; + + +public class SVGTransformImpl + implements org.w3c.dom.svg.SVGTransform +{ +public native short getType( ); +public native SVGMatrix getMatrix( ); +public native float getAngle( ); + +public native void setMatrix ( SVGMatrix matrix ); +public native void setTranslate ( float tx, float ty ); +public native void setScale ( float sx, float sy ); +public native void setRotate ( float angle, float cx, float cy ); +public native void setSkewX ( float angle ); +public native void setSkewY ( float angle ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTransformListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTransformListImpl.java new file mode 100644 index 000000000..6fa6012a3 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTransformListImpl.java @@ -0,0 +1,60 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.SVGException; + +import org.w3c.dom.svg.SVGTransform; +import org.w3c.dom.svg.SVGMatrix; + + +public class SVGTransformListImpl + implements org.w3c.dom.svg.SVGTransformList +{ +public native int getNumberOfItems( ); + +public native void clear ( ) + throws DOMException; +public native SVGTransform initialize ( SVGTransform newItem ) + throws DOMException, SVGException; +public native SVGTransform getItem ( int index ) + throws DOMException; +public native SVGTransform insertItemBefore ( SVGTransform newItem, int index ) + throws DOMException, SVGException; +public native SVGTransform replaceItem ( SVGTransform newItem, int index ) + throws DOMException, SVGException; +public native SVGTransform removeItem ( int index ) + throws DOMException; +public native SVGTransform appendItem ( SVGTransform newItem ) + throws DOMException, SVGException; +public native SVGTransform createSVGTransformFromMatrix ( SVGMatrix matrix ); +public native SVGTransform consolidate ( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTransformableImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTransformableImpl.java new file mode 100644 index 000000000..96384f6f6 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGTransformableImpl.java @@ -0,0 +1,42 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedTransformList; + + +public class SVGTransformableImpl + extends + SVGLocatableImpl + implements org.w3c.dom.svg.SVGTransformable +{ +public native SVGAnimatedTransformList getTransform( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGURIReferenceImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGURIReferenceImpl.java new file mode 100644 index 000000000..c2e53d11a --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGURIReferenceImpl.java @@ -0,0 +1,40 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.SVGAnimatedString; + + +public class SVGURIReferenceImpl + implements org.w3c.dom.svg.SVGURIReference +{ +public native SVGAnimatedString getHref( ); +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGUnitTypesImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGUnitTypesImpl.java new file mode 100644 index 000000000..b76dab8ea --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGUnitTypesImpl.java @@ -0,0 +1,36 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGUnitTypesImpl + implements org.w3c.dom.svg.SVGUnitTypes +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java new file mode 100644 index 000000000..32988bb1e --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java @@ -0,0 +1,135 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +import org.w3c.dom.svg.*; + +import org.w3c.dom.css.CSSStyleDeclaration; +import org.w3c.dom.css.CSSValue; + +import org.w3c.dom.events.Event; +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.EventException; +import org.w3c.dom.events.EventListener; + + +public class SVGUseElementImpl + extends + SVGElementImpl + //SVGURIReference, + //SVGTests, + //SVGLangSpace, + //SVGExternalResourcesRequired, + //SVGStylable, + //SVGTransformable, + //EventTarget + implements org.w3c.dom.svg.SVGUseElement +{ +//from SVGURIReference +public native SVGAnimatedString getHref( ); +//end SVGURIReference + +//from SVGTests +public native SVGStringList getRequiredFeatures( ); +public native SVGStringList getRequiredExtensions( ); +public native SVGStringList getSystemLanguage( ); +public native boolean hasExtension ( String 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; +//end SVGLangSpace + +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//from SVGStylable +public native SVGAnimatedString getClassName( ); +public native CSSStyleDeclaration getStyle( ); +public native CSSValue getPresentationAttribute ( String 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 + + +public native SVGAnimatedLength getX( ); +public native SVGAnimatedLength getY( ); +public native SVGAnimatedLength getWidth( ); +public native SVGAnimatedLength getHeight( ); +public native SVGElementInstance getInstanceRoot( ); +public native SVGElementInstance getAnimatedInstanceRoot( ); + +} + + diff --git a/src/bind/java/org/inkscape/dom/svg/SVGVKernElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGVKernElementImpl.java new file mode 100644 index 000000000..97af0c646 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGVKernElementImpl.java @@ -0,0 +1,38 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +public class SVGVKernElementImpl + extends + SVGElementImpl + implements org.w3c.dom.svg.SVGVKernElement +{ +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java new file mode 100644 index 000000000..3143847f9 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java @@ -0,0 +1,61 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; +import org.w3c.dom.svg.*; + + +public class SVGViewElementImpl + extends + SVGElementImpl + //SVGExternalResourcesRequired, + //SVGFitToViewBox, + //SVGZoomAndPan + implements org.w3c.dom.svg.SVGViewElement +{ +//from SVGExternalResourcesRequired +public native SVGAnimatedBoolean getExternalResourcesRequired( ); +//end SVGExternalResourcesRequired + +//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 + + +public native SVGStringList getViewTarget( ); + +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java new file mode 100644 index 000000000..6b402f4c5 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java @@ -0,0 +1,53 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + +package org.inkscape.dom.svg; + +import org.w3c.dom.svg.*; + + + +public class SVGViewSpecImpl + extends + SVGZoomAndPanImpl + //SVGFitToViewBox + implements org.w3c.dom.svg.SVGViewSpec +{ +//from SVGFitToViewBox +public native SVGAnimatedRect getViewBox( ); +public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); +//end SVGFitToViewBox + +public native SVGTransformList getTransform( ); +public native SVGElement getViewTarget( ); +public native String getViewBoxString( ); +public native String getPreserveAspectRatioString( ); +public native String getTransformString( ); +public native String getViewTargetString( ); +} + diff --git a/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java new file mode 100644 index 000000000..8ec9dd2e0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG11/java.html + */ + + + +package org.inkscape.dom.svg; + +import org.w3c.dom.DOMException; + +public class SVGZoomAndPanImpl + implements org.w3c.dom.svg.SVGZoomAndPan +{ +public native short getZoomAndPan( ); +public native void setZoomAndPan( short zoomAndPan ) + throws DOMException; +} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGZoomEventImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGZoomEventImpl.java new file mode 100644 index 000000000..018eee915 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/svg/SVGZoomEventImpl.java @@ -0,0 +1,47 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these SVG files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/SVG/java.html + */ + + +package org.inkscape.dom.svg; + +import org.w3c.dom.events.UIEvent; +import org.w3c.dom.svg.SVGRect; +import org.w3c.dom.svg.SVGPoint; + + +public class SVGZoomEventImpl + extends + org.inkscape.dom.events.UIEventImpl + implements org.w3c.dom.svg.SVGZoomEvent +{ +public native SVGRect getZoomRectScreen( ); +public native float getPreviousScale( ); +public native SVGPoint getPreviousTranslate( ); +public native float getNewScale( ); +public native SVGPoint getNewTranslate( ); +} diff --git a/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java b/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java new file mode 100644 index 000000000..7e04b9839 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java @@ -0,0 +1,40 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113/java-binding.html + */ + +package org.inkscape.dom.views; + +import org.w3c.dom.views.DocumentView; + + +public class AbstractViewImpl + implements org.w3c.dom.views.AbstractView +{ + +public native DocumentView getDocument(); + +} diff --git a/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java b/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java new file mode 100644 index 000000000..a51a7b4a0 --- /dev/null +++ b/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java @@ -0,0 +1,41 @@ +/** + * This is a simple mechanism to bind Inkscape to Java, and thence + * to all of the nice things that can be layered upon that. + * + * Authors: + * Bob Jamison + * + * Copyright (c) 2007-2008 Inkscape.org + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * Note that these files are implementations of the Java + * interface package found here: + * http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113/java-binding.html + */ + + +package org.inkscape.dom.views; + +import org.w3c.dom.views.AbstractView; + + +public class DocumentViewImpl + implements org.w3c.dom.views.DocumentView +{ + +public native AbstractView getDefaultView(); + +}