|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.MapDisplayControl
public class MapDisplayControl
A control for displaying map lines.
| Nested Class Summary | |
|---|---|
static class |
MapDisplayControl.LatLonState
This class holds the state associated with a given lat/lon |
static class |
MapDisplayControl.MapState
This class holds the state associated with a given map |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static Color |
DEFAULT_MAP_COLOR
_more_ |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
MapDisplayControl()
Default Constructor. |
|
MapDisplayControl(MapData mapData)
Special constructor for creating a map display for a particular MapData |
|
MapDisplayControl(MapViewManager mapViewManager,
MapInfo mapInfo)
Special constructor for creating a map display for a particular MapViewManager |
|
| Method Summary | |
|---|---|
Container |
doMakeContents()
Make the UI contents for this control. |
void |
doRemove()
Clear out any lingering references |
boolean |
getApplyChangesToAllLatLon()
Get the ApplyChangesToAllLatLon property. |
boolean |
getApplyChangesToAllMaps()
Get the ApplyChangesToAllMaps property. |
protected boolean |
getDefaultFastRendering()
What is the default fast rendering value |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
Add the relevant edit menu items into the list |
protected void |
getFileMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
String |
getInitialMap()
Get the InitialMap property. |
String |
getInitialMapDescription()
Get the InitialMapDescription property. |
protected double |
getInitialZPosition()
Get default z position to use |
boolean |
getIsDefaultMap()
Get the IsDefaultMap property. |
MapDisplayControl.LatLonState |
getLatState()
Get the object that holds the latitude state |
void |
getLegendLabels(List labels,
int legendType)
Append any label information to the list of labels. |
MapDisplayControl.LatLonState |
getLonState()
Get the object that holds the longitude state |
double |
getMapPosition()
Get the MapPosition property. |
List |
getMapStates()
Get the MapStates property. |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
Add the relevant File->Save menu items into the list |
boolean |
getShowInDisplayList()
Get the ShowInDisplayList property. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Add the relevant view menu items into the list |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; also calls code to made its Displayable. |
void |
loadNewMap(MapDisplayControl newMap)
Clear the current state and copy the state held by the given newMap |
void |
merge(MapDisplayControl that)
Merge the maps contained by that into this |
void |
projectionChanged()
Method to call if projection changes. |
void |
saveToPlugin()
Turn the map state held by this object into xml and write it out as the user's map preference. |
protected boolean |
selectMap()
Ask the user to choose a map file and try to add it. |
void |
setApplyChangesToAllLatLon(boolean value)
Set the ApplyChangesToAllLatLon property. |
void |
setApplyChangesToAllMaps(boolean value)
Set the ApplyChangesToAllMaps property. |
void |
setDisplayVisibility(boolean on)
Overwrite base class method so we can apply the visibility changes to the maps. |
void |
setInitializeAsDefault(boolean value)
Set the initializeAsDefault property. |
void |
setInitialMap(String value)
Set the InitialMap property. |
void |
setInitialMapDescription(String value)
Set the InitialMapDescription property. |
void |
setIsDefaultMap(boolean value)
Set the IsDefaultMap property. |
void |
setLatState(MapDisplayControl.LatLonState value)
Set the object that holds the latitude state |
void |
setLonState(MapDisplayControl.LatLonState value)
Set the object that holds the longitude state |
void |
setMapPosition(double value)
Set the MapPosition property. |
void |
setMapStates(List value)
Set the MapStates property. |
void |
setShowInDisplayList(boolean value)
Set the ShowInDisplayList property. |
protected boolean |
shouldApplyFastRendering()
This method can be overwritten by the derived classes that do not want the general application of the fast rendering flag. |
protected boolean |
xxxshouldAddControlListener()
_more_ |
void |
xxxviewpointChanged()
_more_ |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.idv.DisplayControl |
|---|
getTmpProperty, putTmpProperty, removeTmpProperty |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
| Field Detail |
|---|
public static final Color DEFAULT_MAP_COLOR
| Constructor Detail |
|---|
public MapDisplayControl()
public MapDisplayControl(MapViewManager mapViewManager,
MapInfo mapInfo)
mapViewManager - The map view manager this map display is
the default map formapInfo - Holds the map infopublic MapDisplayControl(MapData mapData)
mapData - The mapData may be null. If null, then the user
is prompted to choose a map.| Method Detail |
|---|
protected boolean xxxshouldAddControlListener()
public void xxxviewpointChanged()
public void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - in/out list of labelslegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDpublic void loadNewMap(MapDisplayControl newMap)
newMap - The map display we copy from
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment -
not used yet; can be null.
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void merge(MapDisplayControl that)
that - The other display control to merge its mapspublic void setDisplayVisibility(boolean on)
setDisplayVisibility in interface DisplayControlsetDisplayVisibility in class DisplayControlImplon - Is visible
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legend
protected void getEditMenuItems(List items,
boolean forMenuBar)
getEditMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legend
protected void getFileMenuItems(List items,
boolean forMenuBar)
getFileMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legend
protected void getSaveMenuItems(List items,
boolean forMenuBar)
getSaveMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legendprotected boolean selectMap()
public void saveToPlugin()
public Container doMakeContents()
doMakeContents in class DisplayControlImplpublic void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class DisplayControlImplpublic void setInitialMap(String value)
value - The new value for InitialMappublic String getInitialMap()
public void setInitialMapDescription(String value)
value - The new value for InitialMapDescriptionpublic String getInitialMapDescription()
protected boolean shouldApplyFastRendering()
shouldApplyFastRendering in class DisplayControlImplprotected boolean getDefaultFastRendering()
getDefaultFastRendering in class DisplayControlImplpublic void setMapStates(List value)
value - The new value for MapStatespublic List getMapStates()
public MapDisplayControl.LatLonState getLatState()
public void setLatState(MapDisplayControl.LatLonState value)
value - The new latitude statepublic MapDisplayControl.LatLonState getLonState()
public void setLonState(MapDisplayControl.LatLonState value)
value - The new long. statepublic void setIsDefaultMap(boolean value)
value - The new value for IsDefaultMap
public void doRemove()
throws RemoteException,
VisADException
doRemove in interface DisplayControldoRemove in class DisplayControlImplRemoteException - remote display problem
VisADException - local display problempublic void setInitializeAsDefault(boolean value)
value - The valuepublic boolean getIsDefaultMap()
public void setMapPosition(double value)
value - The new value for MapPositionpublic double getMapPosition()
public void setShowInDisplayList(boolean value)
setShowInDisplayList in class DisplayControlImplvalue - The new value for ShowInDisplayListpublic boolean getShowInDisplayList()
getShowInDisplayList in interface DisplayControlgetShowInDisplayList in class DisplayControlImplpublic void setApplyChangesToAllMaps(boolean value)
value - The new value for ApplyChangesToAllMapspublic boolean getApplyChangesToAllMaps()
public void setApplyChangesToAllLatLon(boolean value)
value - The new value for ApplyChangesToAllLatLonpublic boolean getApplyChangesToAllLatLon()
protected double getInitialZPosition()
getInitialZPosition in class DisplayControlImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||