

def getCenterX_2(self, pp, symbol, prevX, x, nextX):
    xMin = pp.getXMin()
    xMax = pp.getXMax()
    xMid = symbol.getBaseline()
    if (Double.NaN == xMid):
        xMid = ((prevXPx + xMax) / 2.0)
    xMinPx = pp.xToPixel(xMin)
    xMaxPx = pp.xToPixel(xMax)
    xMidPx = pp.xToPixel(xMid)
    xPx = pp.xToPixel(x)
    prevXPx = pp.xToPixel(prevX)
    nextXPx = pp.xToPixel(nextX)
    width = symbol.getWidth(pp)
    symWidth = self.getAdjustedWidth(width, xPx, prevXPx, nextXPx, xMinPx, xMaxPx, xMidPx)
    if (Double.NaN == symWidth):
        return Double.NaN
    xLeft = self.getUpperLeftX(width, xPx, prevXPx, nextXPx, xMinPx, xMaxPx, xMidPx, pp.getXMousePlotArea())
    if (Double.NaN == xLeft):
        return Double.NaN
    xCenter = (xLeft + (symWidth / 2.0))
    return xCenter

dataset/ETHPy150Open anandology/pyjamas/library/gwt/chart/SymbolType.py SymbolType.getCenterX_2/VarMisuse@59/81 `xMin`->`prevXPx`