KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwt > awt > Adjustable


1 /*
2    SwingWT
3    Copyright(c)2003-2004, Tomer Bartletz
4  
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7  
8    Contact me by electronic mail: tomerb@users.sourceforge.net
9   
10    $Log: Adjustable.java,v $
11    Revision 1.2 2004/01/06 08:28:02 bobintetley
12    Header fixes
13
14
15  */

16 package swingwt.awt;
17
18 import swingwt.awt.event.*;
19
20 /**
21  * An interface for objects which have an adjustable numeric value
22  * contained within a bounded range of values.
23  *
24  * @author Tomer Barletz, tomerb@users.sourceforge.net
25  * @version 0.1
26  */

27 public interface Adjustable {
28     public static final int HORIZONTAL=0;
29     public static final int VERTICAL=1;
30     public static final int NO_ORIENTATION=2;
31     int getOrientation();
32     void setMinimum(int min);
33     int getMinimum();
34     void setMaximum(int max);
35     int getMaximum();
36     void setUnitIncrement(int u);
37     int getUnitIncrement();
38     void setBlockIncrement(int b);
39     int getBlockIncrement();
40     void setVisibleAmount(int v);
41     int getVisibleAmount();
42     void setValue(int v);
43     int getValue();
44     void addAdjustmentListener(AdjustmentListener l);
45     void removeAdjustmentListener(AdjustmentListener l);
46
47 }
48
Popular Tags