]> git.basschouten.com Git - openhab-addons.git/blob
07b9ce7a17d69f4ee2aeae49057fc8967e6fc600
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.nanoleaf.internal.layout;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Settigns used for layout.
19  *
20  * @author Jørgen Austvik - Initial contribution
21  */
22 @NonNullByDefault
23 public class LayoutSettings {
24
25     private final boolean drawLabels;
26     private final boolean drawCorners;
27     private final boolean drawOutline;
28     private final boolean fillColor;
29
30     public LayoutSettings(boolean drawLabels, boolean drawCorners, boolean drawOutline, boolean fillColor) {
31         this.drawLabels = drawLabels;
32         this.drawCorners = drawCorners;
33         this.drawOutline = drawOutline;
34         this.fillColor = fillColor;
35     }
36
37     public boolean shouldDrawLabels() {
38         return drawLabels;
39     }
40
41     public boolean shouldDrawCorners() {
42         return drawCorners;
43     }
44
45     public boolean shouldDrawOutline() {
46         return drawOutline;
47     }
48
49     public boolean shouldFillWithColor() {
50         return fillColor;
51     }
52 }