Commit 2bfa1a02 authored by Claes Sjofors's avatar Claes Sjofors

Java android app work

parent 808cbd64
...@@ -265,4 +265,7 @@ public class FlowCmn implements PlowCmnIfc { ...@@ -265,4 +265,7 @@ public class FlowCmn implements PlowCmnIfc {
} }
public void resetNodraw() { public void resetNodraw() {
} }
public int getNodraw() {
return 0;
}
} }
...@@ -139,6 +139,9 @@ public class GraphCmn implements PlowCmnIfc { ...@@ -139,6 +139,9 @@ public class GraphCmn implements PlowCmnIfc {
public void resetNodraw() { public void resetNodraw() {
graph.ctx.cmn.resetNodraw(); graph.ctx.cmn.resetNodraw();
} }
public int getNodraw() {
return graph.ctx.cmn.getNodraw();
}
public int getAppMotion() { public int getAppMotion() {
return graph.cmn.getAppMotion(); return graph.cmn.getAppMotion();
} }
......
...@@ -96,6 +96,9 @@ public class OpwinCmn implements PlowCmnIfc { ...@@ -96,6 +96,9 @@ public class OpwinCmn implements PlowCmnIfc {
} }
public void setNodraw() {} public void setNodraw() {}
public void resetNodraw() {} public void resetNodraw() {}
public int getNodraw() {
return 0;
}
public void zoom(double factor) {} public void zoom(double factor) {}
public void zoom(double factor, double x, double y) {} public void zoom(double factor, double x, double y) {}
public void scroll( int x, int y) { public void scroll( int x, int y) {
......
...@@ -209,4 +209,7 @@ public class PlowCmn implements PlowCmnIfc { ...@@ -209,4 +209,7 @@ public class PlowCmn implements PlowCmnIfc {
} }
public void resetNodraw() { public void resetNodraw() {
} }
public int getNodraw() {
return 0;
}
} }
...@@ -20,6 +20,7 @@ public interface PlowCmnIfc { ...@@ -20,6 +20,7 @@ public interface PlowCmnIfc {
public void draw(); public void draw();
public void setNodraw(); public void setNodraw();
public void resetNodraw(); public void resetNodraw();
public int getNodraw();
public void zoom(double factor); public void zoom(double factor);
public void zoom(double factor, double x, double y); public void zoom(double factor, double x, double y);
public void scroll( int x, int y); public void scroll( int x, int y);
......
...@@ -1592,7 +1592,10 @@ public class MainActivity extends Activity implements PlowAppl, GraphApplIfc, Gd ...@@ -1592,7 +1592,10 @@ public class MainActivity extends Activity implements PlowAppl, GraphApplIfc, Gd
currentCmn.setCanvas(drawCanvas); currentCmn.setCanvas(drawCanvas);
drawCanvas.drawColor(graph.cmn.gdraw.getColor(graph.cmn.background_color)); drawCanvas.drawColor(graph.cmn.gdraw.getColor(graph.cmn.background_color));
// if ( currentCmn.getNodraw() > 0)
// currentCmn.resetNodraw();
currentCmn.draw(); currentCmn.draw();
// currentCmn.setNodraw();
canvas.drawBitmap(bitmap, 0F, 0F, null); canvas.drawBitmap(bitmap, 0F, 0F, null);
} }
......
...@@ -142,6 +142,9 @@ public class GrowCmn { ...@@ -142,6 +142,9 @@ public class GrowCmn {
if ( nodraw > 0) if ( nodraw > 0)
nodraw--; nodraw--;
} }
public int getNodraw() {
return nodraw;
}
public void setOwner( String owner) { public void setOwner( String owner) {
this.owner = owner; this.owner = owner;
......
...@@ -60,7 +60,7 @@ public interface GrowCtxIfc { ...@@ -60,7 +60,7 @@ public interface GrowCtxIfc {
public void scroll( int delta_x, int delta_y); public void scroll( int delta_x, int delta_y);
public void openVector( BufferedReader reader, Object cmn, Vector a); public void openVector( BufferedReader reader, Object cmn, Vector a);
public int eventHandler(GlowEvent e, double fx, double fy); public int eventHandler(GlowEvent e, double fx, double fy);
public GrowCmn getCmn(); public Object getCmn();
public void traceConnect(); public void traceConnect();
public void traceDisconnect(); public void traceDisconnect();
public void traceScan(); public void traceScan();
......
...@@ -550,6 +550,10 @@ public class GrowFrame extends JFrame implements GraphApplIfc, ActionListener { ...@@ -550,6 +550,10 @@ public class GrowFrame extends JFrame implements GraphApplIfc, ActionListener {
public GrowFrameApplIfc getAppl() { public GrowFrameApplIfc getAppl() {
return appl; return appl;
} }
public boolean isAuthorized(int access) {
return graph.gdh.isAuthorized(access);
}
} }
......
...@@ -243,7 +243,7 @@ public class GrowWindow extends GrowRect implements GrowScrollBarIfc { ...@@ -243,7 +243,7 @@ public class GrowWindow extends GrowRect implements GrowScrollBarIfc {
if ( ctx == null) if ( ctx == null)
return; return;
windowCmn = ctx.getCmn(); windowCmn = (GrowCmn)ctx.getCmn();
windowCmn.appl = cmn.appl; windowCmn.appl = cmn.appl;
windowCmn.owner = owner; windowCmn.owner = owner;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment