Ejemplo n.º 1
0
public virtual global::System.Object getSeriesAndPointForScreenCoordinate(global::com.codename1.charts.models.Point n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.charts.views.PieMapper: com.codename1.charts.models.SeriesSelection getSeriesAndPointForScreenCoordinate(com.codename1.charts.models.Point)]
    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._nExceptionAdapter _ex = null;
    _r10_o = this;
    _r11_o = n1;
    _r0.i = ((global::com.codename1.charts.views.PieMapper) _r10_o).isOnPieChart((global::com.codename1.charts.models.Point) _r11_o) ? 1 : 0;
    if (_r0.i == 0) goto label55;
    _r7.d = ((global::com.codename1.charts.views.PieMapper) _r10_o).getAngle((global::com.codename1.charts.models.Point) _r11_o);
    _r0_o = ((global::com.codename1.charts.views.PieMapper) _r10_o)._fmPieSegmentList;
    _r0_o = ((global::java.util.List) _r0_o).iterator();
    label16:;
    _r1.i = ((global::java.util.Iterator) _r0_o).hasNext() ? 1 : 0;
    if (_r1.i == 0) goto label55;
    _r9_o = ((global::java.util.Iterator) _r0_o).next();
    _r9_o = _r9_o;
    _r1.i = ((global::com.codename1.charts.views.PieSegment) _r9_o).isInSegment((double) _r7.d) ? 1 : 0;
    if (_r1.i == 0) goto label16;
    _r0_o = new global::com.codename1.charts.models.SeriesSelection();
    _r1.i = 0;
    _r2.i = ((global::com.codename1.charts.views.PieSegment) _r9_o).getDataIndex();
    _r3.f = ((global::com.codename1.charts.views.PieSegment) _r9_o).getValue();
    _r3.d = (double) _r3.f;
    _r5.f = ((global::com.codename1.charts.views.PieSegment) _r9_o).getValue();
    _r5.d = (double) _r5.f;
    ((global::com.codename1.charts.models.SeriesSelection) _r0_o).@this((int) _r1.i, (int) _r2.i, (double) _r3.d, (double) _r5.d);
    label54:;
    return (global::com.codename1.charts.models.SeriesSelection) _r0_o;
    label55:;
    _r0_o = null;
    goto label54;
//XMLVM_END_WRAPPER[com.codename1.charts.views.PieMapper: com.codename1.charts.models.SeriesSelection getSeriesAndPointForScreenCoordinate(com.codename1.charts.models.Point)]
}
Ejemplo n.º 2
0
public override global::System.Object getSeriesAndPointForScreenCoordinate(global::com.codename1.charts.models.Point n1){
//XMLVM_BEGIN_WRAPPER[com.codename1.charts.views.XYChart: com.codename1.charts.models.SeriesSelection getSeriesAndPointForScreenCoordinate(com.codename1.charts.models.Point)]
    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._nExceptionAdapter _ex = null;
    _r9_o = this;
    _r10_o = n1;
    _r0_o = ((global::com.codename1.charts.views.XYChart) _r9_o)._fclickableAreas;
    if (_r0_o == null) goto label100;
    _r0_o = ((global::com.codename1.charts.views.XYChart) _r9_o)._fclickableAreas;
    _r0.i = ((global::java.util.HashMap) _r0_o).size();
    _r3.i = 1;
    _r1.i = _r0.i - _r3.i;
    label13:;
    if (_r1.i < 0) goto label100;
    _r2.i = 0;
    _r0_o = ((global::com.codename1.charts.views.XYChart) _r9_o)._fclickableAreas;
    _r3_o = global::java.lang.Integer.valueOf((int) _r1.i);
    _r0_o = ((global::java.util.HashMap) _r0_o).get((global::java.lang.Object) _r3_o);
    if (_r0_o == null) goto label97;
    _r0_o = ((global::com.codename1.charts.views.XYChart) _r9_o)._fclickableAreas;
    _r3_o = global::java.lang.Integer.valueOf((int) _r1.i);
    _r0_o = ((global::java.util.HashMap) _r0_o).get((global::java.lang.Object) _r3_o);
    _r0_o = _r0_o;
    _r0_o = ((global::java.util.List) _r0_o).iterator();
    label44:;
    _r3.i = ((global::java.util.Iterator) _r0_o).hasNext() ? 1 : 0;
    if (_r3.i == 0) goto label97;
    _r7_o = ((global::java.util.Iterator) _r0_o).next();
    _r7_o = _r7_o;
    if (_r7_o == null) goto label94;
    _r8_o = ((global::com.codename1.charts.views.ClickableArea) _r7_o).getRect();
    if (_r8_o == null) goto label94;
    _r3.f = ((global::com.codename1.charts.models.Point) _r10_o).getX();
    _r3.d = (double) _r3.f;
    _r5.f = ((global::com.codename1.charts.models.Point) _r10_o).getY();
    _r5.d = (double) _r5.f;
    _r3.i = ((global::com.codename1.ui.geom.Rectangle2D) _r8_o).contains((double) _r3.d, (double) _r5.d) ? 1 : 0;
    if (_r3.i == 0) goto label94;
    _r0_o = new global::com.codename1.charts.models.SeriesSelection();
    _r3.d = ((global::com.codename1.charts.views.ClickableArea) _r7_o).getX();
    _r5.d = ((global::com.codename1.charts.views.ClickableArea) _r7_o).getY();
    ((global::com.codename1.charts.models.SeriesSelection) _r0_o).@this((int) _r1.i, (int) _r2.i, (double) _r3.d, (double) _r5.d);
    label93:;
    return (global::com.codename1.charts.models.SeriesSelection) _r0_o;
    label94:;
    _r2.i = _r2.i + 1;
    goto label44;
    label97:;
    _r1.i = _r1.i + -1;
    goto label13;
    label100:;
    _r0_o = base.getSeriesAndPointForScreenCoordinate((global::com.codename1.charts.models.Point) _r10_o);
    goto label93;
//XMLVM_END_WRAPPER[com.codename1.charts.views.XYChart: com.codename1.charts.models.SeriesSelection getSeriesAndPointForScreenCoordinate(com.codename1.charts.models.Point)]
}