

def getCenterX(self, pp, symbol, iPoint):
    c = symbol.getParent()
    p = c.getPoint(iPoint)
    prevX = Double.NaN
    x = p.getX()
    nextX = Double.NaN
    if (iPoint > 0):
        prevX = c.getPoint((iPoint - 1)).getX()
    if ((iPoint + 1) < c.getNPoints()):
        nextX = c.getPoint((iPoint + 1)).getX()
    result = self.getCenterX_2(pp, symbol, prevX, x, nextX)
    return result

dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/SymbolType.py SymbolType.getCenterX/original