Exemplo n.º 1
0
public override global::System.Object clickableAreasForPoints(global::java.util.List n1, global::java.util.List n2, float n3, int n4, int n5){
//XMLVM_BEGIN_WRAPPER[com.codename1.charts.views.ScatterChart: com.codename1.charts.views.ClickableArea[] clickableAreasForPoints(java.util.List, java.util.List, float, int, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nElement _r21;
    global::System.Object _r21_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r16_o = this;
    _r17_o = n1;
    _r18_o = n2;
    _r19.f = n3;
    _r20.i = n4;
    _r21.i = n5;
    _r11.i = ((global::java.util.List) _r17_o).size();
    _r2.i = _r11.i / 2;
    _r12_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r2.i]);
    _r10.i = 0;
    label9:;
    if (_r10.i >= _r11.i) goto label133;
    _r0_o = _r16_o;
    _r0_o = ((global::com.codename1.charts.views.ScatterChart) _r0_o)._fmRenderer;
    _r2_o = _r0_o;
    _r13.i = ((global::com.codename1.charts.renderers.XYMultipleSeriesRenderer) _r2_o).getSelectableBuffer();
    _r14.i = _r10.i / 2;
    _r15_o = new global::com.codename1.charts.views.ClickableArea();
    _r0_o = _r17_o;
    _r1.i = _r10.i;
    _r19_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r19_o = _r19_o;
    _r2.f = ((global::java.lang.Float) _r19_o).floatValue();
    _r3.f = (float) _r13.i;
    _r2.f = _r2.f - _r3.f;
    _r2.d = (double) _r2.f;
    _r4.i = _r10.i + 1;
    _r0_o = _r17_o;
    _r1.i = _r4.i;
    _r19_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r19_o = _r19_o;
    _r4.f = ((global::java.lang.Float) _r19_o).floatValue();
    _r5.f = (float) _r13.i;
    _r4.f = _r4.f - _r5.f;
    _r4.d = (double) _r4.f;
    _r0_o = _r17_o;
    _r1.i = _r10.i;
    _r19_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r19_o = _r19_o;
    _r6.f = ((global::java.lang.Float) _r19_o).floatValue();
    _r7.f = (float) _r13.i;
    _r6.f = _r6.f + _r7.f;
    _r6.d = (double) _r6.f;
    _r8.i = _r10.i + 1;
    _r0_o = _r17_o;
    _r1.i = _r8.i;
    _r19_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r19_o = _r19_o;
    _r8.f = ((global::java.lang.Float) _r19_o).floatValue();
    _r9.f = (float) _r13.i;
    _r8.f = _r8.f + _r9.f;
    _r8.d = (double) _r8.f;
    _r3_o = global::com.codename1.charts.views.PkgUtils.makeRect((double) _r2.d, (double) _r4.d, (double) _r6.d, (double) _r8.d);
    _r0_o = _r18_o;
    _r1.i = _r10.i;
    _r19_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r19_o = _r19_o;
    _r4.d = ((global::java.lang.Double) _r19_o).doubleValue();
    _r2.i = _r10.i + 1;
    _r0_o = _r18_o;
    _r1.i = _r2.i;
    _r19_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r19_o = _r19_o;
    _r6.d = ((global::java.lang.Double) _r19_o).doubleValue();
    _r2_o = _r15_o;
    ((global::com.codename1.charts.views.ClickableArea) _r2_o).@this((global::com.codename1.ui.geom.Rectangle2D) _r3_o, (double) _r4.d, (double) _r6.d);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r12_o)[_r14.i] = _r15_o;
    _r10.i = _r10.i + 2;
    goto label9;
    label133:;
    return (global::org.xmlvm._nArrayAdapter<global::System.Object>) _r12_o;
