|
| 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; |
| 17 | + |
| 18 | +import software.xdev.chartjs.model.color.Color; |
| 19 | + |
| 20 | + |
| 21 | +public class DragOptions |
| 22 | +{ |
| 23 | + protected Boolean enabled; |
| 24 | + protected Color backgroundColor; |
| 25 | + protected Color borderColor; |
| 26 | + protected Integer borderWidth; |
| 27 | + protected String drawTime; |
| 28 | + protected Integer threshold; |
| 29 | + protected String modifierKey; |
| 30 | + |
| 31 | + public Boolean getEnabled() |
| 32 | + { |
| 33 | + return enabled; |
| 34 | + } |
| 35 | + |
| 36 | + public DragOptions setEnabled(final Boolean enabled) |
| 37 | + { |
| 38 | + this.enabled = enabled; |
| 39 | + return this; |
| 40 | + } |
| 41 | + |
| 42 | + public Color getBackgroundColor() |
| 43 | + { |
| 44 | + return backgroundColor; |
| 45 | + } |
| 46 | + |
| 47 | + public DragOptions setBackgroundColor(final Color backgroundColor) |
| 48 | + { |
| 49 | + this.backgroundColor = backgroundColor; |
| 50 | + return this; |
| 51 | + } |
| 52 | + |
| 53 | + public Color getBorderColor() |
| 54 | + { |
| 55 | + return borderColor; |
| 56 | + } |
| 57 | + |
| 58 | + public DragOptions setBorderColor(final Color borderColor) |
| 59 | + { |
| 60 | + this.borderColor = borderColor; |
| 61 | + return this; |
| 62 | + } |
| 63 | + |
| 64 | + public Integer getBorderWidth() |
| 65 | + { |
| 66 | + return borderWidth; |
| 67 | + } |
| 68 | + |
| 69 | + public DragOptions setBorderWidth(final Integer borderWidth) |
| 70 | + { |
| 71 | + this.borderWidth = borderWidth; |
| 72 | + return this; |
| 73 | + } |
| 74 | + |
| 75 | + public String getDrawTime() |
| 76 | + { |
| 77 | + return drawTime; |
| 78 | + } |
| 79 | + |
| 80 | + public DragOptions setDrawTime(final String drawTime) |
| 81 | + { |
| 82 | + this.drawTime = drawTime; |
| 83 | + return this; |
| 84 | + } |
| 85 | + |
| 86 | + public Integer getThreshold() |
| 87 | + { |
| 88 | + return threshold; |
| 89 | + } |
| 90 | + |
| 91 | + public DragOptions setThreshold(final Integer threshold) |
| 92 | + { |
| 93 | + this.threshold = threshold; |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + public String getModifierKey() |
| 98 | + { |
| 99 | + return modifierKey; |
| 100 | + } |
| 101 | + |
| 102 | + public DragOptions setModifierKey(final String modifierKey) |
| 103 | + { |
| 104 | + this.modifierKey = modifierKey; |
| 105 | + return this; |
| 106 | + } |
| 107 | +} |
0 commit comments