class PopUpCoachMarkPresenter {

    protected boolean checkIfTopPossible(Point viewCenterPoint,
                                       CoachMarkPixelInfo coachMarkDimenInPixel) {
        int centerY = viewCenterPoint.y;
        return (coachMarkDimenInPixel.getPopUpHeightInPixelsWithOffset() +
                coachMarkDimenInPixel.getMarginRectInPixels().top +
                coachMarkDimenInPixel.getMarginRectInPixels().bottom +
                coachMarkDimenInPixel.getActionBarHeightPixels()) <=
                centerY && ((coachMarkDimenInPixel.getWidthHeightOffsetForCoachMarkPopUp()
                + coachMarkDimenInPixel.getMarginRectInPixels().left +
                coachMarkDimenInPixel.getMarginRectInPixels().right) <=
                coachMarkDimenInPixel.getScreenWidthInPixels());
    }

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

}