public String getControlType ( Object control ) { if ( control == null || ! ( control instanceof ScreenAnnotation ) ) return null ; if ( showPanControls && controlPan . equals ( control ) ) return AVKey . VIEW_PAN ; else if ( showLookControls && controlLook . equals ( control ) ) return AVKey . VIEW_LOOK ; else if ( showHeadingControls && controlHeadingLeft . equals ( control ) ) return AVKey . VIEW_HEADING_LEFT ; else if ( showHeadingControls && controlHeadingRight . equals ( control ) ) return AVKey . VIEW_HEADING_RIGHT ; else if ( showZoomControls && controlZoomIn . equals ( control ) ) return AVKey . VIEW_ZOOM_IN ; else if ( showZoomControls && controlZoomOut . equals ( control ) ) return AVKey . VIEW_ZOOM_OUT ; else if ( showPitchControls && controlPitchUp . equals ( control ) ) return AVKey . VIEW_PITCH_UP ; else if ( showPitchControls && controlPitchDown . equals ( control ) ) return AVKey . VIEW_PITCH_DOWN ; else if ( showFovControls && controlFovNarrow . equals ( control ) ) return AVKey . VIEW_FOV_NARROW ; else if ( showFovControls && controlFovWide . equals ( control ) ) return AVKey . VIEW_FOV_WIDE ; else if ( showVeControls && controlVeUp . equals ( control ) ) return AVKey . VERTICAL_EXAGGERATION_UP ; else if ( showVeControls && controlVeDown . equals ( control ) ) return AVKey . VERTICAL_EXAGGERATION_DOWN ; return null ; }
Get the control type associated with the given object or null if unknown .