|
| 1 | +/* |
| 2 | + * Copyright © 2023 XDEV Software (https://xdev.software) |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | +package software.xdev.chartjs.model.options.plugins.zoom.pan; |
| 17 | + |
| 18 | +/** |
| 19 | + * <a href="https://www.chartjs.org/chartjs-plugin-zoom/latest/guide/options.html#pan-options">ChartJS docs</a> |
| 20 | + */ |
| 21 | +public class PanOptions |
| 22 | +{ |
| 23 | + protected Boolean enabled; |
| 24 | + protected String mode; |
| 25 | + protected String modifierKey; |
| 26 | + protected String scaleMode; |
| 27 | + protected String overScaleMode; |
| 28 | + protected Integer threshold; |
| 29 | + |
| 30 | + public Boolean getEnabled() |
| 31 | + { |
| 32 | + return this.enabled; |
| 33 | + } |
| 34 | + |
| 35 | + public PanOptions setEnabled(final Boolean enabled) |
| 36 | + { |
| 37 | + this.enabled = enabled; |
| 38 | + return this; |
| 39 | + } |
| 40 | + |
| 41 | + public String getMode() |
| 42 | + { |
| 43 | + return this.mode; |
| 44 | + } |
| 45 | + |
| 46 | + public PanOptions setMode(final String mode) |
| 47 | + { |
| 48 | + this.mode = mode; |
| 49 | + return this; |
| 50 | + } |
| 51 | + |
| 52 | + public String getModifierKey() |
| 53 | + { |
| 54 | + return this.modifierKey; |
| 55 | + } |
| 56 | + |
| 57 | + public PanOptions setModifierKey(final String modifierKey) |
| 58 | + { |
| 59 | + this.modifierKey = modifierKey; |
| 60 | + return this; |
| 61 | + } |
| 62 | + |
| 63 | + public String getScaleMode() |
| 64 | + { |
| 65 | + return this.scaleMode; |
| 66 | + } |
| 67 | + |
| 68 | + public PanOptions setScaleMode(final String scaleMode) |
| 69 | + { |
| 70 | + this.scaleMode = scaleMode; |
| 71 | + return this; |
| 72 | + } |
| 73 | + |
| 74 | + public String getOverScaleMode() |
| 75 | + { |
| 76 | + return this.overScaleMode; |
| 77 | + } |
| 78 | + |
| 79 | + public PanOptions setOverScaleMode(final String overScaleMode) |
| 80 | + { |
| 81 | + this.overScaleMode = overScaleMode; |
| 82 | + return this; |
| 83 | + } |
| 84 | + |
| 85 | + public Integer getThreshold() |
| 86 | + { |
| 87 | + return this.threshold; |
| 88 | + } |
| 89 | + |
| 90 | + public PanOptions setThreshold(final Integer threshold) |
| 91 | + { |
| 92 | + this.threshold = threshold; |
| 93 | + return this; |
| 94 | + } |
| 95 | +} |
0 commit comments