public final class ZoomPlugin extends Object
Modifier and Type | Field and Description |
---|---|
static ZoomOptionsFactory |
FACTORY
Zoom options factory
|
static String |
ID
Plugin ID "zoom".
|
Modifier and Type | Method and Description |
---|---|
static Drag |
createDrag()
Creates new customized drag-to-zoom effect.
|
static Drag |
createDrag(IsChart chart)
Creates new customized drag-to-zoom effect.
|
static void |
enable()
Inject the plugin but disables into all charts waiting for the specific statement for each chart.
|
static void |
enable(boolean enableToAllCharts)
Inject the plugin and by the argument decides to enable the plugin to all charts or not.
|
static void |
enable(boolean enableToAllCharts,
boolean enableHammerInjection)
Inject the plugin and by the argument decides to enable the plugin to all charts or not.
|
static void |
resetZoom(IsChart chart)
Reset the zoom of chart when
ZoomPlugin is activated. |
public static final String ID
public static final ZoomOptionsFactory FACTORY
public static void enable()
public static void enable(boolean enableToAllCharts)
enableToAllCharts
- by true
the plugin will be enabled to all charts, otherwise false
.public static void enable(boolean enableToAllCharts, boolean enableHammerInjection)
enableToAllCharts
- by true
the plugin will be enabled to all charts, otherwise false
.enableHammerInjection
- if false
, HammerJs library will not be injectedpublic static void resetZoom(IsChart chart)
ZoomPlugin
is activated.chart
- chart instance to invokepublic static Drag createDrag(IsChart chart)
chart
- chart instance to relate to new drag object, for defaultspublic static Drag createDrag()