package b4a.ClassDraw;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class circle_subs_0 {


public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 3;BA.debugLine="Private mx, my, mRadius As Int";
circle._mx = RemoteObject.createImmutable(0);__ref.setField("_mx",circle._mx);
circle._my = RemoteObject.createImmutable(0);__ref.setField("_my",circle._my);
circle._mradius = RemoteObject.createImmutable(0);__ref.setField("_mradius",circle._mradius);
 //BA.debugLineNum = 4;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _draw(RemoteObject __ref,RemoteObject _cvs) throws Exception{
try {
		Debug.PushSubsStack("Draw (circle) ","circle",3,__ref.getField(false, "ba"),__ref,14);
if (RapidSub.canDelegate("draw")) return __ref.runUserSub(false, "circle","draw", __ref, _cvs);
Debug.locals.put("cvs", _cvs);
 BA.debugLineNum = 14;BA.debugLine="Sub Draw(cvs As Canvas)";
Debug.ShouldStop(8192);
 BA.debugLineNum = 15;BA.debugLine="cvs.DrawCircle(mx, my, mRadius, Colors.Blue, Fals";
Debug.ShouldStop(16384);
_cvs.runVoidMethod ("DrawCircle",(Object)(BA.numberCast(float.class, __ref.getField(true,"_mx"))),(Object)(BA.numberCast(float.class, __ref.getField(true,"_my"))),(Object)(BA.numberCast(float.class, __ref.getField(true,"_mradius"))),(Object)(circle.__c.getField(false,"Colors").getField(true,"Blue")),(Object)(circle.__c.getField(true,"False")),(Object)(BA.numberCast(float.class, circle.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 1))))));
 BA.debugLineNum = 16;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			Debug.ErrorCaught(e);
			throw e;
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _shapes,RemoteObject _x,RemoteObject _y,RemoteObject _radius) throws Exception{
try {
		Debug.PushSubsStack("Initialize (circle) ","circle",3,__ref.getField(false, "ba"),__ref,7);
if (RapidSub.canDelegate("initialize")) return __ref.runUserSub(false, "circle","initialize", __ref, _ba, _shapes, _x, _y, _radius);
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
Debug.locals.put("Shapes", _shapes);
Debug.locals.put("x", _x);
Debug.locals.put("y", _y);
Debug.locals.put("Radius", _radius);
 BA.debugLineNum = 7;BA.debugLine="Sub Initialize (Shapes As List, x As Int, y As Int";
Debug.ShouldStop(64);
 BA.debugLineNum = 8;BA.debugLine="mx = x";
Debug.ShouldStop(128);
__ref.setField ("_mx",_x);
 BA.debugLineNum = 9;BA.debugLine="my = y";
Debug.ShouldStop(256);
__ref.setField ("_my",_y);
 BA.debugLineNum = 10;BA.debugLine="mRadius = Radius";
Debug.ShouldStop(512);
__ref.setField ("_mradius",_radius);
 BA.debugLineNum = 11;BA.debugLine="Shapes.Add(Me)";
Debug.ShouldStop(1024);
_shapes.runVoidMethod ("Add",(Object)(__ref));
 BA.debugLineNum = 12;BA.debugLine="End Sub";
Debug.ShouldStop(2048);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			Debug.ErrorCaught(e);
			throw e;
		} 
finally {
			Debug.PopSubsStack();
		}}
}