public IOrientationState getOrientationStateFromParam ( int orientation ) { switch ( orientation ) { case Orientation . ORIENTATION_HORIZONTAL_BOTTOM : return new OrientationStateHorizontalBottom ( ) ; case Orientation . ORIENTATION_HORIZONTAL_TOP : return new OrientationStateHorizontalTop ( ) ; case Orientation . ORIENTATION_VERTICAL_LEFT : return new OrientationStateVerticalLeft ( ) ; case Orientation . ORIENTATION_VERTICAL_RIGHT : return new OrientationStateVerticalRight ( ) ; default : return new OrientationStateHorizontalBottom ( ) ; } }
orientation state factory method