1 package org.simantics.district.network.visualisations.model;
3 public class ColorBarOptions {
5 private boolean showColorBars;
6 private boolean showColorBarsTicks;
7 private ColorBarsLocation location;
8 private ColorBarsSize size;
10 public boolean isShowColorBars() {
14 public ColorBarOptions showColorBars(boolean show) {
15 this.showColorBars = show;
19 public boolean isShowColorBarsTicks() {
20 return showColorBarsTicks;
23 public ColorBarOptions showColorBarsTicks(boolean show) {
24 this.showColorBarsTicks = show;
28 public ColorBarsLocation getLocation() {
32 public ColorBarOptions withLocation(ColorBarsLocation location) {
33 this.location = location;
37 public ColorBarsSize getSize() {
41 public ColorBarOptions withSize(ColorBarsSize size) {
46 public enum ColorBarsLocation {
47 NORTH, EAST, SOUTH, WEST
50 public enum ColorBarsSize {
51 SMALL(1), MEDIUM(2), LARGE(3);
55 ColorBarsSize(int size) {
59 public int getSize() {
64 public static ColorBarOptions useDefault() {
65 return new ColorBarOptions().showColorBars(true).withLocation(ColorBarsLocation.EAST).withSize(ColorBarsSize.SMALL);