comparison Android/java/org/madbutterfly/shape.java @ 493:1b6228092a57 Android_Skia

Java code for MadButterfly JNI. This is Java code that access MadButterfly JNI interface.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 26 Nov 2009 15:02:51 +0800
parents
children 2d7df44e6299
comparison
equal deleted inserted replaced
492:e95598916dfb 493:1b6228092a57
1 package org.madbutterfly;
2
3 class shape {
4 protected int addr;
5 redraw_man rdman;
6 protected coord parent;
7 protected paint stroke, fill;
8
9 public shape(redraw_man rdman, int addr) {
10 this.addr = addr;
11 this.rdman = rdman;
12 this.parent = null;
13 stroke = fill = null;
14 }
15
16 protected void invalid() {
17 addr = 0;
18 }
19
20 protected void finalize() {
21 if(addr != 0)
22 _jni.rdman_shape_free(rdman._rdman_addr, addr);
23 }
24 }