1 package org.simantics.district.network.visualisations.model;
3 public class SizeBarOptions {
5 private boolean showColorBars;
6 private boolean showColorBarsTicks;
7 private SizeBarsLocation location;
8 private SizeBarsSize size;
10 public boolean isShowSizeBars() {
14 public SizeBarOptions showSizeBars(boolean show) {
15 this.showColorBars = show;
19 public boolean isShowSizeBarsTicks() {
20 return showColorBarsTicks;
23 public SizeBarOptions showSizeBarsTicks(boolean show) {
24 this.showColorBarsTicks = show;
28 public SizeBarsLocation getLocation() {
32 public SizeBarOptions withLocation(SizeBarsLocation location) {
33 this.location = location;
37 public SizeBarsSize getSize() {
41 public SizeBarOptions withSize(SizeBarsSize size) {
45 public enum SizeBarsLocation {
46 NORTH, EAST, SOUTH, WEST
49 public enum SizeBarsSize {
50 SMALL(1), MEDIUM(2), LARGE(3);
54 SizeBarsSize(int size) {
58 public double getSize() {
63 public static SizeBarOptions useDefault() {
64 return new SizeBarOptions().showSizeBars(true).withLocation(SizeBarsLocation.EAST).withSize(SizeBarsSize.SMALL);