Class FillHandleEventMatcher
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
-
- org.eclipse.nebula.widgets.nattable.fillhandle.event.FillHandleEventMatcher
-
- All Implemented Interfaces:
IMouseEventMatcher
public class FillHandleEventMatcher extends MouseEventMatcher
Matcher that returnstrue
in case the mouse moves over the fill handle rendered by theFillHandleLayerPainter
.- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description protected FillHandleLayerPainter
fillHandlePainter
-
Fields inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
LEFT_BUTTON, RIGHT_BUTTON
-
-
Constructor Summary
Constructors Constructor Description FillHandleEventMatcher(FillHandleLayerPainter fillHandlePainter)
Create aFillHandleEventMatcher
that reacts when the mouse is moved over the fill handle rendered by the givenFillHandleLayerPainter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(NatTable natTable, org.eclipse.swt.events.MouseEvent event, LabelStack regionLabels)
Figures out if the mouse event occurred in the supplied region.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher
bodyLeftClick, bodyRightClick, columnGroupHeaderLeftClick, columnGroupHeaderRightClick, columnHeaderLeftClick, columnHeaderRightClick, equals, getButton, getEventRegion, getStateMask, hashCode, rowGroupHeaderLeftClick, rowGroupHeaderRightClick, rowHeaderLeftClick, rowHeaderRightClick
-
-
-
-
Field Detail
-
fillHandlePainter
protected FillHandleLayerPainter fillHandlePainter
-
-
Constructor Detail
-
FillHandleEventMatcher
public FillHandleEventMatcher(FillHandleLayerPainter fillHandlePainter)
Create aFillHandleEventMatcher
that reacts when the mouse is moved over the fill handle rendered by the givenFillHandleLayerPainter
.- Parameters:
fillHandlePainter
- TheFillHandleLayerPainter
that should be used to determine the bounds of the fill handle. Can not benull
.
-
-
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 interfaceIMouseEventMatcher
- Overrides:
matches
in classMouseEventMatcher
- Parameters:
natTable
- The NatTable on which theMouseEvent
occured.event
- The SWTMouseEvent
.regionLabels
- TheLabelStack
with the region labels of theMouseEvent
coordinates.- Returns:
true
if theMouseEvent
matches thisIMouseEventMatcher
and should therefore be handled,false
if not
-
-