|
||||||||||
| 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.ViewManager
public class ViewManager
A wrapper around a DisplayMaster.
Provides an interface for managing user interactions, gui creation, etc.
| Nested Class Summary | |
|---|---|
static class |
ViewManager.MatrixCommand
Class MatrixCommand manages changes to the viewpoint matrix |
| Field Summary | |
|---|---|
protected JComponent |
animationHolder
The panel that holds the animation widget |
protected JMenu |
animationMenu
This holds the visibility toggle animation commands. |
static Color |
borderHighlightColor
border hightlight color |
static int |
borderWidth
border width |
protected boolean |
clickToFocus
Do we focus on this one only when the user clicks |
protected Rectangle |
displayBounds
The bounds of the display_ |
protected JFrame |
fullScreenWindow
The window for full screen |
protected static Border |
highlightBorder
highlight border |
protected JComponent |
innerContents
The inner gui |
protected boolean |
lastActive
Is the the currently active VM |
protected long |
lastTimeActivated
Keeps track of the last time this VM was set as the active VM |
protected static TwoFacedObject[] |
logoPoses
logo positions |
protected JLabel |
nameLabel
name label |
protected static Border |
normalBorder
normal border |
static String |
PREF_3DCLIP
Preference for clipping at 3d box_ |
static String |
PREF_ANIREADOUT
Preference for showing the time string in the display |
static String |
PREF_BGCOLOR
For the bg color |
static String |
PREF_BORDERCOLOR
For the currently selected panel. |
static String |
PREF_CONTOUR_LABELALIGN
for the contour label Font |
static String |
PREF_CONTOUR_LABELFONT
for the contour label Font |
static String |
PREF_CONTOUR_LABELSIZE
for the contour label size |
static String |
PREF_DIMENSION
Preference for 3d or 2d _ |
static String |
PREF_DISPLAYLISTCOLOR
For the display list color |
static String |
PREF_DISPLAYLISTFONT
For the display list font |
static String |
PREF_FGCOLOR
For the foreground color |
static String |
PREF_LOGO
for the logo |
static String |
PREF_LOGO_POSITION_OFFSET
for the logo position |
static String |
PREF_LOGO_SCALE
for the logo scale |
static String |
PREF_LOGO_VISIBILITY
for the logo visibility |
static String |
PREF_PREFIX
Prefix used for preference String ids |
static String |
PREF_SHAREVIEWS
Preference for sharing view points |
static String |
PREF_SHOWANIMATIONBOXES
Show the bottom legend |
static String |
PREF_SHOWBOTTOMLEGEND
Show the bottom legend |
static String |
PREF_SHOWCURSOR
Preference for showing cursor readout |
static String |
PREF_SHOWDISPLAYLIST
Preference for showing cursor readout |
static String |
PREF_SHOWSCALES
Preference for showing the wireframe box |
static String |
PREF_SHOWSIDELEGEND
Show the side legend |
static String |
PREF_SHOWTOOLBAR
For hiding/showing components of the toolbar |
static String |
PREF_SHOWTRANSECTSCALES
Preference for showing the wireframe box |
static String |
PREF_TOOLBARSFLOATABLE
are the toolbars floatable |
static String |
PREF_TOPBAR_VISIBLE
For the visibility of the top compenent |
static String |
PREF_WAITMSG
For the visibility of the please wait message |
static String |
PREF_WIREFRAME
Preference for showing the wireframe box |
static String |
PROP_COMPONENT_RESIZED
Property id for component resizing |
protected boolean |
showControlLegend
Do we show the control legends |
protected boolean |
showControlMenu
Do we show the control menu |
static String |
TAG_COLORPAIR
Xml tag for the color pair |
static String |
TAG_COLORPAIRS
Xml tag for the color pairs xml |
protected List |
toolbarIds
List of the ids (String), one for each component in the toolbars list We keep this around so the user could have a preference to show or not show toolbar components. |
protected List |
toolbarNames
List of the names (String), one for each component in the toolbars list We keep this around so the user could have a preference to show or not show toolbar components. |
protected List |
toolbars
List of Components that are shown in the left side, vertical tool bar |
protected Rectangle |
windowBounds
We keep the window bounds around for persisting/unpersisting this ViewManager. |
| Constructor Summary | |
|---|---|
ViewManager()
A parameter-less ctor for the XmlEncoder based decoding. |
|
ViewManager(ViewContext viewContext)
Create this ViewManager |
|
ViewManager(ViewContext viewContext,
AnimationInfo info)
Instantiate this ViewManager with the given AnimationInfo |
|
ViewManager(ViewContext viewContext,
DisplayMaster master,
ViewDescriptor viewDescriptor,
String properties)
Create this ViewManager |
|
ViewManager(ViewContext viewContext,
ViewDescriptor viewDescriptor,
String properties)
Instantiate this ViewManager with the given AnimationInfo |
|
ViewManager(ViewContext viewContext,
ViewDescriptor viewDescriptor,
String properties,
AnimationInfo info)
Instantiate this ViewManager with the given AnimationInfo |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Required interface for ActionEvents, to implement ActionListener for the UI objects such as JButton-s and MenuItem-s |
protected void |
addBooleanProperty(BooleanProperty bp)
Add in the BooleanProperty into the list of properties. |
protected void |
addCommand(Command cmd)
Add the command to the command manager. |
void |
addContextMenuItems(List menuItems)
Add items to the context menu. |
boolean |
addDisplayInfo(DisplayInfo displayInfo)
Add the DisplayInfo to the list of DisplayInfo-s If I have a DisplayMaster
then set the master to be inactive
and add the displayable held by the displayInfo into the displayMaster. |
void |
addDisplayInfos(List<DisplayInfo> displayInfos)
Add the display infos |
void |
addDisplayListener(DisplayListener listener)
Adds the given display listener to the DisplayMaster |
protected void |
addPropertiesComponents(JTabbedPane tabbedPane)
Add a JTabbedPane to the properties component |
void |
addRemovable(Removable removable)
Add a removeable object |
protected void |
addToolBar(Component component,
String id,
String name)
Add the given component into the list of toolbar components. |
void |
addViewDescriptor(ViewDescriptor vd)
Add the view descriptor |
void |
animationDriverChanged()
Handle the time set from the animation widget changing |
boolean |
animationOk()
Should this ViewManager create an animation object/widget. |
protected void |
animationTimeChanged()
The time changed |
void |
applyPreferences()
Some user preferences have changed. |
boolean |
applyProperties()
Apply properties |
void |
aspectSliderChanged(int value)
Handle an aspect slider change. |
void |
brighter()
Make the lights brighter |
boolean |
canBe(ViewManager that)
Can this view manager be used in exchange for the given view manager |
protected boolean |
checkForKmlImageCapture()
Check if its ok to capture a kmz file |
void |
checkToolBarVisibility()
Turn on/off the toolbar components based on the user preferences. |
void |
clearDisplays()
This removes all of the display controls |
void |
clearImageGrabber(ImageSequenceGrabber grabber)
The given grabber is done. |
void |
controlChanged(ControlEvent e)
This is the default method (no-op) for the ControlListener interface |
void |
controlMoved(DisplayControl control)
This gets called when a display control has been moved to this viewmanager |
protected JCheckBoxMenuItem |
createCBMI(JMenu menu,
String id)
A helper to create a check box menu item from the id for a BooleanProperty. |
void |
destroy()
Destroy this view manager. |
void |
displayChanged(DisplayEvent de)
An implementation of the the DisplayListener interface. |
void |
displayControlChanged(DisplayControl displayControl)
Called when the dispay category or other state of the display control has changed. |
void |
displayControlVisibilityChanged(DisplayControl displayControl)
handle when the display control has changed |
void |
displayDataChanged(DisplayControl displayControl)
Handle the display data changing |
protected void |
doClose()
Called when the window is closed. |
void |
doDrop(Object object)
Handle the drop action |
protected Container |
doMakeContents()
Create the main GUI contents. |
protected DisplayMaster |
doMakeDisplayMaster()
Make the DisplayMaster for this ViewManger. |
protected JMenuBar |
doMakeMenuBar()
Create and return the menu bar. |
ArrayList |
doMakeMenuList()
Return a list of components that are used to create the menubar. |
ViewState |
doMakeViewState()
Make a ViewState |
protected void |
doneFirstFrame()
We have received the very first framedone event. |
void |
doPrintImage()
Print an image |
void |
doPublishImage()
Hook into the publishing interface to "publish" the screen image. |
void |
doPublishImage(String props)
Hook into the publishing interface to "publish" the screen image. |
void |
doSaveImage()
User has requested saving display as an image. |
void |
doSaveImage(boolean andSaveBundle)
Save the image (and the bundle that does with it); |
void |
doSaveImageInThread()
User has requested saving display as an image. |
void |
doSaveState()
Save this state of this view manager. |
void |
ensureOnlyOneTimeDriver(DisplayControl displayControl)
Ensure that there is only one time driver for this view THERE CAN BE ONLY ONE! - Highlander |
protected void |
fillLegends()
This is called when the list of display controls has changed. |
protected void |
fillLegendsInner()
actually fill the legends and update the display list |
void |
fillLegendsLater()
Wait until there have been no calls to fillLegends for a little bit and then fill the legends |
protected TwoFacedObject |
findLoc(String loc)
Find the appropriate combobox item from the string |
void |
firstInitializeViewMenu(JMenu viewMenu)
Initialize the view menu. |
List |
getAliases()
Get the Aliases property. |
Animation |
getAnimation()
Return the Animation
that is used. |
AnimationInfo |
getAnimationInfo()
Get the AnimationInfo property. |
boolean |
getAnimationStringVisible()
Deprecated. Use getAniReadout now |
DateTime[] |
getAnimationTimes()
Get the array of animation times |
AnimationWidget |
getAnimationWidget()
Return the AnimationWidget
that is used. |
boolean |
getAniReadout()
Get the animation readout flag |
protected JComponent |
getAspectPropertiesComponent()
Get the aspect properties component |
double[] |
getAspectRatio()
Get the AspectRatio property. |
Color |
getBackground()
Get the background color or black if it is null |
Hashtable |
getBooleanPropertiesForPersistence()
Get the BooleanPropertiesForPersistence property. |
protected BooleanProperty |
getBooleanProperty(String propertyId)
Find, or create, the BooleanProperty identified with the given id |
protected BooleanProperty |
getBooleanProperty(String propertyId,
boolean dflt)
Get a BooleanProperty |
protected boolean |
getBp(String propertyId)
Get the value of the BooleanProperty |
protected boolean |
getBp(String propertyId,
boolean dflt)
Get a BooleanProperty (local implementation) |
boolean |
getClickToFocus()
Get the click to focus property. |
CommandManager |
getCommandManager()
Create, if needed, and return the command manager |
JComponent |
getComponent()
Return the GUI component from the DisplayMaster |
Container |
getContents()
Return the full GUI contents. |
protected Border |
getContentsBorder()
Get the border for the contents |
List |
getControls()
Return the list of DisplayControls displayed in this ViewManager. |
List |
getControlsForLegend()
Return the list of DisplayControls displayed in this ViewManager
that are meant to be shown in a legend |
protected Color |
getDefaultBackground()
Get the default background color |
protected Color |
getDefaultForeground()
Get the default foreground color |
Rectangle |
getDisplayBounds()
Get the DisplayBounds property. |
DisplayConventions |
getDisplayConventions()
A wrapper around IdvBase.getDisplayConventions() |
CoordinateSystem |
getDisplayCoordinateSystem()
Get the display side coordinate system, subclasses should implement if there is one. |
protected List<DisplayInfo> |
getDisplayInfos()
Get a copy of the list of DisplayInfo-s |
Color |
getDisplayListColor()
Get the display list color property. |
Font |
getDisplayListFont()
Get the display list font property. |
double[] |
getDisplayMatrix()
Get the display matrix array |
DisplayRenderer |
getDisplayRenderer()
get the display renderer |
IdvWindow |
getDisplayWindow()
We call this getDisplayWindow instead of getWindow so the window is not treated as a persistable property. |
Animation |
getExternalAnimation()
Get the ExternalAnimation property. |
AnimationWidget |
getExternalAnimationWidget()
Get the ExternalAnimationWidget property. |
Color |
getForeground()
Get the foreground color or white if it is null |
int |
getFullScreenHeight()
Get the FullScreenHeight property. |
int |
getFullScreenWidth()
Get the FullScreenWidth property. |
boolean |
getHasWindow()
Getter method for xml persistence. |
protected boolean |
getHaveInitialized()
have we initialized |
static Border |
getHighlightBorder()
Get the border to use when this ViewManager is the currently selected ViewManager |
IntegratedDataViewer |
getIdv()
Get the IDV |
IdvUIManager |
getIdvUIManager()
Get the IdvUIManager to use. |
protected boolean |
getInitDone()
Have we finished initializing |
protected void |
getInitialBooleanProperties(List props)
Get the intial BooleanProperties |
String |
getInitViewStateName()
Get the intial ViewState name |
JComponent |
getInnerContents()
This is meant to be overrode by a derived class to return the contents (typically the display master's component) that is the "abbreviated" gui. |
boolean |
getIsActive()
Is the DisplayMaster currently active. |
boolean |
getIsDestroyed()
Has this ViewManager been destroyed. |
boolean |
getIsShared()
Get the IsShared property. |
long |
getLastFrameDoneTime()
Get the last time we've seen a FRAME_DONE event |
long |
getLastTimeActivated()
Get the time that this was last the active VM |
boolean |
getLegendOnLeft()
Get the LegendOnLeft property. |
protected List<IdvLegend> |
getLegends()
Get the legends |
String |
getLegendState()
Get the LegendState property. |
List<ucar.unidata.java3d.LightInfo> |
getLights()
Get the Lights property. |
protected String |
getLogoFile()
Get the logo |
String |
getLogoPosition()
Get the logo position on the screen |
float |
getLogoScale()
Get the logo scale |
boolean |
getLogoVisibility()
Get the logo visibility |
protected JComponent |
getMainPropertiesComponent()
Get main properties component |
DisplayMaster |
getMaster()
Get the DisplayMaster. |
Dimension |
getMySize()
Get the default size of the DisplayMaster held by this view. |
String |
getName()
Get the Name property. |
static Border |
getNormalBorder()
Get the normal border |
boolean |
getPerspectiveView()
Get whether this is in a perspective view or not |
ProjectionControl |
getProjectionControl()
Get the projection control |
List |
getProjectionList()
Get the list of Projections available. |
Hashtable |
getProperties()
Get the Properties property. |
JComponent |
getPropertiesComponent()
Get the component for setting properties on the display. |
Object |
getProperty(Object key)
get a property. |
PublishManager |
getPublishManager()
Get the PublishManager to use. |
boolean |
getReallyHasWindow()
This returns the value of the hasWindow member which was set when unpersisting. |
IdvResourceManager |
getResourceManager()
Get the IdvResourceManager to use. |
boolean |
getShareViews()
Get the share view state flag |
boolean |
getShowAnimationBoxes()
Should we show the animation widget boxes |
boolean |
getShowBottomLegend()
Should we show the bottom legend that holds the list of display controls. |
boolean |
getShowControlLegend()
Get whether we should show any of the display control legends. |
boolean |
getShowDisplayList()
Get the show display list flag |
boolean |
getShowScales()
Get the show display scale flag |
boolean |
getShowSideLegend()
Should we show the side legend that holds the list of display controls. |
protected JComponent |
getSideComponent(JComponent sideLegend)
Get the component that might hold the sideLegend By default this just returns the side legend component. |
int |
getSideDividerLocation()
Get the location of the side legend or -1 if there is no side legend |
SideLegend |
getSideLegend()
Get the SideLegend property. |
JSplitPane |
getSideLegendContainer()
Deprecated. No longer called sideLegendContainer |
Hashtable |
getSkinProperties()
Get the SkinProperties property. |
String |
getSkinProperty(String name)
Get the named property for the skin |
int |
getSplitPaneLocation()
Get the SplitPaneLocation property. |
StateManager |
getStateManager()
Get the StateManager to use. |
XmlObjectStore |
getStore()
Wrapper around IdvBase.getStore() |
List<DateTime> |
getTimeDriverTimes()
Get the list of times from the control that is flagged as the time driver |
JComponent |
getTimelineComponent()
make the timeline gui |
boolean |
getToolbarsFloatable()
are the toolbars floatable |
boolean |
getTopBarVisible()
Get the top component visibility. |
String |
getTypeName()
What type of view is this |
String |
getUniqueId()
Override the base class method to return a (hopefully) unique id. |
boolean |
getUseFastRendering(boolean b)
This is called by display controls and allows us to force fast rendering |
ViewDescriptor |
getViewDescriptor()
Get the ViewDescriptor. |
ViewManager |
getViewManager()
Get the view manager |
GeoLocationInfo |
getVisibleGeoBounds()
Does this viewmanager have any bounds that are visible. |
VMManager |
getVMManager()
Get the VMManager to use. |
boolean |
getWaitMessageVisible()
Get the please wait visible state flag |
boolean |
getWireframe()
Get the show wireframe box flag |
void |
guiInitializationDone()
This gets called when the initial guis (windows, etc) have been created and shown |
protected void |
handleBooleanPropertyChange(String id,
boolean value)
The BooleanProperty identified byt he given id has changed. |
protected void |
handleControlChanged(ControlEvent e)
Handle a control changed. |
protected boolean |
hasBooleanProperty(String propertyId)
Check to see if this view manager has the property |
boolean |
hasDisplayMaster()
See if this has a display master |
protected void |
init()
Initialize. |
void |
initAfterUnPersistence(IntegratedDataViewer idv)
Called after this object has been unpersisted from xml. |
protected void |
initBooleanProperties()
Create the set of BooleanPropertys. |
void |
initColorMenu(JMenu colorMenu)
Dynamically add the menu items into the color menu |
void |
initDisplayMenu(JMenu displayMenu)
This is called when the list of display controls has changed to update the display menu. |
void |
initFromSkin(Element skinNode)
Initialize from a skin |
protected void |
initializeBooleanProperty(BooleanProperty bp)
Initialize a BooleanProperty |
void |
initializeViewMenu(JMenu viewMenu)
Dynamically initialize the view menu |
void |
initPreferences(IdvPreferenceManager preferenceManager)
A hook so derived classes can add in their own preference widgets. |
protected void |
initToolBars()
A hook so derived classes can add in their toolbar components |
protected void |
initUI()
Create the ui |
void |
initViewState(ViewState viewState)
Initialize the ViewState |
void |
initViewStateMenu(JMenu viewStateMenu)
Initialize the View State menu |
void |
initWith(ViewManager that)
Initialize this ViewManager with the state in the that ViewManager |
void |
initWith(ViewManager that,
boolean ignoreWindow)
Initialize this ViewManager with the state in the that ViewManager. |
void |
initWith(ViewState viewState)
Init with a view state |
protected void |
initWithInner(ViewManager that,
boolean ignoreWindow)
Initialize this ViewManager with the state in the that ViewManager. |
protected void |
insertSideLegend()
Place the side legend where it belongs |
boolean |
isClassOk(ViewDescriptor vd)
If the given view descriptor has one or more class names is the class name of this ViewManager in the list |
boolean |
isCompatibleWith(ViewManager vm)
Is this compatible with the other ViewManager |
boolean |
isCompatibleWith(ViewState viewState)
Is this ViewState appropriate for me? |
boolean |
isDefinedBy(ViewDescriptor vd)
Does this view manager have the given view descriptor |
protected boolean |
isFullScreen()
Are we in full screen mode. |
boolean |
isInteractive()
Is this an interactive session |
static boolean |
isVectorGraphicsFile(String filename)
Check to see if the file is a vector graphics file |
void |
itemStateChanged(ItemEvent e)
Responds to ItemEvents handled by an ItemListener; in this class, from JCheckBoxes. |
void |
keyWasTyped(KeyEvent keyEvent)
Process sthe key event |
void |
logException(String msg,
Throwable exc)
Helper to log errors |
JMenu |
makeColorMenu()
make the color set menu |
DropPanel |
makeDropPanel(JComponent contents,
boolean doBorder)
Make a dnd panel |
void |
makeFrames()
Make frames |
protected String |
makeLogoPosition(String pos,
String offset)
Make a logo position from the position and offset |
protected JMenu |
makeSavedViewsMenu()
Make the saved views menu |
protected JMenu |
makeShowMenu()
Create and return the show menu. |
JMenu |
makeViewMenu()
Create and return the view menu. |
protected void |
makeViewStateMenu(JMenu viewStateMenu)
Make the view state menu |
protected void |
notifyDisplayControls(String property)
Tell the display controls that the projection has changed. |
boolean |
okToImportDisplay(DisplayControl control)
Can this view manager import the given display control. |
int |
paintDisplayList(Graphics2D graphics,
List<DisplayControl> displayControls,
int width,
int height,
boolean bottom,
Color color,
Font font)
Paint the display list in a 2D graphics |
protected String[] |
parseLogoPosition(String position)
Parse the logo position |
void |
parseProperties(String properties)
Parse and apply the properties in the semi-colon delimited list of name=value pairs. |
void |
printAspect(String msg)
Print the aspect |
void |
putProperty(Object key,
Object value)
Set a property. |
protected void |
reallyFillLegends()
tell the legends to fill themselves |
void |
removeColorPair(String name)
Remove the named color pair from the users xml |
void |
removeDisplayInfo(DisplayInfo displayInfo)
This removes the given DisplayInfo. |
void |
resetAspectSliders()
Reset the aspect sliders. |
void |
resetFullScreen()
Go back to normal screen |
protected void |
resetProjectionControl()
Reset the projection control |
void |
setAliases(List value)
Set the Aliases property. |
void |
setAnimatedVisibility(boolean state)
Turn on/off the display control visibility toggling animation |
void |
setAnimationInfo(AnimationInfo value)
Set the AnimationInfo property. |
void |
setAnimationStringVisible(boolean visible)
Deprecated. Use setAniReadout now |
void |
setAniReadout(boolean value)
Set the show animation readout flag |
void |
setAspectRatio(double[] value)
Set the AspectRatio property. |
void |
setBackground(Color c)
Set the background color |
protected void |
setBooleanProperties(ViewManager vm)
Set the different boolean flags from thise held by the given view manager. |
void |
setBooleanPropertiesForPersistence(Hashtable value)
Set the BooleanPropertiesForPersistence property. |
protected void |
setBp(String propertyId,
boolean value)
Helper to set the value of a BooleanProperty |
void |
setClickToFocus(boolean value)
Set the click to focus property. |
void |
setColors(Color foreground,
Color background)
Set the foreground and background colors in the display. |
void |
setContentsBorder(Border b)
Set the contents boreder |
void |
setCursorInDisplay(Cursor c)
Set the cursor in the component of the main display |
void |
setDisplayBounds(Rectangle value)
Set the DisplayBounds property. |
void |
setDisplayListColor(Color value)
Set the display list color property. |
void |
setDisplayListFont(Font value)
Set the display list font property. |
protected void |
setDisplayMaster(DisplayMaster master)
Set the DisplayMaster |
void |
setDisplayMatrix(double[] newMatrix)
Set the display matrix array |
void |
setExternalAnimation(Animation value,
AnimationWidget widget)
Set the ExternalAnimation property. |
void |
setForeground(Color c)
Set the foreground color |
void |
setFullScreen()
Go to full screen mode |
void |
setFullScreenHeight(int value)
Set the FullScreenHeight property. |
void |
setFullScreenWidth(int value)
Set the FullScreenWidth property. |
void |
setHasWindow(boolean value)
Setter method for xml persistence. |
static void |
setHighlightBorder(Color c)
Sets the color used to denote the currently selected panel. |
void |
setIdv(IntegratedDataViewer idv)
This is here to set the IDV when this object has been unpersisted. |
void |
setInitialSplitPaneLocation(double value)
Set the InitialSplitPaneLocation property. |
void |
setInitViewStateName(String s)
Set the initial ViewState name |
void |
setIsShared(boolean value)
Set the IsShared property. |
void |
setLastActive(boolean b)
Set whether this view manager is the last one active. |
void |
setLegendOnLeft(boolean value)
Set the LegendOnLeft property. |
void |
setLegendState(IdvLegend legend,
String state)
Set the state of the legend |
void |
setLegendState(String value)
Set the LegendState property. |
void |
setLights(List<ucar.unidata.java3d.LightInfo> value)
Set the Lights property. |
void |
setLogoFile(String logo)
Set the logo file or URL |
void |
setLogoPosition(String logop)
Set the logo position on the screen |
void |
setLogoScale(float scale)
Set the logo scale |
void |
setLogoVisibility(boolean on)
Set the logo visibility |
void |
setMasterActive()
Set the DisplayMaster active
if there are no more outstanind mast active calls. |
void |
setMasterActive(boolean force)
Set the DisplayMaster active
if there are no more outstanind mast active calls. |
void |
setMasterInactive()
Set the DisplayMaster inactive. |
void |
setName(String value)
Set the Name property. |
void |
setProperties(Hashtable value)
Set the Properties property. |
boolean |
setProperty(String name,
String value,
boolean ignoreError)
Apply the given named property. |
void |
setShareViews(boolean value)
Set the share view state flag |
void |
setShowControlLegend(boolean b)
Set whether we should show any of the display control legends |
void |
setShowDisplayList(boolean value)
Set the show display list flag |
void |
setShowScales(boolean value)
Set the show display scale flag |
void |
setShowToolBars(boolean v)
Turn on/off the showing of the toolbars |
void |
setSideDividerLocation(int l)
Set the location of the side legend. |
void |
setSideLegend(SideLegend value)
Set the SideLegend property. |
void |
setSideLegendPosition(String state)
Set the position state of the side legend |
void |
setSize(Dimension d)
Set the default size of the DisplayMaster held by this view. |
void |
setSkinProperties(Hashtable value)
Set the SkinProperties property. |
void |
setSplitPaneLocation(int value)
Set the SplitPaneLocation property. |
void |
setTopBarVisible(boolean visible)
Toggle the top component visibility. |
void |
setView(String view)
Set the view |
void |
setViewDescriptor(ViewDescriptor vd)
Deprecated. Use addViewDescriptor |
void |
setWaitMessageVisible(boolean value)
Set the please wait visible state flag |
void |
setWindow(IdvWindow w)
Set the window that this ViewManager is shown in. |
void |
setWindowBounds(Rectangle r)
Setter method for xml persistence |
void |
setWireframe(boolean value)
Set the show wireframe flag |
boolean |
shouldDoThingsRightAway()
A hack for when we are running isl and don't want to update the display incrementally This just returns true for now but is a hook for later |
void |
showColorPairDialog()
Show the dialog that allows the user to change the foreground/background colors |
boolean |
showHighlight()
Should we show the highlight border |
void |
showLegend()
Show (float) all legends |
void |
showPropertiesDialog()
Show the properties dialog |
void |
showTimeline()
show the timeline window |
void |
showWindow()
show the window I am in |
void |
startImageCapture()
Start the image capture if we are not currently doing that. |
void |
toFront()
Bring the window that contains this ViewManager to the front |
void |
toggleFullScreen()
Toggle full screen |
String |
toString()
Return the string representation of this object |
void |
turnOnOffAllDisplays(boolean on)
This turns off the visiblity toggle animation and sets the visibility of all unlocked display controls to the given value. |
protected void |
updateAnnotations()
Update the annotations |
void |
updateDisplayIfNeeded()
Update display if needed |
void |
updateDisplayList()
Populate the display list |
protected void |
updateNameLabel()
Update the name label |
boolean |
useDisplay()
Do we use the display |
void |
useImages()
Use the images |
void |
useImages(List images,
boolean andShow)
Use the images |
void |
writeImage(File file)
Create a screen image and write it to the given file |
void |
writeImage(File file,
boolean block)
Create a screen image and write it to the given file |
void |
writeImage(File file,
boolean block,
boolean sync)
Create a screen image and write it to the given file |
void |
writeImage(File file,
boolean block,
float quality)
Create a screen image and write it to the given file |
void |
writeImage(String fileName)
Create a screen image and write it to the given file |
void |
writeImage(String fileName,
boolean block)
Create a screen image and write it to the given file |
void |
writeImage(String fileName,
boolean block,
float quality)
Create a screen image and write it to the given file |
void |
writeTestArchive(String archivePath)
This shows and brings to the front the display window, sleeps for a bit and then makes a screen snapshot and writes it out using the given archive path (which is a directory with a file root) |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PREF_3DCLIP
public static final String PREF_ANIREADOUT
public static final String PREF_BGCOLOR
public static final String PREF_BORDERCOLOR
public static final String PREF_CONTOUR_LABELALIGN
public static final String PREF_CONTOUR_LABELFONT
public static final String PREF_CONTOUR_LABELSIZE
public static final String PREF_DIMENSION
public static final String PREF_DISPLAYLISTCOLOR
public static final String PREF_DISPLAYLISTFONT
public static final String PREF_FGCOLOR
public static final String PREF_LOGO
public static final String PREF_LOGO_POSITION_OFFSET
public static final String PREF_LOGO_SCALE
public static final String PREF_LOGO_VISIBILITY
public static final String PREF_PREFIX
public static final String PREF_SHAREVIEWS
public static final String PREF_SHOWANIMATIONBOXES
public static final String PREF_SHOWBOTTOMLEGEND
public static final String PREF_SHOWCURSOR
public static final String PREF_SHOWDISPLAYLIST
public static final String PREF_SHOWSCALES
public static final String PREF_SHOWSIDELEGEND
public static final String PREF_SHOWTOOLBAR
public static final String PREF_SHOWTRANSECTSCALES
public static final String PREF_TOOLBARSFLOATABLE
public static final String PREF_TOPBAR_VISIBLE
public static final String PREF_WAITMSG
public static final String PREF_WIREFRAME
public static final String PROP_COMPONENT_RESIZED
public static final String TAG_COLORPAIR
public static final String TAG_COLORPAIRS
public static final int borderWidth
public static Color borderHighlightColor
protected static TwoFacedObject[] logoPoses
protected static Border highlightBorder
protected static Border normalBorder
protected boolean clickToFocus
protected boolean lastActive
protected long lastTimeActivated
protected List toolbars
protected List toolbarNames
protected List toolbarIds
protected boolean showControlMenu
protected boolean showControlLegend
protected JComponent animationHolder
protected JMenu animationMenu
protected Rectangle displayBounds
protected JFrame fullScreenWindow
protected JComponent innerContents
protected JLabel nameLabel
protected Rectangle windowBounds
| Constructor Detail |
|---|
public ViewManager()
public ViewManager(ViewContext viewContext)
viewContext - As a hack this really better be an IntegratedDataViewer
public ViewManager(ViewContext viewContext,
AnimationInfo info)
viewContext - As a hack this really better be an IntegratedDataViewerinfo - The initial animation info
public ViewManager(ViewContext viewContext,
ViewDescriptor viewDescriptor,
String properties)
viewContext - As a hack this really better be an IntegratedDataViewerviewDescriptor - the view descriptorproperties - a list of semi-colon separated properties
public ViewManager(ViewContext viewContext,
DisplayMaster master,
ViewDescriptor viewDescriptor,
String properties)
throws VisADException,
RemoteException
master - The DisplayMaster to useviewContext - As a hack this really better be an IntegratedDataViewerviewDescriptor - This describes this ViewManager. Mostly just a name.properties - semi-colon separated list of name=value properties.
We apply these properties to this object using reflection- looking for
public set methods with the given name. We use reflection on the argument
to the set method to coerce the String value in the properties to the
correct type.
RemoteException
VisADException
public ViewManager(ViewContext viewContext,
ViewDescriptor viewDescriptor,
String properties,
AnimationInfo info)
viewContext - As a hack this really better be an IntegratedDataViewerviewDescriptor - the view descriptorproperties - a list of semi-colon separated propertiesinfo - The initial animation info| Method Detail |
|---|
protected void init()
throws VisADException,
RemoteException
RemoteException
VisADExceptionpublic DateTime[] getAnimationTimes()
public List<DateTime> getTimeDriverTimes()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problemprotected boolean getHaveInitialized()
protected boolean getInitDone()
public void initFromSkin(Element skinNode)
skinNode - the XML nodepublic void doDrop(Object object)
object - object being droppedprotected void initUI()
public void setSideLegendPosition(String state)
state - float, hidden, etcprotected void insertSideLegend()
public DropPanel makeDropPanel(JComponent contents,
boolean doBorder)
contents - contents to showdoBorder - draw a border
public boolean okToImportDisplay(DisplayControl control)
control - control
public void setContentsBorder(Border b)
b - the borderprotected Border getContentsBorder()
public void showPropertiesDialog()
public JComponent getPropertiesComponent()
protected JComponent getMainPropertiesComponent()
protected TwoFacedObject findLoc(String loc)
loc - the string location
protected String[] parseLogoPosition(String position)
position - the string representation
protected String makeLogoPosition(String pos,
String offset)
pos - the positionoffset - the offset
protected void addPropertiesComponents(JTabbedPane tabbedPane)
tabbedPane - the pane to addpublic void aspectSliderChanged(int value)
value - the new valuepublic void resetAspectSliders()
public void brighter()
protected JComponent getAspectPropertiesComponent()
public boolean applyProperties()
protected void updateAnnotations()
public void initAfterUnPersistence(IntegratedDataViewer idv)
throws VisADException,
RemoteException
idv - the IDV associated with this.
RemoteException - Java RMI exception
VisADException - Couldn't create the VisAD display
public void initWith(ViewState viewState)
throws Exception
viewState - the view state
Exception - problem initializingpublic final void initWith(ViewManager that)
that - The other view manager
public final void initWith(ViewManager that,
boolean ignoreWindow)
that - The other view managerignoreWindow - If false then we set the window bounds
of this ViewManager to the bounds held in that ViewManager.
protected void initWithInner(ViewManager that,
boolean ignoreWindow)
throws VisADException,
RemoteException
that - The other view managerignoreWindow - If false then we set the window bounds
of this ViewManager to the bounds held in that ViewManager.
RemoteException - Java RMI exception
VisADException - Couldn't create the VisAD displaypublic void guiInitializationDone()
public void setIdv(IntegratedDataViewer idv)
idv - The IDVpublic IntegratedDataViewer getIdv()
protected void setBooleanProperties(ViewManager vm)
throws VisADException,
RemoteException
vm - The ViewManager to get state from
RemoteException
VisADException
protected void handleBooleanPropertyChange(String id,
boolean value)
throws Exception
id - Id of the changed BooleanPropertyvalue - Its new value
Exception - problem handeling the changepublic void showTimeline()
protected void animationTimeChanged()
public JComponent getTimelineComponent()
public void updateDisplayList()
public boolean getPerspectiveView()
protected void getInitialBooleanProperties(List props)
props - the propertiesprotected void initBooleanProperties()
BooleanPropertys.
These hold all of the different flag based display state.
protected void initializeBooleanProperty(BooleanProperty bp)
bp - the propertyprotected boolean hasBooleanProperty(String propertyId)
propertyId - property id
protected BooleanProperty getBooleanProperty(String propertyId)
propertyId - Identifies the BooleanProperty
protected BooleanProperty getBooleanProperty(String propertyId,
boolean dflt)
propertyId - the propertydflt - the default value
protected void setBp(String propertyId,
boolean value)
propertyId - Identifies the BooleanPropertyvalue - The value to setprotected boolean getBp(String propertyId)
propertyId - Identifies the BooleanProperty
protected boolean getBp(String propertyId,
boolean dflt)
propertyId - the iddflt - the default value
public void setShareViews(boolean value)
value - The valuepublic boolean getShareViews()
public void setShowDisplayList(boolean value)
value - The flag valuepublic boolean getShowDisplayList()
public void setWaitMessageVisible(boolean value)
value - The valuepublic boolean getWaitMessageVisible()
protected void addBooleanProperty(BooleanProperty bp)
bp - The new BooleanPropertypublic void setBooleanPropertiesForPersistence(Hashtable value)
value - The new value for BooleanPropertiesForPersistencepublic Hashtable getBooleanPropertiesForPersistence()
protected JCheckBoxMenuItem createCBMI(JMenu menu,
String id)
menu - The menu to add the checkbox menu item intoid - Identifies the boolean property that this cbmi controls
public void setWireframe(boolean value)
value - The valuepublic boolean getWireframe()
public void setShowScales(boolean value)
value - The valuepublic boolean getShowScales()
public JSplitPane getSideLegendContainer()
protected JComponent getSideComponent(JComponent sideLegend)
sideLegend - The side legend
public void setInitialSplitPaneLocation(double value)
value - The new value for InitialSplitPaneLocation
public void setLegendState(IdvLegend legend,
String state)
legend - The legendstate - its state, e.g., hidden, shown, floatingpublic void applyPreferences()
public void checkToolBarVisibility()
public void setHasWindow(boolean value)
value - Does it have a windowpublic boolean getHasWindow()
public boolean getReallyHasWindow()
public void setWindowBounds(Rectangle r)
r - The bounds of the windowpublic void setWindow(IdvWindow w)
WindowListener
and sets the bounds of the window if the windowBounds
is non-null.
w - The windowprotected List<IdvLegend> getLegends()
protected void doClose()
public void showLegend()
public IdvWindow getDisplayWindow()
public void setSize(Dimension d)
d - The default sizepublic Dimension getMySize()
public void initPreferences(IdvPreferenceManager preferenceManager)
preferenceManager - The preference managerpublic XmlObjectStore getStore()
IdvBase.getStore()
public List getProjectionList()
public IdvResourceManager getResourceManager()
IdvResourceManager to use.
public StateManager getStateManager()
StateManager to use.
public PublishManager getPublishManager()
PublishManager to use.
public IdvUIManager getIdvUIManager()
IdvUIManager to use.
public VMManager getVMManager()
VMManager to use.
public void parseProperties(String properties)
properties - The list of properties
public boolean setProperty(String name,
String value,
boolean ignoreError)
(Object, String, String)
to set the property on this object via reflection.
name - Name of propertyvalue - Its valueignoreError - true to ignore error
public boolean getIsActive()
public void setMasterInactive()
DisplayMaster inactive.
public void setMasterActive()
DisplayMaster active
if there are no more outstanind mast active calls.
public void setMasterActive(boolean force)
DisplayMaster active
if there are no more outstanind mast active calls.
force - if true, force it activepublic int getSideDividerLocation()
public void setSideDividerLocation(int l)
l - Side legend locationprotected void addCommand(Command cmd)
cmd - The commandpublic void keyWasTyped(KeyEvent keyEvent)
keyEvent - The key eventpublic void setAnimatedVisibility(boolean state)
state - Turn on or off.public void turnOnOffAllDisplays(boolean on)
on - Visiblity on or offprotected void notifyDisplayControls(String property)
property - Identifes the change type.
protected void addToolBar(Component component,
String id,
String name)
component - The GUI componentid - Its idname - Its nameprotected void initToolBars()
public boolean getShowBottomLegend()
public boolean getShowSideLegend()
public boolean getShowAnimationBoxes()
public void setShowControlLegend(boolean b)
b - Should show legendpublic boolean getShowControlLegend()
public void setLegendState(String value)
value - The new value for LegendStatepublic String getLegendState()
protected JMenuBar doMakeMenuBar()
public ArrayList doMakeMenuList()
public List getControls()
DisplayControls displayed in this ViewManager.
public void displayDataChanged(DisplayControl displayControl)
displayControl - the controlpublic void animationDriverChanged()
public List getControlsForLegend()
DisplayControls displayed in this ViewManager
that are meant to be shown in a legend
public void setColors(Color foreground,
Color background)
foreground - The foreground colorbackground - The background colorpublic void displayControlChanged(DisplayControl displayControl)
displayControl - The display control that changedpublic void displayControlVisibilityChanged(DisplayControl displayControl)
displayControl - display controlprotected void fillLegends()
protected void reallyFillLegends()
public void fillLegendsLater()
protected void fillLegendsInner()
public void initDisplayMenu(JMenu displayMenu)
displayMenu - The menu to fillpublic void addDisplayListener(DisplayListener listener)
DisplayMaster
listener - The listener to addpublic DisplayConventions getDisplayConventions()
IdvBase.getDisplayConventions()
DisplayConventions to use.
public void removeDisplayInfo(DisplayInfo displayInfo)
throws RemoteException,
VisADException
DisplayInfo.
The DisplayInfo is what really holds the
DisplayControl.
displayInfo - The display info to remove
RemoteException
VisADExceptionpublic boolean getUseFastRendering(boolean b)
b - The displays fast rendering flag
public void addDisplayInfos(List<DisplayInfo> displayInfos)
throws RemoteException,
VisADException
displayInfos - the display infos
RemoteException - Java RMI Exception
VisADException - VisAD Exception
public boolean addDisplayInfo(DisplayInfo displayInfo)
throws RemoteException,
VisADException
DisplayMaster
then set the master to be inactive
and add the displayable held by the displayInfo into the displayMaster.
This returns true if the add was successful, false otherwise.
displayInfo - The display info to add.
RemoteException
VisADException
public void updateDisplayIfNeeded()
throws VisADException,
RemoteException
RemoteException
VisADExceptionpublic void toFront()
public void clearDisplays()
public void controlMoved(DisplayControl control)
control - The display control that has been movedprotected JMenu makeShowMenu()
public JMenu makeViewMenu()
public void addContextMenuItems(List menuItems)
menuItems - List to add topublic void firstInitializeViewMenu(JMenu viewMenu)
viewMenu - the view menupublic void initializeViewMenu(JMenu viewMenu)
viewMenu - The menuprotected JMenu makeSavedViewsMenu()
public void initViewStateMenu(JMenu viewStateMenu)
viewStateMenu - the menu to initpublic boolean isCompatibleWith(ViewManager vm)
vm - the other VM
public boolean isCompatibleWith(ViewState viewState)
viewState - the ViewState
protected void makeViewStateMenu(JMenu viewStateMenu)
viewStateMenu - The menu to fill inpublic AnimationWidget getAnimationWidget()
AnimationWidget
that is used. May be null.
public void setExternalAnimation(Animation value,
AnimationWidget widget)
value - The new value for ExternalAnimationwidget - the animation widget to updatepublic Animation getExternalAnimation()
public AnimationWidget getExternalAnimationWidget()
public Animation getAnimation()
Animation
that is used. May be null. This is the
Displayable that is
added into the DisplayMaster
to control time animation.
public boolean animationOk()
public void setAnimationInfo(AnimationInfo value)
AnimationInfo property.
This holds the state of the animation (e.g, rocking, rate, etc.)
value - The new value for AnimationInfopublic AnimationInfo getAnimationInfo()
public boolean getIsDestroyed()
public void addRemovable(Removable removable)
removable - the removeablepublic void destroy()
protected List<DisplayInfo> getDisplayInfos()
DisplayInfo-s
public String toString()
toString in class Objectpublic String getTypeName()
public ViewDescriptor getViewDescriptor()
ViewDescriptor. The ViewDescriptor
is what describes this ViewManager. For now it just has
a name. We have this here for xml persistence.
public void setViewDescriptor(ViewDescriptor vd)
ViewDescriptor. We have this here for xml
persistence.
vd - The new ViewDescriptor.public void addViewDescriptor(ViewDescriptor vd)
vd - the view descriptorpublic boolean isDefinedBy(ViewDescriptor vd)
vd - the view descriptor
public boolean canBe(ViewManager that)
that - The other view manager to check
public boolean isClassOk(ViewDescriptor vd)
vd - view descriptor
public ViewManager getViewManager()
public String getUniqueId()
getUniqueId in interface SharablegetUniqueId in class SharableImplpublic JComponent getComponent()
DisplayMaster
public Container getContents()
public JComponent getInnerContents()
protected Container doMakeContents()
public void setCursorInDisplay(Cursor c)
c - The cursorpublic boolean hasDisplayMaster()
public DisplayMaster getMaster()
DisplayMaster.
public boolean shouldDoThingsRightAway()
public boolean isInteractive()
protected DisplayMaster doMakeDisplayMaster()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problempublic DisplayRenderer getDisplayRenderer()
protected void setDisplayMaster(DisplayMaster master)
DisplayMaster
master - The display masterprotected void resetProjectionControl()
public ProjectionControl getProjectionControl()
public CommandManager getCommandManager()
public final void controlChanged(ControlEvent e)
controlChanged in interface ControlListenere - The ControlEventprotected void handleControlChanged(ControlEvent e)
e - the event.
public void displayChanged(DisplayEvent de)
throws VisADException,
RemoteException
firstFrameDone
on the DisplayControls
displayChanged in interface DisplayListenerde - The DisplayEvent
RemoteException
VisADExceptionpublic long getLastFrameDoneTime()
protected void doneFirstFrame()
public void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenere - ItemEvent whose state has changed.public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - an ActionEventpublic void makeFrames()
public boolean useDisplay()
public void useImages()
public void useImages(List images,
boolean andShow)
images - list of imagesandShow - true to showpublic void startImageCapture()
ImageSequenceGrabber.
public void clearImageGrabber(ImageSequenceGrabber grabber)
isg
member if it == the given grabber.
grabber - The ImageSequenceGrabber to clearpublic void writeTestArchive(String archivePath)
archivePath - The path to write topublic void showWindow()
public void writeImage(String fileName)
fileName - File to write image to
public void writeImage(String fileName,
boolean block)
fileName - File to write image toblock - If true then do the write in this thread
public void writeImage(String fileName,
boolean block,
float quality)
fileName - File to write image toblock - If true then do the write in this threadquality - jpeg qualitypublic void writeImage(File file)
file - File to write image to
public void writeImage(File file,
boolean block)
file - File to write image toblock - If true then do the write in this thread
public void writeImage(File file,
boolean block,
boolean sync)
file - File to write image toblock - If true then do the write in this threadsync - Synchronize before capturing
public void writeImage(File file,
boolean block,
float quality)
file - File to write image toblock - If true then do the write in this threadquality - jpeg qualitypublic void doSaveState()
VMManager.saveViewManagerState(ViewManager)
public void doSaveImage()
public void doPrintImage()
public void setView(String view)
view - the view descriptionpublic void doSaveImageInThread()
public GeoLocationInfo getVisibleGeoBounds()
public static boolean isVectorGraphicsFile(String filename)
filename - name of the file
public void doSaveImage(boolean andSaveBundle)
andSaveBundle - true to save the bundle alsoprotected boolean checkForKmlImageCapture()
public int paintDisplayList(Graphics2D graphics,
List<DisplayControl> displayControls,
int width,
int height,
boolean bottom,
Color color,
Font font)
throws VisADException,
RemoteException
graphics - the graphics to paint ondisplayControls - the list of controlswidth - widthheight - heightbottom - bottom positioncolor - label colorfont - label font
RemoteException - Java RMI problem
VisADException - problem with VisAD datapublic void doPublishImage()
public void doPublishImage(String props)
props - Properties to pass through to the publish manager.
public void logException(String msg,
Throwable exc)
msg - The error messageexc - The exceptionpublic JMenu makeColorMenu()
public void initColorMenu(JMenu colorMenu)
colorMenu - The Color menu to initializepublic void removeColorPair(String name)
name - The name of the color pair to removepublic void showColorPairDialog()
public Color getForeground()
protected Color getDefaultForeground()
protected Color getDefaultBackground()
public void setForeground(Color c)
c - The new foreground colorpublic Color getBackground()
public void setBackground(Color c)
c - The new background colorpublic void setSideLegend(SideLegend value)
value - The new value for SideLegendpublic SideLegend getSideLegend()
public boolean getToolbarsFloatable()
public void setShowToolBars(boolean v)
v - Should showpublic void setLastActive(boolean b)
b - Is activepublic static Border getNormalBorder()
public static Border getHighlightBorder()
public static void setHighlightBorder(Color c)
c - The new color for the currently selected panel's border.public boolean showHighlight()
public long getLastTimeActivated()
public void setDisplayBounds(Rectangle value)
value - The new value for DisplayBoundspublic Rectangle getDisplayBounds()
protected boolean isFullScreen()
public void toggleFullScreen()
public void resetFullScreen()
public void setFullScreen()
public void setClickToFocus(boolean value)
value - The valuepublic boolean getClickToFocus()
public void setAliases(List value)
value - The new value for Aliasespublic List getAliases()
public void setDisplayMatrix(double[] newMatrix)
throws VisADException,
RemoteException
newMatrix - display matrix
VisADException - problem in VisAD display
RemoteException - problem in remote VisAD displaypublic double[] getDisplayMatrix()
public void setAnimationStringVisible(boolean visible)
visible - true to make it visiblepublic boolean getAnimationStringVisible()
public void setTopBarVisible(boolean visible)
visible - true to make it visiblepublic boolean getTopBarVisible()
public void setAniReadout(boolean value)
value - The valuepublic boolean getAniReadout()
public void setName(String value)
value - The new value for Nameprotected void updateNameLabel()
public String getName()
public void setAspectRatio(double[] value)
value - The new value for AspectRatiopublic void printAspect(String msg)
msg - a prefixpublic double[] getAspectRatio()
public void setSkinProperties(Hashtable value)
value - The new value for SkinPropertiespublic Hashtable getSkinProperties()
public String getSkinProperty(String name)
name - the name of the property
public void setLegendOnLeft(boolean value)
value - The new value for LegendOnLeftpublic boolean getLegendOnLeft()
public void setIsShared(boolean value)
value - The new value for IsSharedpublic boolean getIsShared()
public void setDisplayListFont(Font value)
value - The new value for displayListFontpublic Font getDisplayListFont()
public void setDisplayListColor(Color value)
value - The new value for displayListColorpublic Color getDisplayListColor()
public void setFullScreenWidth(int value)
value - The new value for FullScreenWidthpublic int getFullScreenWidth()
public void setFullScreenHeight(int value)
value - The new value for FullScreenHeightpublic int getFullScreenHeight()
public void setProperties(Hashtable value)
value - The new value for Propertiespublic Hashtable getProperties()
public Object getProperty(Object key)
key - key
public void putProperty(Object key,
Object value)
key - keyvalue - valuepublic CoordinateSystem getDisplayCoordinateSystem()
public void setLights(List<ucar.unidata.java3d.LightInfo> value)
value - The new value for Lightspublic List<ucar.unidata.java3d.LightInfo> getLights()
public void setSplitPaneLocation(int value)
value - The new value for SplitPaneLocationpublic int getSplitPaneLocation()
public void initViewState(ViewState viewState)
viewState - the view statepublic ViewState doMakeViewState()
public void setInitViewStateName(String s)
s - the namepublic String getInitViewStateName()
protected String getLogoFile()
public void setLogoFile(String logo)
logo - the logo file or URLpublic String getLogoPosition()
public void setLogoPosition(String logop)
logop - the logo position on the screenpublic float getLogoScale()
public void setLogoScale(float scale)
scale - the new scalepublic void setLogoVisibility(boolean on)
on - true to showpublic boolean getLogoVisibility()
public void ensureOnlyOneTimeDriver(DisplayControl displayControl)
displayControl - the time driver control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||