| 
 | ||||||||||
| 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.PlanViewControl
ucar.unidata.idv.control.ImagePlanViewControl
edu.wisc.ssec.mcidasv.control.ImagePlanViewControl
public class ImagePlanViewControl
ImagePlanViewControl with some McIDAS-V
 specific extensions. Namely parameter sets and support for inverted 
 parameter defaults.
| Nested Class Summary | |
|---|---|
| private  class | ImagePlanViewControl.MyTabbedPaneHolds a JFreeChart histogram of image values. | 
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.PlanViewControl | 
|---|
| PlanViewControl.VerticalRangeWidget | 
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl | 
|---|
| DisplayControlImpl.SideLegendLabel | 
| Field Summary | |
|---|---|
| private static String | ATTR_DAY | 
| private static String | ATTR_NAME | 
| private static String | ATTR_POS | 
| private static String | ATTR_SERVER | 
| private static String | ATTR_TIME | 
| private static String | ATTR_UNIT | 
| protected static String | CMD_NEWFOLDERCommand for connecting | 
| protected static String | CMD_NEWPARASET | 
| private  JPanel | contents | 
| private  DataSourceImpl | dataSource | 
| private  JTextField | folderFldInstall new folder fld | 
| private  McIDASVHistogramWrapper | histoWrapper | 
| private  FlatField | image | 
| private static XmlResourceCollection | imageDefaultsHolds the ADDE servers and groups | 
| private static Document | imageDefaultsDocumentThe user imagedefaults xml document | 
| private static Element | imageDefaultsRootThe user imagedefaults xml root | 
| private  Node | lastCat | 
| private static Element | lastClicked | 
| private static org.slf4j.Logger | logger | 
| private  String | newCompName | 
| private static String | newFolder | 
| private  JButton | newFolderBtn | 
| private  JButton | newSetBtn | 
| private  JFrame | saveWindowsave parameter set | 
| private  JComponent | statusCompStatus bar component | 
| private  JLabel | statusLabelShows the status | 
| private static String | TAG_DEFAULT | 
| private static String | TAG_FOLDER | 
| private  JPanel | treePanelHolds the current save set tree | 
| private  XmlTree | xmlTree | 
| Fields inherited from class ucar.unidata.idv.control.PlanViewControl | 
|---|
| currentLevel, currentLevels, currentSlice, datachoice, haveEnsemble, levelReadout, MACRO_LEVEL, SHARE_LEVEL | 
| 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 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 | |
|---|---|
| ImagePlanViewControl() | |
| Method Summary | |
|---|---|
| private  void | addToContents(JComponent comp)Remove the currently display gui and insert the given one. | 
| protected  void | contrastStretch(double low,
                               double high) | 
| private  void | doDeleteRequest(Node node) | 
|  Container | doMakeContents()Called by doMakeWindow in DisplayControlImpl, which then calls its doMakeMainButtonPanel(), which makes more buttons. | 
| private  void | doRename(Element node) | 
|  DataSourceImpl | getDataSource() | 
| private  List | getFolders() | 
| protected  JComponent | getHistogramTabComponent() | 
| protected  XmlResourceCollection | getImageDefaults()Get the xml resource collection that defines the image default xml | 
| protected  void | getSaveMenuItems(List items,
                                 boolean forMenuBar)Add in the menu items for the save and export display template | 
|  boolean | init(DataChoice dataChoice)Initialize this instance according to a data choice. | 
| private  Node | makeNewFolder() | 
| private  Hashtable | makeParameterValues() | 
| private  boolean | makePopupMenu(XmlTree theTree,
                           Element node,
                           JPopupMenu popup)Create and popup a command menu for when the user has clicked on the given xml node. | 
| private  void | makeXmlTree()Just creates an empty XmlTree | 
|  void | moveParameterSet(Element parent,
                                 Element newFolder) | 
| private  void | newComponentError(String comp) | 
|  void | popupPersistImageParameters() | 
|  void | popupSaveImageParameters() | 
| private  void | removeNode(Element node) | 
|  void | resetColorTable() | 
|  void | saveDataToLocalDisk() | 
|  Element | saveParameterSet() | 
|  boolean | setData(DataChoice dataChoice)Sets the data associated with this instance. | 
| private  void | setInitialHistogramRange()Take out the histogram-related stuff that was in doMakeContents and put it in a standalone method, so we can wait and call it only after the histogram is actually initialized. | 
|  void | setRange(Range newRange)Set the range for the color table. | 
| private  void | setStatus(String msg) | 
| private  void | showSaveDialog() | 
| Methods inherited from class ucar.unidata.idv.control.ImagePlanViewControl | 
|---|
| applyTextureQuality, createPlanDisplay, getAllowSmoothing, getDataProjectionLabel, getInitialColorTable, getInitialRange, getIsRaster, getSkipWidgetLabel, getSliceForDisplay | 
| 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 | 
|---|
private static final org.slf4j.Logger logger
private static final String TAG_FOLDER
private static final String TAG_DEFAULT
private static final String ATTR_NAME
private static final String ATTR_SERVER
private static final String ATTR_POS
private static final String ATTR_DAY
private static final String ATTR_TIME
private static final String ATTR_UNIT
protected static final String CMD_NEWFOLDER
protected static final String CMD_NEWPARASET
private JFrame saveWindow
private static String newFolder
private XmlTree xmlTree
private JTextField folderFld
private JPanel treePanel
private static Element imageDefaultsRoot
private static Document imageDefaultsDocument
private static XmlResourceCollection imageDefaults
private Node lastCat
private static Element lastClicked
private JButton newFolderBtn
private JButton newSetBtn
private String newCompName
private JLabel statusLabel
private JComponent statusComp
private JPanel contents
private DataSourceImpl dataSource
private FlatField image
private McIDASVHistogramWrapper histoWrapper
| Constructor Detail | 
|---|
public ImagePlanViewControl()
| Method Detail | 
|---|
public boolean init(DataChoice dataChoice)
             throws VisADException,
                    RemoteException
