|
||||||||||
| 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, 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 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, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, 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. |
MapProjection |
getDataProjectionForMenu()
This gets called when the user selects the View menu item "Use Native Image Projection" |
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 boolean |
getInitialFastRendering()
Get initial fast rendering option |
protected double |
getInitialZPosition()
Get default z position to use |
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 |
boolean |
isInitDone()
have we fully initialized |
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, getUseTexture, haveMultipleFields, setAlphaFromSlider, setMultipleIsTopography, setUseTexture |
| Methods inherited from class ucar.unidata.idv.control.BaseImageControl |
|---|
doMakeAlphaSlider, getAlpha, getDataProjectionLabel, getIsRaster, 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, 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 |
| 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 DisplayControlImplpublic boolean isInitDone()
isInitDone in interface DisplayControlisInitDone 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 DisplayControlImplprotected boolean getInitialFastRendering()
getInitialFastRendering 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 - for the menu bar
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 canSaveDataInCache()
canSaveDataInCache in class DisplayControlImplpublic void writeImageXml()
public void saveDataChoiceInCache()
saveDataChoiceInCache in class DisplayControlImpl
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class ImageControlRemoteException - On badness
VisADException - On badnesspublic void scaleSliderChanged(int value)
value - new slider valuepublic void loadImageFromScreen()
public MapProjection getDataProjection()
getDataProjection in interface DisplayControlgetDataProjection in class GridDisplayControlpublic MapProjection getDataProjectionForMenu()
getDataProjectionForMenu in class DisplayControlImplpublic void reproject()
protected boolean setData(DataChoice dataChoice)
throws VisADException,
RemoteException
setData in class ImageControldataChoice - The data
RemoteException - On badness
VisADException - On badnesspublic void selectLayer(Object layer)
layer - The new layerpublic void setImageWidth(int value)
value - The new value for ImageWidthpublic int getImageWidth()
public void setImageHeight(int value)
value - The new value for ImageHeightpublic int getImageHeight()
public void resolutionChanged(TwoFacedObject tfo)
tfo - New resolutionpublic void setResolution(double value)
value - The new value for Resolutionpublic double getResolution()
public void setCurrentBounds(GeoLocationInfo value)
value - The new value for CurrentBoundspublic GeoLocationInfo getCurrentBounds()
public void setWmsInfo(WmsSelection value)
value - The new value for WmsInfopublic WmsSelection getWmsInfo()
protected String getTitle()
getTitle in class DisplayControlImpl
protected void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - List of (String) labelslegendType - For side or bottom
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
imageUpdate in interface ImageObserverimg - The imageflags - flagsx - xy - ywidth - widthheight - height
protected JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent in class DisplayControlImpllegendType - type of legend
public void setWmsInfos(List value)
value - The new value for WmsInfospublic List getWmsInfos()
public void setEnableClick(boolean value)
value - The new value for EnableClickpublic boolean getEnableAutoFetch()
public void setEnableAutoFetch(boolean value)
value - The new value for EnableAutoFetchpublic void setSelectedTime(String value)
value - The new value for SelectedTimepublic String getSelectedTime()
public void setTheLayer(Object value)
value - The new value for TheLayerpublic Object getTheLayer()
public void setScale(double value)
value - The new value for Scalepublic double getScale()
protected double getInitialZPosition()
getInitialZPosition in class DisplayControlImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||