|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.samcrow.DisplayOptions
public class DisplayOptions
Manages the display options for the map
Nested Class Summary | |
---|---|
static interface |
DisplayOptions.DisplayChangeListener
Interface for a class that wants to be notified when the display state changes |
class |
DisplayOptions.DisplayState
Contains the state of display of various components. Waypoints: nodes that are waypoints, not destinations. Destinations: nodes that are destinations. Destination labels: labels for destinations. Links: links between nodes. Link speeds: labels indicating the speeds of links |
Field Summary | |
---|---|
private boolean[] |
defaultState
|
private javax.swing.JCheckBox |
displayDestinationLabelsBox
|
private javax.swing.JCheckBox |
displayDestinationsBox
|
private javax.swing.JLabel |
displayLabel
|
private javax.swing.JCheckBox |
displayLinksBox
|
private javax.swing.JCheckBox |
displayLinkSpeedsBox
|
private javax.swing.JCheckBox |
displayWaypointsBox
|
private DisplayOptions.DisplayChangeListener |
listener
|
private DisplayOptions.DisplayState |
state
|
static java.lang.String |
STATE_CHANGE_ACTION
|
Constructor Summary | |
---|---|
DisplayOptions(org.lekan.graphics.GraphicsProgram program,
java.lang.String borderPosition)
Initialize the set of options. |
Method Summary | |
---|---|
void |
addDisplayChangeListener(DisplayOptions.DisplayChangeListener l)
Add a DisplayChangeListener to be notified when the display state changes. It is not necessary to call this method if the GraphicsProgram passed into the constructor
implements DisplayChangeListener, because it will already have been made the listener.This class only supports one DisplayChangeListener. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STATE_CHANGE_ACTION
private javax.swing.JLabel displayLabel
private javax.swing.JCheckBox displayWaypointsBox
private javax.swing.JCheckBox displayDestinationsBox
private javax.swing.JCheckBox displayDestinationLabelsBox
private javax.swing.JCheckBox displayLinksBox
private javax.swing.JCheckBox displayLinkSpeedsBox
private boolean[] defaultState
private DisplayOptions.DisplayState state
private DisplayOptions.DisplayChangeListener listener
Constructor Detail |
---|
public DisplayOptions(org.lekan.graphics.GraphicsProgram program, java.lang.String borderPosition)
program
implements DisplayChangeListener, it will automatically be added as a listener
program
- the GraphicsProgram to add the elements toborderPosition
- NORTH, SOUTH, EAST, or WEST panel to add the elements toMethod Detail |
---|
public void addDisplayChangeListener(DisplayOptions.DisplayChangeListener l)
GraphicsProgram
passed into the constructor
implements DisplayChangeListener, because it will already have been made the listener.
l
- the listenerpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |