]> gerrit.simantics Code Review - simantics/platform.git/blob - MarginsBean.java
ba120985afa66506c30a112e4e661fc362993df4
[simantics/platform.git] / MarginsBean.java
1 package org.simantics.document.swt.core.bean;
2
3 import org.simantics.databoard.Bindings;
4 import org.simantics.databoard.binding.Binding;
5 import org.simantics.databoard.util.Bean;
6
7 public class MarginsBean extends Bean {
8
9         public static final Binding BINDING = Bindings.getBindingUnchecked(MarginsBean.class);
10
11         public int left;
12         public int right;
13         public int top;
14         public int bottom;
15
16         public MarginsBean(int left, int right, int top, int bottom) {
17                 this.left = left; this.right = right; this.top = top; this.bottom = bottom;
18         }
19
20         @Override
21         public String toString() {
22                 return "ExtendedMargins[left=" + left + " ,right=" + right+ " ,top=" + top + " ,bottom=" + bottom + "]";
23         }
24         
25 }