protected ConversionDirectionType getCatalysisDirection ( Control cont ) { if ( cont instanceof Catalysis ) { CatalysisDirectionType catDir = ( ( Catalysis ) cont ) . getCatalysisDirection ( ) ; if ( catDir == CatalysisDirectionType . LEFT_TO_RIGHT ) { return ConversionDirectionType . LEFT_TO_RIGHT ; } else if ( catDir == CatalysisDirectionType . RIGHT_TO_LEFT ) { return ConversionDirectionType . RIGHT_TO_LEFT ; } } return null ; }
Gets the direction of the Control if exists .