class PopUpCoachMarkPresenter {

    protected int getActualLeftMargin(int anchorTopX, CoachMarkPixelInfo coachMarkDimenInPixel) {
        if (anchorTopX + coachMarkDimenInPixel.getPopUpWidthInPixels() +
                coachMarkDimenInPixel.getWidthHeightOffsetForCoachMarkPopUp() +
                coachMarkDimenInPixel.getMarginRectInPixels().right +
                coachMarkDimenInPixel.getMarginRectInPixels().left >
                coachMarkDimenInPixel.getScreenWidthInPixels()) {
            return coachMarkDimenInPixel.getScreenWidthInPixels() -
                    coachMarkDimenInPixel.getPopUpWidthInPixels() +
                    coachMarkDimenInPixel.getWidthHeightOffsetForCoachMarkPopUp() +
                    coachMarkDimenInPixel.getMarginRectInPixels().right +
                    coachMarkDimenInPixel.getMarginRectInPixels().left;
        }
        return anchorTopX + coachMarkDimenInPixel.getMarginRectInPixels().left;
    }

    public  PopUpCoachMarkPresenter(final IStringResourceProvider stringResourceProvider,
                                   final IDimensionResourceProvider dimensionResourceProvider,
                                   final ITypeFaceProvider typeFaceProvider,
                                   final IScreenInfoProvider screenInfoProvider);

}