|
||||||||||
| 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.geoloc.NavigatedMapPanel
public class NavigatedMapPanel
A navigated panel that holds a set of maps.
| 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 List |
DEFAULT_MAPS
An application can set the list of maps to use |
protected NavigatedPanel |
navigatedPanel
navigated panel |
| 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 | |
|---|---|
NavigatedMapPanel()
Default constructor. |
|
NavigatedMapPanel(boolean makeToolBar)
Default constructor. |
|
NavigatedMapPanel(boolean makeNavToolBar,
boolean makeMoveToolBar)
ctor |
|
NavigatedMapPanel(List maps)
Create a NMP with a set of maps |
|
NavigatedMapPanel(List defaultMaps,
boolean makeToolBar)
Create a NMP with a set of maps |
|
NavigatedMapPanel(List defaultMaps,
boolean makeNavToolBar,
boolean makeMoveToolBar)
Create a NMP with a set of maps |
|
NavigatedMapPanel(String defaultMap)
Construct a new NavigatedMapPanel using the specified
station selection type, map and template. |
|
| Method Summary | |
|---|---|
void |
addMapRenderer(Renderer r)
Add a renderer. |
protected void |
annotateMap(Graphics2D gNP)
Draw any annotations on the map |
protected NavigatedPanel |
doMakeMapPanel()
Factory method to make the map panel. |
protected void |
doPickPoint(PickEvent e)
A hook so subclasses can override and respond to pick point events. |
NavigatedPanel |
getNavigatedPanel()
Access to the navigated panel. |
protected ucar.unidata.geoloc.ProjectionImpl |
getProjection()
Get the projection |
ucar.unidata.geoloc.ProjectionImpl |
getProjectionImpl()
Get the projection used by the nav panel |
void |
redraw()
Redraw the graphics on the screen. |
void |
setDrawBounds(double ulx,
double uly,
double lrx,
double lry)
Set the drawing bounds. |
void |
setDrawBounds(ucar.unidata.geoloc.LatLonPoint ul,
ucar.unidata.geoloc.LatLonPoint lr)
Set the drawing bounds |
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. |
| 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 DEFAULT_MAP
public static List DEFAULT_MAPS
protected NavigatedPanel navigatedPanel
| Constructor Detail |
|---|
public NavigatedMapPanel()
public NavigatedMapPanel(boolean makeToolBar)
makeToolBar - Make the nav toolbar
public NavigatedMapPanel(boolean makeNavToolBar,
boolean makeMoveToolBar)
makeNavToolBar - make nav tool barmakeMoveToolBar - make move tool barpublic NavigatedMapPanel(String defaultMap)
NavigatedMapPanel using the specified
station selection type, map and template.
defaultMap - map to usepublic NavigatedMapPanel(List maps)
maps - default set of maps.
public NavigatedMapPanel(List defaultMaps,
boolean makeToolBar)
defaultMaps - default set of maps.makeToolBar - Make the nav toolbar
public NavigatedMapPanel(List defaultMaps,
boolean makeNavToolBar,
boolean makeMoveToolBar)
defaultMaps - default set of maps.makeNavToolBar - Make the nav toolbarmakeMoveToolBar - Make the move toolbar| Method Detail |
|---|
protected NavigatedPanel doMakeMapPanel()
public void setDrawBounds(double ulx,
double uly,
double lrx,
double lry)
ulx - upper left xuly - upper left ylrx - lower right xlry - lower right y
public void setDrawBounds(ucar.unidata.geoloc.LatLonPoint ul,
ucar.unidata.geoloc.LatLonPoint lr)
ul - upper left pointlr - lower right pointprotected void doPickPoint(PickEvent e)
e - PickEvent to processpublic NavigatedPanel getNavigatedPanel()
public void setMapRenderer(Renderer r)
r - map rendererpublic void addMapRenderer(Renderer r)
r - renderer to add.public void setProjectionImpl(ucar.unidata.geoloc.ProjectionImpl p)
p - projection to usepublic ucar.unidata.geoloc.ProjectionImpl getProjectionImpl()
public void redraw()
protected void annotateMap(Graphics2D gNP)
gNP - The Graphics to draw intoprotected ucar.unidata.geoloc.ProjectionImpl getProjection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||