|
||||||||||
| 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.multi.MultiDisplayHolder
public class MultiDisplayHolder
A DisplayControl for station models
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary |
|---|
| 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 | |
|---|---|
MultiDisplayHolder()
Default ctor |
|
| Method Summary | |
|---|---|
protected void |
addControlsToMenu(JMenu newMenu,
DisplayGroup displayGroup)
Add the display control entries to the menu |
void |
addFieldToChartWrapper(ChartWrapper chartWrapper)
Add field |
void |
addGroup(DisplayGroup displayGroup)
Add the group |
void |
addGroupNewMenu(DisplayGroup displayGroup,
JMenu newMenu)
Add the new menu items for the given group. |
void |
addStationDisplay(NamedStationTable stationTable,
ControlDescriptor cd,
DisplayGroup displayGroup)
Add the new station location display control |
void |
componentChanged()
Some component changed. |
protected void |
createComponent(String type,
DisplayGroup displayGroup)
Create the component |
void |
createComponentIn(Object[] args)
Utility to create a component. |
void |
createComponentInCurrentTab(String type)
Create the component. |
void |
createComponentInNewTab(String type)
Create the component. |
DisplayComponent |
createDisplayComponent(String addType,
List dataChoices,
DisplayGroup displayGroup)
Create the display component |
void |
createDisplayGroup()
Create the display group. |
DisplayGroup |
createDisplayGroup(String groupName)
Find or creaate the group |
protected IdvWindow |
createIdvWindow()
Override base class method to create a new window. |
protected Container |
doMakeContents()
Make the UI contents for this control. |
protected JMenuBar |
doMakeMenuBar()
Make the menu bar. |
void |
doRemove()
Remove the display control |
protected JInternalFrame |
findFrameForGroup(DisplayGroup displayGroup)
Find the internal frame for the given group |
protected int |
findIdxForGroup(DisplayGroup displayGroup)
Find the tab index for the group |
String |
formatValue(double v)
A utility to format a value using the display conventions |
DisplayGroup |
getCurrentDisplayGroup()
Get te display group in the current tab |
DisplayGroup |
getDisplayGroup(String groupName)
Find the display group by name |
List |
getDisplayGroups()
Get the DisplayGroups property. |
protected DisplayTree |
getDisplayTree()
Return the display tree |
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 |
getInitialComponentClass()
Get the AddType property. |
void |
getLegendLabels(List labels,
int legendType)
Get the extra label used for the legend. |
protected String |
getLowerComponentName()
Get the component name. |
List |
getPrototypes()
Instantiate the list of prototype charts |
protected String |
getUpperComponentName()
Get the component name. |
boolean |
getUseDesktop()
Get the UseDesktop property. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Add the relevant edit menu items into the list |
protected void |
handleWindowClosing()
Don't close the window |
void |
importDisplayControl(DisplayControlImpl displayControl)
Import the given display control into me |
boolean |
init(List choices)
Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far). |
void |
initAfterUnPersistence(ControlContext vc,
Hashtable properties)
Called by the IntegratedDataViewer to
initialize after this control has been unpersisted |
void |
initDone()
Gets called when all initialization is complete |
void |
initWindow(IdvWindow window)
Initialize the window. |
protected void |
loadData()
Load data into the Displayable. |
void |
makeControlsMenu(JMenu controlsMenu,
DisplayGroup displayGroup)
Populate the menu |
void |
makeLocationsMenu(JMenu locationsMenu,
DisplayGroup displayGroup)
Make the menu for adding new location displays |
void |
newName(DisplayGroup displayGroup,
String oldName)
The group has a new name |
void |
removeDisplayables(List displayables)
Remove the list of displayables |
void |
removeDisplayComponent(DisplayComponent displayComponent)
Remove the component. |
void |
removeDisplayGroup(DisplayGroup displayGroup)
Remove the display group |
void |
setDisplayGroups(List value)
Set the DisplayGroups property. |
void |
setInitialComponentClass(String value)
Set the AddType property. |
void |
setTimeInMainDisplay(double timeValue)
User clicked on a chart |
void |
setTitle(String title)
Set the title of the window if it has been created. |
void |
setUseDesktop(boolean value)
Set the UseDesktop property. |
protected boolean |
shouldAddAnimationListener()
A hook to allow derived classes to tell us to add this as an animation listener |
protected boolean |
shouldShowInDisplayList()
Should this show up in the list of displays |
void |
showDisplayComponent(DisplayComponent displayComponent)
Show the tab the group is in |
void |
showDisplayTree()
Show the manage dialog |
protected void |
timeChanged(Real time)
Respond to a timeChange event |
void |
toggleUI()
Switch between tabbed pane and internal frame |
void |
viewManagerDestroyed(ViewManager viewManager)
Called when a ViewManager which holds the display is destoryed We don't remove ourselves here because this DisplayControl can stand alone. |
| 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 MultiDisplayHolder()
| Method Detail |
|---|
public void initDone()
initDone in class DisplayControlImpl
public boolean init(List choices)
throws VisADException,
RemoteException
init in class DisplayControlImplchoices - the DataChoice of the moment.
VisADException - some problem creating a VisAD object
RemoteException - some problem creating a remote VisAD object
public void initAfterUnPersistence(ControlContext vc,
Hashtable properties)
IntegratedDataViewer to
initialize after this control has been unpersisted
initAfterUnPersistence in interface DisplayControlinitAfterUnPersistence in class DisplayControlImplvc - The context in which this control existsproperties - Properties that may hold thingspublic void componentChanged()
public void showDisplayTree()
protected DisplayTree getDisplayTree()
public void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - labels to append tolegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDprotected JInternalFrame findFrameForGroup(DisplayGroup displayGroup)
displayGroup - The group
protected int findIdxForGroup(DisplayGroup displayGroup)
displayGroup - The group
public String formatValue(double v)
v - The value
public void newName(DisplayGroup displayGroup,
String oldName)
displayGroup - groupoldName - the old namepublic void toggleUI()
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 legendpublic void createComponentIn(Object[] args)
args - argsprotected String getLowerComponentName()
protected String getUpperComponentName()
public void createComponentInNewTab(String type)
type - type of componentpublic void createDisplayGroup()
public void createComponentInCurrentTab(String type)
type - type of component
protected void createComponent(String type,
DisplayGroup displayGroup)
type - type of componentdisplayGroup - The display grouppublic void addFieldToChartWrapper(ChartWrapper chartWrapper)
chartWrapper - chartpublic List getPrototypes()
protected void addControlsToMenu(JMenu newMenu,
DisplayGroup displayGroup)
newMenu - Menu to add todisplayGroup - The group to add the display control to
public void makeControlsMenu(JMenu controlsMenu,
DisplayGroup displayGroup)
controlsMenu - menu to populatedisplayGroup - Group to add the new display to
public void makeLocationsMenu(JMenu locationsMenu,
DisplayGroup displayGroup)
locationsMenu - menu to add todisplayGroup - group to add new display toprotected IdvWindow createIdvWindow()
createIdvWindow in class DisplayControlImplpublic void initWindow(IdvWindow window)
initWindow in class DisplayControlImplwindow - The window to initprotected void handleWindowClosing()
handleWindowClosing in class DisplayControlImpl
public void addStationDisplay(NamedStationTable stationTable,
ControlDescriptor cd,
DisplayGroup displayGroup)
stationTable - The locationscd - The control descriptordisplayGroup - The group to add the new display to
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 legendpublic void importDisplayControl(DisplayControlImpl displayControl)
displayControl - The control to importpublic DisplayGroup getCurrentDisplayGroup()
public void showDisplayComponent(DisplayComponent displayComponent)
displayComponent - The component to show
public void addGroupNewMenu(DisplayGroup displayGroup,
JMenu newMenu)
displayGroup - The group to add the display tonewMenu - The menuprotected JMenuBar doMakeMenuBar()
doMakeMenuBar in class DisplayControlImpl
public DisplayComponent createDisplayComponent(String addType,
List dataChoices,
DisplayGroup displayGroup)
addType - The thing to adddataChoices - datadisplayGroup - group for display component
public void addGroup(DisplayGroup displayGroup)
displayGroup - The display grouppublic DisplayGroup createDisplayGroup(String groupName)
groupName - group name
public DisplayGroup getDisplayGroup(String groupName)
groupName - name
protected boolean shouldAddAnimationListener()
shouldAddAnimationListener in class DisplayControlImplprotected void timeChanged(Real time)
timeChanged in class DisplayControlImpltime - new timepublic void setTimeInMainDisplay(double timeValue)
timeValue - The time
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Error
public void viewManagerDestroyed(ViewManager viewManager)
throws VisADException,
RemoteException
viewManagerDestroyed in interface DisplayControlviewManagerDestroyed in class DisplayControlImplviewManager - The view manager that was destroyed
RemoteException - Java RMI error
VisADException - VisAD error
public void doRemove()
throws RemoteException,
VisADException
doRemove in interface DisplayControldoRemove in class DisplayControlImplRemoteException - On badness
VisADException - On badnesspublic void removeDisplayComponent(DisplayComponent displayComponent)
displayComponent - The componentpublic void removeDisplayables(List displayables)
displayables - List of displayables to remove from the main displaypublic void removeDisplayGroup(DisplayGroup displayGroup)
displayGroup - The display groupprotected void loadData()
Displayable. This is called from
DisplayControlImpl.setData(DataChoice) and whenever the projection changes.
Subclasses should override this to do whatever they need to.
This implementation uses a
PointDataInstance
to manager the data.
DisplayControlImpl.doMakeDataInstance(DataChoice)public void setDisplayGroups(List value)
value - The new value for DisplayGroupspublic List getDisplayGroups()
public void setTitle(String title)
setTitle in class DisplayControlImpltitle - The titlepublic void setInitialComponentClass(String value)
value - The new value for AddTypepublic String getInitialComponentClass()
public void setUseDesktop(boolean value)
value - The new value for UseDesktoppublic boolean getUseDesktop()
protected boolean shouldShowInDisplayList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||