ucar.unidata.idv.control.DisplayControlImplInitialize this instance according to a data choice. Subclasses should
 override this method.  Overridding methods should probably invoke DisplayControlImpl.setData(DataChoice) as part of their initialization procedure --
 although it is unclear when this is actually necessary.
This implementation simply returns true.
init in class PlanViewControldataChoice - A data choice or null.
true if and only if this instance
                         was correctly initialized by the data choice.
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.protected XmlResourceCollection getImageDefaults()
public Container doMakeContents()
doMakeContents in class PlanViewControlprivate void setInitialHistogramRange()
protected JComponent getHistogramTabComponent()
protected void contrastStretch(double low,
                               double high)
public boolean setData(DataChoice dataChoice)
                throws VisADException,
                       RemoteException
ucar.unidata.idv.control.DisplayControlImplSets the data associated with this instance.  This method gets called
 at initialization or when the user has selected a new
 DataChoice through the data selector
 control.
In order to implement subclasses of this class that behave correctly, you should know that this implementation uses overridable methods of this class in the following way:
DataInstance object by invoking
 DisplayControlImpl.doMakeDataInstance(DataChoice) with the given data choice
 argument.  If the object is null, then this implementation
 immediately returns false.
     DisplayControlImpl.setDataInstance(DataInstance) with the DataInstance object from the previous step.DisplayControlImpl.setTitle(String) with the return
     value from DisplayControlImpl.getTitle().DisplayControlImpl.checkFlag(int) with DisplayControlBase.FLAG_CONTOUR returns
     true, then DisplayControlImpl.setContourInfo(ContourInfo) is
     invoked with the return value from DisplayControlImpl.getContourInfo().DisplayControlImpl.checkFlag(int) with DisplayControlBase.FLAG_COLORTABLE returns
     true, then
     DisplayControlImpl.getRange() returns null or DisplayControlImpl.getHaveInitialized() returns true, then
         DisplayControlImpl.setRange(Range) is invoked with the return value from
         DisplayControlImpl.getInitialRange() if it is non-null.
         DisplayControlImpl.getHaveInitialized() returns true and
         the private field colorTable is
         non-null, then DisplayControlImpl.setColorTable(ColorTable)
         is invoked with the private field (there doesn't appear to be
         any way to obtain the private field); otherwise,
         invokes DisplayControlImpl.setColorTable(ColorTable) on the return value
         from DisplayControlImpl.getInitialColorTable() when given DisplayControlImpl.paramName.
         
setData in class ImagePlanViewControldataChoice - The DataChoice to use.
VisADException
RemoteException
public void setRange(Range newRange)
              throws RemoteException,
                     VisADException
ucar.unidata.idv.control.DisplayControlImpl
setRange in class DisplayControlImplnewRange - range to use
RemoteException - some RMI exception occured
VisADException - error setting the range in VisADpublic void resetColorTable()
protected void getSaveMenuItems(List items,
                                boolean forMenuBar)
ucar.unidata.idv.control.DisplayControlImpl
getSaveMenuItems in class DisplayControlImplitems - List of menu items to add intoforMenuBar - if this is for the menubarpublic void popupPersistImageParameters()
private Hashtable makeParameterValues()
public void saveDataToLocalDisk()
public void popupSaveImageParameters()
private void showSaveDialog()
private void newComponentError(String comp)
private void setStatus(String msg)
private void removeNode(Element node)
private Node makeNewFolder()
private void makeXmlTree()
private List getFolders()
private void doDeleteRequest(Node node)
private boolean makePopupMenu(XmlTree theTree,
                              Element node,
                              JPopupMenu popup)
theTree - The XmlTree object displaying the current xml document.node - The xml node the user clicked on.popup - The popup menu to put the menu items in.
public void moveParameterSet(Element parent,
                             Element newFolder)
private void doRename(Element node)
private void addToContents(JComponent comp)
comp - The new gui.public DataSourceImpl getDataSource()
public Element saveParameterSet()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||