Class ZoomInScalingAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.ui.scaling.ZoomInScalingAction
-
- All Implemented Interfaces:
IKeyAction
public class ZoomInScalingAction extends Object implements IKeyAction
Action to zoom in a NatTable instance which means to increase the scaling settings.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ZoomInScalingAction()
Creates a newZoomInScalingAction
without an updater.ZoomInScalingAction(Consumer<IConfigRegistry> updater)
Creates a newZoomInScalingAction
with the given updater.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
-
-
-
Constructor Detail
-
ZoomInScalingAction
public ZoomInScalingAction()
Creates a newZoomInScalingAction
without an updater.Note:
Without an updater manually registered painters will not be updated and therefore won't reflect the udpated scaling. This only works in combination with theme styling, as the painter update is implemented in the themes internally.
-
ZoomInScalingAction
public ZoomInScalingAction(Consumer<IConfigRegistry> updater)
Creates a newZoomInScalingAction
with the given updater.- Parameters:
updater
- The updater that should be called on zoom operations. Needed to reflect the updated scaling. E.g. re-register ImagePainters like the CheckBoxPainter, otherwise the images will not be updated according to the scaling.
-
-
Method Detail
-
run
public void run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
- Specified by:
run
in interfaceIKeyAction
-
-