|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.zuercher.gpx2map.gui.MarkerSizeSpinnerModel
public class MarkerSizeSpinnerModel
MarkerSizeSpinnerModel implements SpinnerModel for the marker size
spinner controls in the Gpx2Map GUI.
| Field Summary | |
|---|---|
private static int |
CHANGE_SIZE
Increment/decrement size for a marker size spinner. |
static int |
DEFAULT_SIZE
Default marker size. |
private HashSet<ChangeListener> |
listeners
A set of ChangeListener implementations to notify when this
spinner model changes. |
private static int |
MINIMUM_VALUE
Minimum marker size. |
private int |
value
Current marker size. |
| Constructor Summary | |
|---|---|
MarkerSizeSpinnerModel()
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener listener)
Add a listener to this spinner model. |
Object |
getNextValue()
Compute the next value of this spinner as an Integer. |
Object |
getPreviousValue()
Compute the previous value of this spinner as an Integer. |
Object |
getValue()
Returns the value of this spinner as an Integer. |
void |
removeChangeListener(ChangeListener listener)
Remove a listener from this spinner model. |
void |
setValue(Object value)
Sets the value of this spinner using an Integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int MINIMUM_VALUE
private static final int CHANGE_SIZE
public static final int DEFAULT_SIZE
private int value
private HashSet<ChangeListener> listeners
ChangeListener implementations to notify when this
spinner model changes.
| Constructor Detail |
|---|
public MarkerSizeSpinnerModel()
| Method Detail |
|---|
public Object getValue()
Integer.
getValue in interface SpinnerModelInteger.public void setValue(Object value)
Integer.
setValue in interface SpinnerModelvalue - the new spinner value, must be an Integer.public Object getNextValue()
Integer.
Always returns an integer one larger than value.
getNextValue in interface SpinnerModelInteger.public Object getPreviousValue()
Integer.
Always returns an integer one less than value, except when
value is MINIMUM_VALUE in which case MINIMUM_VALUE is
returned.
getPreviousValue in interface SpinnerModelInteger.public void addChangeListener(ChangeListener listener)
addChangeListener in interface SpinnerModellistener - new listenerpublic void removeChangeListener(ChangeListener listener)
removeChangeListener in interface SpinnerModellistener - listener to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||