01: /*
02: * StatusBarLayoutConstraints.java
03: *
04: * Copyright (C) 2002, 2003, 2004, 2005, 2006 Takis Diakoumis
05: *
06: * This program is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU General Public License
08: * as published by the Free Software Foundation; either version 2
09: * of the License, or any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19: *
20: */
21:
22: package org.underworldlabs.swing;
23:
24: /* ----------------------------------------------------------
25: * CVS NOTE: Changes to the CVS repository prior to the
26: * release of version 3.0.0beta1 has meant a
27: * resetting of CVS revision numbers.
28: * ----------------------------------------------------------
29: */
30:
31: /**
32: *
33: * @author Takis Diakoumis
34: * @version $Revision: 1.4 $
35: * @date $Date: 2006/05/14 06:56:07 $
36: */
37: public class StatusBarLayoutConstraints {
38:
39: /** the component's index in the status bar */
40: private int index;
41:
42: /** the component's preferred width */
43: private int preferredWidth;
44:
45: /** Indicates whether the component may be resized horizontally to fill */
46: private boolean resizeable;
47:
48: /** Creates a new instance of StatusBarLayoutConstraints */
49: public StatusBarLayoutConstraints(int index, int preferredWidth,
50: boolean resizeable) {
51: this .index = index;
52: this .preferredWidth = preferredWidth;
53: this .resizeable = resizeable;
54: }
55:
56: public int getPreferredWidth() {
57: return preferredWidth;
58: }
59:
60: public boolean isResizeable() {
61: return resizeable;
62: }
63:
64: public int getIndex() {
65: return index;
66: }
67:
68: }
|