1 package org.simantics.spreadsheet.ui;
6 import javax.swing.border.Border;
8 public class CellValue {
10 public boolean editable = false;
16 public Color foreground;
17 public Color background;
18 public CellValue(String label, Font font, Color foreground, Color background, int border, int align, boolean editable) {
19 this.editable = editable;
22 this.foreground = foreground;
25 this.background = background;
27 this.background = new Color(220, 220, 220, 100);
33 final SheetBorder BORDER0 = new SheetBorder(1,1,1,1,false, false);
34 final SheetBorder BORDER1 = new SheetBorder(1,1,1,1,false, true);
35 final SheetBorder BORDER2 = new SheetBorder(1,1,1,1,true, false);
36 final SheetBorder BORDER3 = new SheetBorder(1,1,1,1,true, true);
42 public Border getBorder() {
44 case 0: return BORDER0;
45 case 1: return BORDER1;
46 case 2: return BORDER2;
47 case 3: return BORDER3;