|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.view.station.StationLocationMap
public class StationLocationMap
A navigated panel with 2 renderers - a map renderer and a station location renderer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
DEFAULT_MAP
name of default map |
static String |
LABEL_ID
ID label |
static String |
LABEL_LAT
latitude label |
static String |
LABEL_LON
longitude label |
static String |
LABEL_NAME
Name label |
static String |
SELECTED_PROPERTY
Property for selecting a station |
static String |
TEMPLATE_ID
Property to use the station ID for the station label |
static String |
TEMPLATE_NAME
template for name |
static String |
TEMPLATE_NAME_AND_ID
template for name and id |
static String |
UNSELECTED_PROPERTY
Property for unselecting a station |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StationLocationMap()
Default constructor. |
|
StationLocationMap(boolean multipleSelect)
Construct a new StationLocationMap using the specified
station selection type. |
|
StationLocationMap(boolean multipleSelect,
Renderer theMapRender)
Create a StationLocationMap |
|
StationLocationMap(boolean multipleSelect,
Renderer theMapRender,
String template)
Create a StationLocationMap |
|
StationLocationMap(boolean multipleSelect,
String defaultMap)
Construct a new StationLocationMap using the specified
station selection type and map. |
|
StationLocationMap(boolean multipleSelect,
String defaultMap,
String template)
Construct a new StationLocationMap using the specified
station selection type, map and template. |
|
StationLocationMap(String template)
Construct a new StationLocationMap using the specified
label type. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener. |
void |
addPropertyChangeListener(String name,
PropertyChangeListener listener)
Adds a property change listener for a named property. |
void |
clearStations()
Convenience method to clear out the data in the station renderer |
protected void |
doPickPoint(PickEvent e)
Process the PickEvent. |
boolean |
getDeclutter()
Determine whether decluttering is on for this map. |
Renderer |
getMapRender()
Get the map renderer for this object |
boolean |
getMultipleSelect()
See if this supports multiple station selection. |
NavigatedPanel |
getNavigatedPanel()
Access to the navigated panel. |
List |
getSelectedStations()
Get the list of selected stations. |
StationLocationRenderer |
getStationLocationRenderer()
Access to the station location renderer |
List |
getStations()
Get the list of stations |
boolean |
getWasDoubleClick()
See if a double click happened. |
boolean |
isFocusTraversable()
Get the isFocusTransverable property |
boolean |
isMultipleSelect()
See if this map allows multiple station selection |
static void |
main(String[] args)
test with ucar.unidata.view.station.StationLocationMap |
void |
redraw()
Redraw the graphics on the screen. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener. |
void |
removePropertyChangeListener(String name,
PropertyChangeListener listener)
Removes a property change listener for a named property. |
protected void |
selectAll()
Select all visible stations. |
void |
setDeclutter(boolean declut)
Change the state of decluttering |
void |
setMapRenderer(Renderer r)
Set the map renderer for this object |
void |
setProjectionImpl(ucar.unidata.geoloc.ProjectionImpl p)
Set the projection to use for this map. |
void |
setSelectedStations(List stns)
Set the list of selected stations. |
void |
setStationRenderer(Renderer r)
Set the station location renderer. |
void |
setStations(List stns)
Set the list of stations to be displayed. |
void |
setStations(List stns,
boolean declutter)
Set the list of stations to be displayed. |
void |
setStations(List stns,
List selectedStations,
boolean declutter)
Set the list of stations to be displayed. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SELECTED_PROPERTY
public static final String UNSELECTED_PROPERTY
public static final String DEFAULT_MAP
public static final String LABEL_ID
public static final String LABEL_NAME
public static final String LABEL_LAT
public static final String LABEL_LON
public static final String TEMPLATE_ID
public static final String TEMPLATE_NAME
public static final String TEMPLATE_NAME_AND_ID
| Constructor Detail |
|---|
public StationLocationMap()
public StationLocationMap(String template)
StationLocationMap using the specified
label type. Use default station selection and map.
template - The String template to use for displaying station labels.public StationLocationMap(boolean multipleSelect)
StationLocationMap using the specified
station selection type. Use default labeling and map.
multipleSelect - true to allow multiple station selections
public StationLocationMap(boolean multipleSelect,
String defaultMap)
StationLocationMap using the specified
station selection type and map. Use default labeling.
multipleSelect - true to allow multiple station selectionsdefaultMap - map to use
public StationLocationMap(boolean multipleSelect,
String defaultMap,
String template)
StationLocationMap using the specified
station selection type, map and template.
multipleSelect - true to allow multiple station selectionsdefaultMap - map to usetemplate - The String template to use for displaying station labels.
public StationLocationMap(boolean multipleSelect,
Renderer theMapRender)
multipleSelect - true if multiple selection is allowedtheMapRender - the renderer for the map
public StationLocationMap(boolean multipleSelect,
Renderer theMapRender,
String template)
multipleSelect - true if multiple selection is allowedtheMapRender - the renderer for the maptemplate - the template for the display of the data| Method Detail |
|---|
protected void doPickPoint(PickEvent e)
PickEvent.
e - PickEvent to processpublic boolean isFocusTraversable()
isFocusTraversable in class Componentprotected void selectAll()
public boolean isMultipleSelect()
public List getSelectedStations()
List of stations that have been selected.public NavigatedPanel getNavigatedPanel()
public void setMapRenderer(Renderer r)
r - map rendererpublic Renderer getMapRender()
public StationLocationRenderer getStationLocationRenderer()
public void setStationRenderer(Renderer r)
r - station location rendererpublic void setSelectedStations(List stns)
stns - List of stations to set selected.public void setStations(List stns)
stns - list of stations
public void setStations(List stns,
boolean declutter)
declutter
stns - list of stationsdeclutter - display will be decluttered if true, not if false
public void setStations(List stns,
List selectedStations,
boolean declutter)
declutter
stns - list of stationsselectedStations - already selected stationsdeclutter - display will be decluttered if true, not if falsepublic List getStations()
public void setDeclutter(boolean declut)
declut - station display will be decluttered if true, not if
falsepublic void clearStations()
public boolean getDeclutter()
public void setProjectionImpl(ucar.unidata.geoloc.ProjectionImpl p)
p - projection to usepublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in class Containerlistener - The property change listener.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in class Componentlistener - The property change listener.
public void addPropertyChangeListener(String name,
PropertyChangeListener listener)
addPropertyChangeListener in class Containername - The name of the property.listener - The property change listener.
public void removePropertyChangeListener(String name,
PropertyChangeListener listener)
removePropertyChangeListener in class Componentname - The name of the property.listener - The property change listener.public void redraw()
public boolean getMultipleSelect()
public static void main(String[] args)
args - public boolean getWasDoubleClick()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||