Mercurial > MadButterfly
view Android/java/org/madbutterfly/shape.java @ 1166:d73ef03c96de
Refactory code of MBScene.updateUI() from MBScene.show()
- It is too busy to reborn full GUI components of pyink everytime the
content being updated.
- It is fixed by moveing code about updating of frameline to
MBScene._updateUI() and avoid calling MBScene.show() to reduce time
for updating frameline.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 29 Dec 2010 21:16:27 +0800 |
parents | c468e397614d |
children |
line wrap: on
line source
package org.madbutterfly; public class shape { protected int addr; redraw_man rdman; protected coord parent; protected paint stroke, fill; public shape(redraw_man rdman, int addr) { this.addr = addr; this.rdman = rdman; this.parent = null; stroke = fill = null; } protected void invalid() { addr = 0; } protected void finalize() { if(addr != 0) _jni.rdman_shape_free(rdman._rdman_addr, addr); } public void set_stroke_width(float w) { _jni.sh_set_stroke_width(addr, w); } }