//XMLVM_END_WRAPPER[com.codename1.charts.views.ScatterChart: com.codename1.charts.views.ClickableArea[] clickableAreasForPoints(java.util.List, java.util.List, float, int, int)]
}
Exemplo n.º 2
0
public override global::System.Object clickableAreasForPoints(global::java.util.List n1, global::java.util.List n2, float n3, int n4, int n5){
//XMLVM_BEGIN_WRAPPER[com.codename1.charts.views.BarChart: com.codename1.charts.views.ClickableArea[] clickableAreasForPoints(java.util.List, java.util.List, float, int, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nElement _r21;
    global::System.Object _r21_o = null;
    global::org.xmlvm._nElement _r22;
    global::System.Object _r22_o = null;
    global::org.xmlvm._nElement _r23;
    global::System.Object _r23_o = null;
    global::org.xmlvm._nElement _r24;
    global::System.Object _r24_o = null;
    global::org.xmlvm._nElement _r25;
    global::System.Object _r25_o = null;
    global::org.xmlvm._nElement _r26;
    global::System.Object _r26_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r21_o = this;
    _r22_o = n1;
    _r23_o = n2;
    _r24.f = n3;
    _r25.i = n4;
    _r26.i = n5;
    _r0_o = _r21_o;
    _r0_o = ((global::com.codename1.charts.views.BarChart) _r0_o)._fmDataset;
    _r4_o = _r0_o;
    _r16.i = ((global::com.codename1.charts.models.XYMultipleSeriesDataset) _r4_o).getSeriesCount();
    _r14.i = ((global::java.util.List) _r22_o).size();
    _r4.i = _r14.i / 2;
    _r15_o = new global::org.xmlvm._nArrayAdapter<global::System.Object>(new global::System.Object[_r4.i]);
    _r0_o = _r21_o;
    _r1_o = _r22_o;
    _r2.i = _r14.i;
    _r3.i = _r16.i;
    _r12.f = ((global::com.codename1.charts.views.BarChart) _r0_o).getHalfDiffX((global::java.util.List) _r1_o, (int) _r2.i, (int) _r3.i);
    _r13.i = 0;
    label29:;
    if (_r13.i >= _r14.i) goto label232;
    _r0_o = _r22_o;
    _r1.i = _r13.i;
    _r26_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r26_o = _r26_o;
    _r18.f = ((global::java.lang.Float) _r26_o).floatValue();
    _r4.i = _r13.i + 1;
    _r0_o = _r22_o;
    _r1.i = _r4.i;
    _r26_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r26_o = _r26_o;
    _r19.f = ((global::java.lang.Float) _r26_o).floatValue();
    _r0_o = _r21_o;
    _r0_o = ((global::com.codename1.charts.views.BarChart) _r0_o)._fmType;
    _r4_o = _r0_o;
    _r5_o = global::com.codename1.charts.views.BarChart_2Type._fSTACKED;
    if (_r4_o == _r5_o) goto label77;
    _r0_o = _r21_o;
    _r0_o = ((global::com.codename1.charts.views.BarChart) _r0_o)._fmType;
    _r4_o = _r0_o;
    _r5_o = global::com.codename1.charts.views.BarChart_2Type._fHEAPED;
    if (_r4_o != _r5_o) goto label147;
    label77:;
    _r17.i = _r13.i / 2;
    _r20_o = new global::com.codename1.charts.views.ClickableArea();
    _r4.f = _r18.f - _r12.f;
    _r4.d = (double) _r4.f;
    _r0.f = _r19.f;
    _r1.f = _r24.f;
    _r6.f = global::java.lang.Math.min((float) _r0.f, (float) _r1.f);
    _r6.d = (double) _r6.f;
    _r8.f = _r18.f + _r12.f;
    _r8.d = (double) _r8.f;
    _r0.f = _r19.f;
    _r1.f = _r24.f;
    _r10.f = global::java.lang.Math.max((float) _r0.f, (float) _r1.f);
    _r10.d = (double) _r10.f;
    _r5_o = global::com.codename1.charts.views.PkgUtils.makeRect((double) _r4.d, (double) _r6.d, (double) _r8.d, (double) _r10.d);
    _r0_o = _r23_o;
    _r1.i = _r13.i;
    _r26_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r26_o = _r26_o;
    _r6.d = ((global::java.lang.Double) _r26_o).doubleValue();
    _r4.i = _r13.i + 1;
    _r0_o = _r23_o;
    _r1.i = _r4.i;
    _r26_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r26_o = _r26_o;
    _r8.d = ((global::java.lang.Double) _r26_o).doubleValue();
    _r4_o = _r20_o;
    ((global::com.codename1.charts.views.ClickableArea) _r4_o).@this((global::com.codename1.ui.geom.Rectangle2D) _r5_o, (double) _r6.d, (double) _r8.d);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r17.i] = _r20_o;
    label144:;
    _r13.i = _r13.i + 2;
    goto label29;
    label147:;
    _r0.i = _r16.i;
    _r0.f = (float) _r0.i;
    _r4.f = _r0.f;
    _r4.f = _r4.f * _r12.f;
    _r4.f = _r18.f - _r4.f;
    _r5.i = _r25.i * 2;
    _r5.f = (float) _r5.i;
    _r5.f = _r5.f * _r12.f;
    _r17.f = _r4.f + _r5.f;
    _r18.i = _r13.i / 2;
    _r20_o = new global::com.codename1.charts.views.ClickableArea();
    _r0.f = _r17.f;
    _r0.d = (double) _r0.f;
    _r4.d = _r0.d;
    _r0.f = _r19.f;
    _r1.f = _r24.f;
    _r6.f = global::java.lang.Math.min((float) _r0.f, (float) _r1.f);
    _r6.d = (double) _r6.f;
    _r8.f = (float)2.0D;
    _r8.f = _r8.f * _r12.f;
    _r8.f = _r8.f + _r17.f;
    _r8.d = (double) _r8.f;
    _r0.f = _r19.f;
    _r1.f = _r24.f;
    _r10.f = global::java.lang.Math.max((float) _r0.f, (float) _r1.f);
    _r10.d = (double) _r10.f;
    _r5_o = global::com.codename1.charts.views.PkgUtils.makeRect((double) _r4.d, (double) _r6.d, (double) _r8.d, (double) _r10.d);
    _r0_o = _r23_o;
    _r1.i = _r13.i;
    _r26_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r26_o = _r26_o;
    _r6.d = ((global::java.lang.Double) _r26_o).doubleValue();
    _r4.i = _r13.i + 1;
    _r0_o = _r23_o;
    _r1.i = _r4.i;
    _r26_o = ((global::java.util.List) _r0_o).get((int) _r1.i);
    _r26_o = _r26_o;
    _r8.d = ((global::java.lang.Double) _r26_o).doubleValue();
    _r4_o = _r20_o;
    ((global::com.codename1.charts.views.ClickableArea) _r4_o).@this((global::com.codename1.ui.geom.Rectangle2D) _r5_o, (double) _r6.d, (double) _r8.d);
    ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o)[_r18.i] = _r20_o;
    goto label144;
    label232:;
    return (global::org.xmlvm._nArrayAdapter<global::System.Object>) _r15_o;
//XMLVM_END_WRAPPER[com.codename1.charts.views.BarChart: com.codename1.charts.views.ClickableArea[] clickableAreasForPoints(java.util.List, java.util.List, float, int, int)]
}