~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/bind/java/org/inkscape/dom/DOMBase.java

  • Committer: ishmal
  • Date: 2008-03-08 22:50:44 UTC
  • Revision ID: ishmal@users.sourceforge.net-20080308225044-8uoavse4zlq2lu7w
First commit for java binding

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * This is a simple mechanism to bind Inkscape to Java, and thence
 
3
 * to all of the nice things that can be layered upon that.
 
4
 *
 
5
 * Authors:
 
6
 *   Bob Jamison
 
7
 *
 
8
 * Copyright (C) 2007 Bob Jamison
 
9
 *
 
10
 *  This library is free software; you can redistribute it and/or
 
11
 *  modify it under the terms of the GNU Lesser General Public
 
12
 *  License as published by the Free Software Foundation; either
 
13
 *  version 2.1 of the License, or (at your option) any later version.
 
14
 *
 
15
 *  This library is distributed in the hope that it will be useful,
 
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 *  Lesser General Public License for more details.
 
19
 *
 
20
 *  You should have received a copy of the GNU Lesser General Public
 
21
 *  License along with this library; if not, write to the Free Software
 
22
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
23
 */
 
24
 
 
25
package org.inkscape.dom;
 
26
 
 
27
 
 
28
 
 
29
/**
 
30
 * This is the base Java class upon which
 
31
 * all of the DOM classes are rooted
 
32
 */
 
33
public class DOMBase
 
34
{
 
35
 
 
36
protected long _pointer;
 
37
 
 
38
/**
 
39
 * @see dobinding.cpp: DOMBase_construct()
 
40
 */
 
41
protected native void construct();
 
42
 
 
43
/**
 
44
 * @see dobinding.cpp: DOMBase_destruct()
 
45
 */
 
46
protected native void destruct();
 
47
 
 
48
 
 
49
 
 
50
/**
 
51
 * Overload Object.finalize() so that we
 
52
 * can perform proper cleanup.
 
53
 */
 
54
protected void finalize()
 
55
{
 
56
    destruct();
 
57
}
 
58
 
 
59
 
 
60
public DOMBase()
 
61
{
 
62
    construct();
 
63
    _pointer = 0;
 
64
}
 
65
 
 
66
}
 
67
//########################################################################
 
68
//# E N D    O F    F I L E
 
69
//########################################################################
 
70