Class HierarchicalRowHideIndicatorEventMatcher

  • All Implemented Interfaces:
    IMouseEventMatcher

    public class HierarchicalRowHideIndicatorEventMatcher
    extends MouseEventMatcher
    MouseEventMatcher that checks for cell edges at row borders and for the existence of row hide indicator labels in the level headers of a HierarchicalTreeLayer.
    Since:
    1.6
    • Constructor Detail

      • HierarchicalRowHideIndicatorEventMatcher

        public HierarchicalRowHideIndicatorEventMatcher​(int stateMask,
                                                        int button)
        Parameters:
        stateMask - The state of the keyboard modifier keys and mouse masks at the time the event was generated to match.
        button - The mouse button that should be pressed to match.
    • Method Detail

      • matches

        public boolean matches​(NatTable natTable,
                               org.eclipse.swt.events.MouseEvent event,
                               LabelStack regionLabels)
        Description copied from interface: IMouseEventMatcher
        Figures out if the mouse event occurred in the supplied region.
        Specified by:
        matches in interface IMouseEventMatcher
        Overrides:
        matches in class MouseEventMatcher
        Parameters:
        natTable - The NatTable on which the MouseEvent occured.
        event - The SWT MouseEvent.
        regionLabels - The LabelStack with the region labels of the MouseEvent coordinates.
        Returns:
        true if the MouseEvent matches this IMouseEventMatcher and should therefore be handled, false if not