|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisplayControl
A class to support controling the aspects of a display.
| Field Summary | |
|---|---|
static int |
BOTTOM_LEGEND
Bottom type legend |
static String |
DEFAULT_PROBEFORMAT
Default format for probe format |
static String |
PREF_PREFIX
Preference prefix for preferences of this class. |
static String |
PREF_PROBEFORMAT
Preference for probe format |
static String |
PREF_REMOVEONWINDOWCLOSE
Preference for whether the control should be removed when the window is closed |
static String |
PREF_SAMPLING_MODE
Preference for sampling mode |
static String |
PREF_STANDALONE_REMOVEONCLOSE
Should we remove stand alone display controls when their window is closed |
static String |
PREF_STANDALONE_REMOVEONCLOSE_ASK
Should we ask the user if they want to remove stand alone display controls |
static String |
PROP_LEGENDICON
The property name of the String path or url of the icon this display control should show in its legend. |
static int |
SIDE_LEGEND
Side type legend |
| Method Summary | |
|---|---|
void |
applyPreferences()
Apply preferences to this control. |
boolean |
canBeDocked()
_more_ |
JCheckBox |
doMakeVisibilityControl(String label)
Make a visibility control as a JCheckbox. |
void |
doRemove()
Called when the DisplayControl is removed from the display |
void |
firstFrameDone()
Method to call when the first frame has been rendered. |
boolean |
getCanDoRemoveAll()
See if this DisplayControl can remove all controls. |
List |
getCategories()
Get the list of DataCategorys |
boolean |
getCollapseLegend()
Get the collapsed state of the legend. |
List |
getCursorReadout(EarthLocation el,
Real animationValue,
int animationStep)
_more_ |
DataChoice |
getDataChoice()
Get the DataChoice associated with this control. |
List |
getDataChoices()
Get the list of DataChoices associated with this control. |
MapProjection |
getDataProjection()
Get the MapProjection associated with the data in
this DisplayControl. |
ViewManager |
getDefaultViewManager()
Get the default view manager for this control |
String |
getDisplayCategory()
Get the display category for this DisplayControl. |
String |
getDisplayId()
Get the display id for this control. |
DisplayableData |
getDisplayListDisplayable(ViewManager view)
Get the displayable for the display list for the particular view |
boolean |
getDisplayVisibility()
Get the display's visibility. |
boolean |
getExpandedInTabs()
Is this control expanded when it is shown in the main tabs |
String |
getLabel()
Get a label describing control |
JComponent |
getLegendButtons(int legendType)
Get the legend component for the type of legend |
JComponent |
getLegendComponent(int legendType)
Get the legend component for the type of legend |
JComponent |
getLegendLabel(int legendType)
Get the legend lable for the type of legend |
boolean |
getLockVisibilityToggle()
Get whether the visibility of this display control is locked (could be on or off) |
String |
getMenuLabel()
Get the text that should show up in a menu listing this control. |
boolean |
getShowInDisplayList()
Should this display be shown in the display list |
boolean |
getShowInLegend()
Should the display control be shown in a legend |
boolean |
getShowInTabs()
Should we show this control in the main tabs |
Set |
getTimeSet()
get the time set of the data |
Object |
getTransientProperty(Object key)
Find a property on the display control. |
ViewManager |
getViewManager()
Get the view manager for this control |
JFrame |
getWindow()
Get the control window for this DisplayControl. |
void |
init(String displayId,
List dataCategories,
List choices,
ControlContext viewer,
Hashtable properties,
DataSelection dataSelection)
Initialize the DisplayControl. |
void |
init(String displayId,
List dataCategories,
List choices,
ControlContext viewer,
String properties,
DataSelection dataSelection)
Deprecated. Use init that that takes a properties Hashtable |
void |
initAfterUnPersistence(ControlContext vc,
Hashtable properties)
Method to call after unpersisting from XML. |
void |
initAfterUnPersistence(ControlContext vc,
Hashtable properties,
List dataChoices)
Initialize after unpersistance |
void |
initAsTemplate()
Intialize the display control when it is created from a template |
void |
initBasic(String displayId,
List categories,
Hashtable properties)
Do basic initialization. |
JLabel |
makeLegendLabel()
Make a label like the one in the legend |
void |
moveTo(ViewManager viewManager)
Move this control to a different ViewManager. |
void |
projectionChanged()
Method called when a map projection changes. |
void |
putTransientProperty(Object key,
Object value)
Put a property on the display control. |
void |
saveImage(String filename)
Save an image of this control to a file. |
void |
setCollapseLegend(boolean collapse)
Set the collapsed state of the legend. |
void |
setDisplayCategory(String category)
_more_ |
void |
setDisplayVisibility(boolean b)
Set the display's visibility. |
void |
setExpandedInTabs(boolean value)
Set whether this control expanded when it is shown in the main tabs |
void |
setLegendBackground(Color bg)
Set the background color on the legend component |
void |
setLegendForeground(Color fg)
Set the foreground color on the legend component |
void |
setLockVisibilityToggle(boolean value)
Set whether the visibility of this display control is locked (could be on or off) |
void |
setShowInTabs(boolean value)
Set whether to show this control in the main tabs |
boolean |
shouldBeDocked()
_more_ |
void |
show()
Show this control's component |
void |
showHelp()
Show help |
void |
toFront()
Bring this control's component to the front |
void |
toggleWindow()
Hide or show the main window |
void |
transectChanged()
Method called when a transect changes. |
void |
viewManagerChanged(String property)
Method called when a view manager changes. |
void |
viewManagerDestroyed(ViewManager viewManager)
Called when a ViewManager which holds the display is destoryed |
void |
writeTestArchive(String archivePath)
This is called when we are generating a test archive of images from all components |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId, receiveShareData |
| Field Detail |
|---|
static final String PREF_PREFIX
static final String PROP_LEGENDICON
static final String PREF_SAMPLING_MODE
static final String PREF_PROBEFORMAT
static final String DEFAULT_PROBEFORMAT
static final String PREF_REMOVEONWINDOWCLOSE
static final String PREF_STANDALONE_REMOVEONCLOSE
static final String PREF_STANDALONE_REMOVEONCLOSE_ASK
static final int BOTTOM_LEGEND
static final int SIDE_LEGEND
| Method Detail |
|---|
void init(String displayId,
List dataCategories,
List choices,
ControlContext viewer,
String properties,
DataSelection dataSelection)
throws VisADException,
RemoteException
displayId - the display iddataCategories - the DisplayControl's data categorieschoices - a list of DataChoicesviewer - the control context in which this is viewedproperties - propertiesdataSelection - specific data selection properties
RemoteException - Java RMI error
VisADException - VisAD error
void init(String displayId,
List dataCategories,
List choices,
ControlContext viewer,
Hashtable properties,
DataSelection dataSelection)
throws VisADException,
RemoteException
displayId - the display iddataCategories - the DisplayControl's data categorieschoices - a list of DataChoicesviewer - the control context in which this is viewedproperties - extra propertiesdataSelection - specific data selection properties
RemoteException - Java RMI error
VisADException - VisAD errorJFrame getWindow()
boolean getLockVisibilityToggle()
boolean getShowInDisplayList()
DisplayableData getDisplayListDisplayable(ViewManager view)
view - The view manager
void setLockVisibilityToggle(boolean value)
value - true to lock to current stateJComponent getLegendComponent(int legendType)
legendType - type of legend (BOTTOM, SIDE)
JComponent getLegendButtons(int legendType)
legendType - type of legend (BOTTOM, SIDE)
void setCollapseLegend(boolean collapse)
collapse - true to collapse the legend.boolean getCollapseLegend()
JComponent getLegendLabel(int legendType)
legendType - type of legend (BOTTOM, SIDE)
void doRemove()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD error
void viewManagerDestroyed(ViewManager viewManager)
throws VisADException,
RemoteException
viewManager - The view manager that has been destroyed
RemoteException - Java RMI error
VisADException - VisAD errorboolean getCanDoRemoveAll()
DataChoice getDataChoice()
DataChoice associated with this control.
List getDataChoices()
DataChoices associated with this control.
String getDisplayId()
String getMenuLabel()
String getLabel()
void moveTo(ViewManager viewManager)
ViewManager.
viewManager - ViewManager to move to.ViewManager getViewManager()
ViewManager getDefaultViewManager()
void saveImage(String filename)
filename - filename to save tovoid toFront()
JLabel makeLegendLabel()
void show()
void toggleWindow()
void setDisplayVisibility(boolean b)
b - true to set it visibleboolean getDisplayVisibility()
JCheckBox doMakeVisibilityControl(String label)
label - label for the visibility checkbox
void setLegendForeground(Color fg)
fg - foreground colorvoid setLegendBackground(Color bg)
bg - background color
void initAfterUnPersistence(ControlContext vc,
Hashtable properties)
vc - control context for this DisplayControl.properties - A place to put properties
void initAfterUnPersistence(ControlContext vc,
Hashtable properties,
List dataChoices)
vc - the control contextproperties - the propertiesdataChoices - the list of data choicesvoid initAsTemplate()
void initBasic(String displayId,
List categories,
Hashtable properties)
displayId - idcategories - display categoriesproperties - propertiesvoid firstFrameDone()
void writeTestArchive(String archivePath)
archivePath - Where to write the imagesMapProjection getDataProjection()
MapProjection associated with the data in
this DisplayControl.
void projectionChanged()
void transectChanged()
void viewManagerChanged(String property)
property - the property that changedString getDisplayCategory()
void setDisplayCategory(String category)
category - _more_List getCategories()
DataCategorys
Object getTransientProperty(Object key)
key - The key
void putTransientProperty(Object key,
Object value)
key - The keyvalue - The valuevoid applyPreferences()
boolean getShowInLegend()
void showHelp()
boolean getExpandedInTabs()
void setExpandedInTabs(boolean value)
value - valueboolean getShowInTabs()
boolean shouldBeDocked()
boolean canBeDocked()
void setShowInTabs(boolean value)
value - value
Set getTimeSet()
throws RemoteException,
VisADException
RemoteException - on badness
VisADException - on badness
List getCursorReadout(EarthLocation el,
Real animationValue,
int animationStep)
throws Exception
el - _more_animationValue - _more_animationStep - _more_
Exception - _more_
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||