|
||||||||||
| 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.GridDisplayControl
ucar.unidata.idv.control.BaseImageControl
ucar.unidata.idv.control.ImageControl
ucar.unidata.idv.control.WMSControl
public class WMSControl
Class for controlling the display of color images.
| Nested Class Summary | |
|---|---|
static class |
WMSControl.ColorExclude
Class ColorExclude Holds information to exclude certain colors |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.idv.control.BaseImageControl |
|---|
EMPTY_IMAGE, EMPTY_RGB_IMAGE, emptyImage, emptyRGBImage |
| Fields inherited from class ucar.unidata.idv.control.GridDisplayControl |
|---|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, controlContext, ctw, cw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, settingVisibility, sharables, showNoteText, skipSlider, srw, version, viewManagers |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| 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, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
WMSControl()
Default constructor. |
|
WMSControl(List wmsSelections,
String title)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
canSaveDataInCache()
See if this can save data in cache. |
protected Container |
doMakeContents()
Make the gui |
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
make the data instance |
GeoLocationInfo |
getCurrentBounds()
Get the CurrentBounds property. |
MapProjection |
getDataProjection()
Even though we do have data that holds a MapProjection we don't want to provide it so we return null. |
protected String |
getDetailsContents()
Get the contents of the details html |
boolean |
getEnableAutoFetch()
Get the EnableAutoFetch property. |
protected JComponent |
getExtraLegendComponent(int legendType)
Assume that any display controls that have a color table widget will want the color table to show up in the legend. |
int |
getImageHeight()
Get the ImageHeight property. |
int |
getImageWidth()
Get the ImageWidth property. |
protected void |
getLegendLabels(List labels,
int legendType)
Get the legend labesl |
double |
getResolution()
Get the Resolution property. |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
double |
getScale()
Get the Scale property. |
String |
getSelectedTime()
Get the SelectedTime property. |
Object |
getTheLayer()
Get the TheLayer property. |
protected String |
getTitle()
Get the window title |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Add to view menu |
WmsSelection |
getWmsInfo()
Get the WmsInfo property. |
List |
getWmsInfos()
Get the WmsInfos property. |
void |
goToAddress()
Go the a street address |
void |
handleDisplayChanged(DisplayEvent event)
Listen for DisplayEvents |
boolean |
imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
Handle the image update |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; This method is called from inside DisplayControlImpl init(several args). |
void |
initDone()
initdone |
void |
loadImageFromScreen()
Load the iamge from screen bounds |
void |
projectionChanged()
Method to call if projection changes. |
void |
reloadDataSource()
Overwrite base class method to do our own style of reload |
void |
reproject()
Reproject the image |
void |
resolutionChanged(TwoFacedObject tfo)
User changed resolution |
void |
saveDataChoiceInCache()
Save the data choice into the cache data source |
void |
scaleSliderChanged(int value)
Handle the slider changing |
void |
selectLayer(Object layer)
Set the wmsinfo |
void |
setCurrentBounds(GeoLocationInfo value)
Set the CurrentBounds property. |
protected boolean |
setData(DataChoice dataChoice)
set the data |
void |
setEnableAutoFetch(boolean value)
Set the EnableImageFetch property. |
void |
setEnableClick(boolean value)
Deprecated. use setEnableAutoFetch |
void |
setImageHeight(int value)
Set the ImageHeight property. |
void |
setImageWidth(int value)
Set the ImageWidth property. |
void |
setResolution(double value)
Set the Resolution property. |
void |
setScale(double value)
Set the Scale property. |
void |
setSelectedTime(String value)
Set the SelectedTime property. |
void |
setTheLayer(Object value)
Set the TheLayer property. |
void |
setWmsInfo(WmsSelection value)
Set the WmsInfo property. |
void |
setWmsInfos(List value)
Set the WmsInfos property. |
protected boolean |
shouldAddControlListener()
Signal base class to add this as a projection control listener |
protected boolean |
shouldAddDisplayListener()
Signal base class to add this as a display listener |
void |
viewpointChanged()
Noop for the ControlListener interface |
void |
writeImageXml()
Ask the user for an image xml file name and write the image to it |
| Methods inherited from class ucar.unidata.idv.control.ImageControl |
|---|
getControlWidgets, getImageFlags, getInitialColorTable, getMultipleIsTopography, haveMultipleFields, setAlphaFromSlider, setMultipleIsTopography |
| Methods inherited from class ucar.unidata.idv.control.BaseImageControl |
|---|
doMakeAlphaSlider, getAlpha, getDataProjectionLabel, getSkipWidgetLabel, getWorkingImage, setAlpha, setInverseAlphaFromSlider, showSkipFactorSlider |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getScreenCenter, getSelectedStation, isLeftButtonDown, logException, logException, makeEarthLocation, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, 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.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId |
| Constructor Detail |
|---|
public WMSControl()
public WMSControl(List wmsSelections,
String title)
wmsSelections - The list of wms infostitle - The title| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class ImageControldataChoice - the DataChoice of the moment.
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void initDone()
initDone in class DisplayControlImpl
protected DataInstance doMakeDataInstance(DataChoice dataChoice)
throws RemoteException,
VisADException
doMakeDataInstance in class GridDisplayControldataChoice - the data choice
RemoteException - On badness
VisADException - On badnessprotected boolean shouldAddDisplayListener()
shouldAddDisplayListener in class DisplayControlImplprotected boolean shouldAddControlListener()
shouldAddControlListener in class DisplayControlImplpublic void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class DisplayControlImplpublic void viewpointChanged()
viewpointChanged in class DisplayControlImplprotected String getDetailsContents()
getDetailsContents in class DisplayControlImplpublic void handleDisplayChanged(DisplayEvent event)
handleDisplayChanged in class DisplayControlImplevent - The eventpublic void goToAddress()
public void reloadDataSource()
throws RemoteException,
VisADException
reloadDataSource in class DisplayControlImplRemoteException - On badness
VisADException - On badness
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - List of itesforMenuBar - f