Sundry refactor.

1) change some method name to keep consistence.
2) change order of methods to feel good.

Change-Id: Id73e89ee78310fa00a3ef5359458a5783943f705
Fix bug that cause by incorrect rect coordinate.

Before if Rect's left less large than right or top large than bottom
some strange behavior will occur. We add a utils RectCoordinateCorrector
class to rectify the rect's coordinate when we need.

Change-Id: If50f9c680ad824212b53e4012c7a771ad8606f59