public boolean isMatching ( MouseEvent event ) { return ( event != null ) && ! event . isConsumed ( ) && ( mouseModifiers . isNone ( ) || ( ( event . isPrimaryButtonDown ( ) == mouseButtons . isPrimary ( ) ) && ( event . isMiddleButtonDown ( ) == mouseButtons . isMiddle ( ) ) && ( event . isSecondaryButtonDown ( ) == mouseButtons . isSecondary ( ) ) && ( event . isAltDown ( ) == mouseModifiers . isAlt ( ) ) && ( event . isShiftDown ( ) == mouseModifiers . isShift ( ) ) && ( event . isControlDown ( ) == mouseModifiers . isControl ( ) ) && ( event . isMetaDown ( ) == mouseModifiers . isMeta ( ) ) ) ) ; }
Check whether the given MouseEvent is matching the current properties .