com.vaadin.flow.component.charts.model.PanKey Maven / Gradle / Ivy
/**
* Copyright 2000-2024 Vaadin Ltd.
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See {@literal } for the full
* license.
*/
package com.vaadin.flow.component.charts.model;
/**
* Allows setting a key to switch between zooming and panning. The keys are
* mapped directly to the key properties of the click event argument
* (event.altKey, event.ctrlKey, event.metaKey and event.shiftKey).
*
* Defaults to undefined.
*/
public enum PanKey implements ChartEnum {
ALT("alt"), CTRL("ctrl"), META("meta"), SHIFT("shift");
private final String key;
/**
* Constructs a new PanKey.
*
* @param key
* the actual key string passed for client side
*/
private PanKey(String key) {
this.key = key;
}
@Override
public String toString() {
return key;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy