public class ViewManager extends SharableImpl implements java.awt.event.ActionListener, java.awt.event.ItemListener, visad.ControlListener, visad.DisplayListener
DisplayMaster
.
Provides an interface for managing user interactions, gui creation, etc.Modifier and Type | Class and Description |
---|---|
static class |
ViewManager.MatrixCommand
Class MatrixCommand manages changes to the viewpoint matrix
|
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
animationHolder
The panel that holds the animation widget
|
protected javax.swing.JMenu |
animationMenu
This holds the visibility toggle animation commands.
|
static java.awt.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 java.awt.Rectangle |
displayBounds
The bounds of the display_
|
protected javax.swing.JFrame |
fullScreenWindow
The window for full screen
|
protected static javax.swing.border.Border |
highlightBorder
highlight border
|
protected javax.swing.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 long |
lastTimePolled
flag for animation update
|
protected static TwoFacedObject[] |
logoPoses
logo positions
|
protected javax.swing.JLabel |
nameLabel
name label
|
protected static javax.swing.border.Border |
normalBorder
normal border
|
static java.lang.String |
PREF_3DCLIP
Preference for clipping at 3d box_
|
static java.lang.String |
PREF_ANIREADOUT
Preference for showing the time string in the display
|
static java.lang.String |
PREF_BGCOLOR
For the bg color
|
static java.lang.String |
PREF_BORDERCOLOR
For the currently selected panel.
|
static java.lang.String |
PREF_CONTOUR_LABELALIGN
for the contour label Font
|
static java.lang.String |
PREF_CONTOUR_LABELFONT
for the contour label Font
|
static java.lang.String |
PREF_CONTOUR_LABELSIZE
for the contour label size
|
static java.lang.String |
PREF_DIMENSION
Preference for 3d or 2d _
|
static java.lang.String |
PREF_DISPLAYLISTCOLOR
For the display list color
|
static java.lang.String |
PREF_DISPLAYLISTFONT
For the display list font
|
static java.lang.String |
PREF_FGCOLOR
For the foreground color
|
static java.lang.String |
PREF_LOGO
for the logo
|
static java.lang.String |
PREF_LOGO_POSITION_OFFSET
for the logo position
|
static java.lang.String |
PREF_LOGO_SCALE
for the logo scale
|
static java.lang.String |
PREF_LOGO_VISIBILITY
for the logo visibility
|
static java.lang.String |
PREF_PREFIX
Prefix used for preference String ids
|
static java.lang.String |
PREF_SHAREVIEWS
Preference for sharing view points
|
static java.lang.String |
PREF_SHOWANIMATIONBOXES
Show the bottom legend
|
static java.lang.String |
PREF_SHOWBOTTOMLEGEND
Show the bottom legend
|
static java.lang.String |
PREF_SHOWCURSOR
Preference for showing cursor readout
|
static java.lang.String |
PREF_SHOWDISPLAYLIST
Preference for showing cursor readout
|
static java.lang.String |
PREF_SHOWSCALES
Preference for showing the wireframe box
|
static java.lang.String |
PREF_SHOWSIDELEGEND
Show the side legend
|
static java.lang.String |
PREF_SHOWTOOLBAR
For hiding/showing components of the toolbar
|
static java.lang.String |
PREF_SHOWTRANSECTSCALES
Preference for showing the wireframe box
|
static java.lang.String |
PREF_TOOLBARSFLOATABLE
are the toolbars floatable
|
static java.lang.String |
PREF_TOPBAR_VISIBLE
For the visibility of the top compenent
|
static java.lang.String |
PREF_WAITMSG
For the visibility of the please wait message
|
static java.lang.String |
PREF_WIREFRAME
Preference for showing the wireframe box
|
static java.lang.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 java.lang.String |
TAG_COLORPAIR
Xml tag for the color pair
|
static java.lang.String |
TAG_COLORPAIRS
Xml tag for the color pairs xml
|
protected java.util.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 java.util.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 java.util.List |
toolbars
List of Components that are shown in the left side, vertical tool bar
|
protected java.awt.Rectangle |
windowBounds
We keep the window bounds around for persisting/unpersisting
this ViewManager.
|
Constructor and Description |
---|
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,
java.lang.String properties)
Create this ViewManager.
|
ViewManager(ViewContext viewContext,
ViewDescriptor viewDescriptor,
java.lang.String properties)
Instantiate this ViewManager with the given AnimationInfo
|
ViewManager(ViewContext viewContext,
ViewDescriptor viewDescriptor,
java.lang.String properties,
AnimationInfo info)
Instantiate this ViewManager with the given AnimationInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.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(java.util.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(java.util.List<DisplayInfo> displayInfos)
Add the display infos
|
void |
addDisplayListener(visad.DisplayListener listener)
Adds the given display listener to the
DisplayMaster |
protected void |
addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
Add a JTabbedPane to the properties component
|
void |
addRemovable(Removable removable)
Add a removeable object
|
protected void |
addToolBar(java.awt.Component component,
java.lang.String id,
java.lang.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
|
java.awt.image.BufferedImage |
captureIslImage(org.w3c.dom.Element scriptingNode)
Capture the image for for ISL.
|
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(visad.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 javax.swing.JCheckBoxMenuItem |
createCBMI(javax.swing.JMenu menu,
java.lang.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(visad.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(java.lang.Object object)
Handle the drop action
|
protected java.awt.Container |
doMakeContents()
Create the main GUI contents.
|
protected DisplayMaster |
doMakeDisplayMaster()
Make the DisplayMaster for this ViewManger.
|
protected javax.swing.JMenuBar |
doMakeMenuBar()
Create and return the menu bar.
|
java.util.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(java.lang.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(java.lang.String loc)
Find the appropriate combobox item from the string
|
void |
firstInitializeViewMenu(javax.swing.JMenu viewMenu)
Initialize the view menu.
|
java.util.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
|
visad.DateTime[] |
getAnimationTimes()
Get the array of animation times
|
AnimationWidget |
getAnimationWidget()
Return the
AnimationWidget
that is used. |
boolean |
getAniReadout()
Get the animation readout flag
|
protected javax.swing.JComponent |
getAspectPropertiesComponent()
Get the aspect properties component
|
double[] |
getAspectRatio()
Get the AspectRatio property.
|
java.awt.Color |
getBackground()
Get the background color or black if it is null
|
java.util.Hashtable |
getBooleanPropertiesForPersistence()
Get the BooleanPropertiesForPersistence property.
|
protected BooleanProperty |
getBooleanProperty(java.lang.String propertyId)
Find, or create, the BooleanProperty identified with the given id
|
protected BooleanProperty |
getBooleanProperty(java.lang.String propertyId,
boolean dflt)
Get a BooleanProperty
|
protected boolean |
getBp(java.lang.String propertyId)
Get the value of the BooleanProperty
|
protected boolean |
getBp(java.lang.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
|
javax.swing.JComponent |
getComponent()
Return the GUI component from the
DisplayMaster |
java.awt.Container |
getContents()
Return the full GUI contents.
|
protected javax.swing.border.Border |
getContentsBorder()
Get the border for the contents
|
java.util.List |
getControls()
Return the list of
DisplayControl s displayed in this ViewManager. |
java.util.List |
getControlsForLegend()
Return the list of
DisplayControl s displayed in this ViewManager
that are meant to be shown in a legend |
protected java.awt.Color |
getDefaultBackground()
Get the default background color
|
protected java.awt.Color |
getDefaultForeground()
Get the default foreground color
|
java.awt.Rectangle |
getDisplayBounds()
Get the DisplayBounds property.
|
DisplayConventions |
getDisplayConventions()
A wrapper around
IdvBase.getDisplayConventions() |
visad.CoordinateSystem |
getDisplayCoordinateSystem()
Get the display side coordinate system, subclasses should implement
if there is one.
|
protected java.util.List<DisplayInfo> |
getDisplayInfos()
Get a copy of the list of
DisplayInfo -s |
double[] |
getDisplayInitMatrix()
Get the display matrix array
|
java.awt.Color |
getDisplayListColor()
Get the display list color property.
|
java.awt.Font |
getDisplayListFont()
Get the display list font property.
|
double[] |
getDisplayMatrix()
Get the display matrix array
|
visad.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.
|
java.awt.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 javax.swing.border.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(java.util.List props)
Get the intial BooleanProperties
|
java.lang.String |
getInitViewStateName()
Get the intial ViewState name
|
javax.swing.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 java.util.List<IdvLegend> |
getLegends()
Get the legends
|
java.lang.String |
getLegendState()
Get the LegendState property.
|
java.util.List<ucar.unidata.java3d.LightInfo> |
getLights()
Get the Lights property.
|
protected java.lang.String |
getLogoFile()
Get the logo
|
java.lang.String |
getLogoPosition()
Get the logo position on the screen
|
float |
getLogoScale()
Get the logo scale
|
boolean |
getLogoVisibility()
Get the logo visibility
|
protected javax.swing.JComponent |
getMainPropertiesComponent()
Get main properties component
|
DisplayMaster |
getMaster()
Get the
DisplayMaster . |
java.awt.Dimension |
getMySize()
Get the default size of the DisplayMaster held by this view.
|
java.lang.String |
getName()
Get the Name property.
|
static javax.swing.border.Border |
getNormalBorder()
Get the normal border
|
boolean |
getPerspectiveView()
Get whether this is in a perspective view or not
|
visad.ProjectionControl |
getProjectionControl()
Get the projection control
|
java.util.List |
getProjectionList()
Get the list of Projections available.
|
java.util.Hashtable |
getProperties()
Get the Properties property.
|
javax.swing.JComponent |
getPropertiesComponent()
Get the component for setting properties on the display.
|
java.lang.Object |
getProperty(java.lang.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 javax.swing.JComponent |
getSideComponent(javax.swing.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.
|
javax.swing.JSplitPane |
getSideLegendContainer()
Deprecated.
No longer called sideLegendContainer
|
java.util.Hashtable |
getSkinProperties()
Get the SkinProperties property.
|
java.lang.String |
getSkinProperty(java.lang.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() |
java.util.List<visad.DateTime> |
getTimeDriverTimes()
Get the list of times from the control that is flagged as the time driver
|
javax.swing.JComponent |
getTimelineComponent()
make the timeline gui
|
boolean |
getToolbarsFloatable()
are the toolbars floatable
|
boolean |
getTopBarVisible()
Get the top component visibility.
|
java.lang.String |
getTypeName()
What type of view is this
|
java.lang.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(java.lang.String id,
boolean value)
The BooleanProperty identified by the given id has changed.
|
protected void |
handleControlChanged(visad.ControlEvent e)
Handle a control changed.
|
protected boolean |
hasBooleanProperty(java.lang.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
BooleanProperty s. |
void |
initColorMenu(javax.swing.JMenu colorMenu)
Dynamically add the menu items into the color menu
|
void |
initDisplayMenu(javax.swing.JMenu displayMenu)
This is called when the list of display controls has changed
to update the display menu.
|
void |
initFromSkin(org.w3c.dom.Element skinNode)
Initialize from a skin
|
protected void |
initializeBooleanProperty(BooleanProperty bp)
Initialize a BooleanProperty
|
void |
initializeViewMenu(javax.swing.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(javax.swing.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(java.lang.String filename)
Check to see if the file is a vector graphics file
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
Responds to ItemEvents handled by an ItemListener; in this
class, from JCheckBoxes.
|
void |
keyWasTyped(java.awt.event.KeyEvent keyEvent)
Process sthe key event
|
void |
logException(java.lang.String msg,
java.lang.Throwable exc)
Helper to log errors
|
java.awt.image.BufferedImage |
makeBufferedImage(java.awt.Component comp,
java.lang.String whichComponent)
Make buffered image.
|
javax.swing.JMenu |
makeColorMenu()
make the color set menu
|
DropPanel |
makeDropPanel(javax.swing.JComponent contents,
boolean doBorder)
Make a dnd panel
|
void |
makeFrames()
Make frames
|
protected java.lang.String |
makeLogoPosition(java.lang.String pos,
java.lang.String offset)
Make a logo position from the position and offset
|
protected javax.swing.JMenu |
makeSavedViewsMenu()
Make the saved views menu
|
protected javax.swing.JMenu |
makeShowMenu()
Create and return the show menu.
|
javax.swing.JMenu |
makeViewMenu()
Create and return the view menu.
|
protected void |
makeViewStateMenu(javax.swing.JMenu viewStateMenu)
Make the view state menu
|
protected void |
notifyDisplayControls(java.lang.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(java.awt.Graphics2D graphics,
java.util.List<DisplayControl> displayControls,
int width,
int height,
boolean bottom,
java.awt.Color color,
java.awt.Font font)
Paint the display list in a 2D graphics
|
protected java.lang.String[] |
parseLogoPosition(java.lang.String position)
Parse the logo position
|
void |
parseProperties(java.lang.String properties)
Parse and apply the properties in the semi-colon delimited
list of name=value pairs.
|
void |
printAspect(java.lang.String msg)
Print the aspect
|
void |
putProperty(java.lang.Object key,
java.lang.Object value)
Set a property.
|
protected void |
reallyFillLegends()
tell the legends to fill themselves
|
void |
removeColorPair(java.lang.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(java.util.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(java.awt.Color c)
Set the background color
|
protected void |
setBooleanProperties(ViewManager vm)
Set the different boolean flags from those held by the
given view manager.
|
void |
setBooleanPropertiesForPersistence(java.util.Hashtable value)
Set the BooleanPropertiesForPersistence property.
|
protected void |
setBp(java.lang.String propertyId,
boolean value)
Helper to set the value of a BooleanProperty
|
void |
setClickToFocus(boolean value)
Set the click to focus property.
|
void |
setColors(java.awt.Color foreground,
java.awt.Color background)
Set the foreground and background colors in the display.
|
void |
setContentsBorder(javax.swing.border.Border b)
Set the contents boreder
|
void |
setCursorInDisplay(java.awt.Cursor c)
Set the cursor in the component of the main display
|
void |
setDisplayBounds(java.awt.Rectangle value)
Set the DisplayBounds property.
|
void |
setDisplayListColor(java.awt.Color value)
Set the display list color property.
|
void |
setDisplayListFont(java.awt.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(java.awt.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(java.awt.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(java.lang.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,
java.lang.String state)
Set the state of the legend
|
void |
setLegendState(java.lang.String value)
Set the LegendState property.
|
void |
setLights(java.util.List<ucar.unidata.java3d.LightInfo> value)
Set the Lights property.
|
void |
setLogoFile(java.lang.String logo)
Set the logo file or URL
|
void |
setLogoPosition(java.lang.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(java.lang.String value)
Set the Name property.
|
void |
setProjectionFromData(boolean value)
_more_
|
void |
setProperties(java.util.Hashtable value)
Set the Properties property.
|
boolean |
setProperty(java.lang.String name,
java.lang.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(java.lang.String state)
Set the position state of the side legend
|
void |
setSize(java.awt.Dimension d)
Set the default size of the DisplayMaster held by this view.
|
void |
setSkinProperties(java.util.Hashtable value)
Set the SkinProperties property.
|
void |
setSplitPaneLocation(int value)
Set the SplitPaneLocation property.
|
void |
setTimeDriverTimes(java.util.Date startTime,
java.util.Date endTime)
set the animation widget starttime and endtime as the time driver times
|
void |
setTopBarVisible(boolean visible)
Toggle the top component visibility.
|
void |
setView(java.lang.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(java.awt.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
|
java.lang.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(java.util.List images,
boolean andShow)
Use the images
|
void |
writeImage(java.io.File file)
Create a screen image and write it to the given file
|
void |
writeImage(java.io.File file,
boolean block)
Create a screen image and write it to the given file
|
void |
writeImage(java.io.File file,
boolean block,
boolean sync)
Create a screen image and write it to the given file
|
void |
writeImage(java.io.File file,
boolean block,
float quality)
Create a screen image and write it to the given file
|
void |
writeImage(java.lang.String fileName)
Create a screen image and write it to the given file
|
void |
writeImage(java.lang.String fileName,
boolean block)
Create a screen image and write it to the given file
|
void |
writeImage(java.lang.String fileName,
boolean block,
float quality)
Create a screen image and write it to the given file
|
void |
writeTestArchive(java.lang.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)
|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
public static final java.lang.String PREF_3DCLIP
public static final java.lang.String PREF_ANIREADOUT
public static final java.lang.String PREF_BGCOLOR
public static final java.lang.String PREF_BORDERCOLOR
public static final java.lang.String PREF_CONTOUR_LABELALIGN
public static final java.lang.String PREF_CONTOUR_LABELFONT
public static final java.lang.String PREF_CONTOUR_LABELSIZE
public static final java.lang.String PREF_DIMENSION
public static final java.lang.String PREF_DISPLAYLISTCOLOR
public static final java.lang.String PREF_DISPLAYLISTFONT
public static final java.lang.String PREF_FGCOLOR
public static final java.lang.String PREF_LOGO
public static final java.lang.String PREF_LOGO_POSITION_OFFSET
public static final java.lang.String PREF_LOGO_SCALE
public static final java.lang.String PREF_LOGO_VISIBILITY
public static final java.lang.String PREF_PREFIX
public static final java.lang.String PREF_SHAREVIEWS
public static final java.lang.String PREF_SHOWANIMATIONBOXES
public static final java.lang.String PREF_SHOWBOTTOMLEGEND
public static final java.lang.String PREF_SHOWCURSOR
public static final java.lang.String PREF_SHOWDISPLAYLIST
public static final java.lang.String PREF_SHOWSCALES
public static final java.lang.String PREF_SHOWSIDELEGEND
public static final java.lang.String PREF_SHOWTOOLBAR
public static final java.lang.String PREF_SHOWTRANSECTSCALES
public static final java.lang.String PREF_TOOLBARSFLOATABLE
public static final java.lang.String PREF_TOPBAR_VISIBLE
public static final java.lang.String PREF_WAITMSG
public static final java.lang.String PREF_WIREFRAME
public static final java.lang.String PROP_COMPONENT_RESIZED
public static final java.lang.String TAG_COLORPAIR
public static final java.lang.String TAG_COLORPAIRS
public static final int borderWidth
public static java.awt.Color borderHighlightColor
protected static TwoFacedObject[] logoPoses
protected static javax.swing.border.Border highlightBorder
protected static javax.swing.border.Border normalBorder
protected boolean clickToFocus
protected boolean lastActive
protected long lastTimeActivated
protected java.util.List toolbars
protected java.util.List toolbarNames
protected java.util.List toolbarIds
protected boolean showControlMenu
protected boolean showControlLegend
protected javax.swing.JComponent animationHolder
protected javax.swing.JMenu animationMenu
protected java.awt.Rectangle displayBounds
protected javax.swing.JFrame fullScreenWindow
protected javax.swing.JComponent innerContents
protected javax.swing.JLabel nameLabel
protected long lastTimePolled
protected java.awt.Rectangle windowBounds
public ViewManager()
public ViewManager(ViewContext viewContext)
viewContext
- As a hack this really better be an IntegratedDataViewerpublic ViewManager(ViewContext viewContext, AnimationInfo info)
viewContext
- As a hack this really better be an IntegratedDataViewerinfo
- The initial animation infopublic ViewManager(ViewContext viewContext, ViewDescriptor viewDescriptor, java.lang.String properties)
viewContext
- As a hack this really better be an IntegratedDataViewerviewDescriptor
- the view descriptorproperties
- a list of semi-colon separated propertiespublic ViewManager(ViewContext viewContext, DisplayMaster master, ViewDescriptor viewDescriptor, java.lang.String properties) throws visad.VisADException, java.rmi.RemoteException
viewContext
- As a hack this really better be an IntegratedDataViewermaster
- The DisplayMaster to useviewDescriptor
- 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.visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic ViewManager(ViewContext viewContext, ViewDescriptor viewDescriptor, java.lang.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 infoprotected void init() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic visad.DateTime[] getAnimationTimes()
public java.util.List<visad.DateTime> getTimeDriverTimes() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic void setTimeDriverTimes(java.util.Date startTime, java.util.Date endTime) throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problemprotected boolean getHaveInitialized()
protected boolean getInitDone()
public void initFromSkin(org.w3c.dom.Element skinNode)
skinNode
- the XML nodepublic void doDrop(java.lang.Object object)
object
- object being droppedprotected void initUI()
public void setSideLegendPosition(java.lang.String state)
state
- float, hidden, etcprotected void insertSideLegend()
public DropPanel makeDropPanel(javax.swing.JComponent contents, boolean doBorder)
contents
- contents to showdoBorder
- draw a borderpublic boolean okToImportDisplay(DisplayControl control)
control
- controlpublic void setContentsBorder(javax.swing.border.Border b)
b
- the borderprotected javax.swing.border.Border getContentsBorder()
public void showPropertiesDialog()
public javax.swing.JComponent getPropertiesComponent()
protected javax.swing.JComponent getMainPropertiesComponent()
protected TwoFacedObject findLoc(java.lang.String loc)
loc
- the string locationprotected java.lang.String[] parseLogoPosition(java.lang.String position)
position
- the string representationprotected java.lang.String makeLogoPosition(java.lang.String pos, java.lang.String offset)
pos
- the positionoffset
- the offsetprotected void addPropertiesComponents(javax.swing.JTabbedPane tabbedPane)
tabbedPane
- the pane to addpublic void aspectSliderChanged(int value)
value
- the new valuepublic void resetAspectSliders()
public void brighter()
protected javax.swing.JComponent getAspectPropertiesComponent()
public boolean applyProperties()
protected void updateAnnotations()
public void initAfterUnPersistence(IntegratedDataViewer idv) throws visad.VisADException, java.rmi.RemoteException
idv
- the IDV associated with this.java.rmi.RemoteException
- Java RMI exceptionvisad.VisADException
- Couldn't create the VisAD displaypublic void initWith(ViewState viewState) throws java.lang.Exception
viewState
- the view statejava.lang.Exception
- problem initializingpublic final void initWith(ViewManager that)
that
- The other view managerpublic 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 visad.VisADException, java.rmi.RemoteException
that
- The other view managerignoreWindow
- If false then we set the window bounds
of this ViewManager to the bounds held in that ViewManager.java.rmi.RemoteException
- Java RMI exceptionvisad.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 visad.VisADException, java.rmi.RemoteException
vm
- The ViewManager to get state fromvisad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionprotected void handleBooleanPropertyChange(java.lang.String id, boolean value) throws java.lang.Exception
id
- Id of the changed BooleanPropertyvalue
- Its new valuejava.lang.Exception
- problem handling the changepublic void showTimeline()
protected void animationTimeChanged()
public javax.swing.JComponent getTimelineComponent()
public void updateDisplayList()
public boolean getPerspectiveView()
protected void getInitialBooleanProperties(java.util.List props)
props
- the propertiesprotected void initBooleanProperties()
BooleanProperty
s.
These hold all of the different flag based display state.protected void initializeBooleanProperty(BooleanProperty bp)
bp
- the propertyprotected boolean hasBooleanProperty(java.lang.String propertyId)
propertyId
- property idprotected BooleanProperty getBooleanProperty(java.lang.String propertyId)
propertyId
- Identifies the BooleanPropertyprotected BooleanProperty getBooleanProperty(java.lang.String propertyId, boolean dflt)
propertyId
- the propertydflt
- the default valueprotected void setBp(java.lang.String propertyId, boolean value)
propertyId
- Identifies the BooleanPropertyvalue
- The value to setprotected boolean getBp(java.lang.String propertyId)
propertyId
- Identifies the BooleanPropertyprotected boolean getBp(java.lang.String propertyId, boolean dflt)
propertyId
- the iddflt
- the default valuepublic 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(java.util.Hashtable value)
value
- The new value for BooleanPropertiesForPersistencepublic java.util.Hashtable getBooleanPropertiesForPersistence()
protected javax.swing.JCheckBoxMenuItem createCBMI(javax.swing.JMenu menu, java.lang.String id)
menu
- The menu to add the checkbox menu item intoid
- Identifies the boolean property that this cbmi controlspublic void setWireframe(boolean value)
value
- The valuepublic boolean getWireframe()
public void setShowScales(boolean value)
value
- The valuepublic boolean getShowScales()
public javax.swing.JSplitPane getSideLegendContainer()
protected javax.swing.JComponent getSideComponent(javax.swing.JComponent sideLegend)
sideLegend
- The side legendpublic void setInitialSplitPaneLocation(double value)
value
- The new value for InitialSplitPaneLocationpublic void setLegendState(IdvLegend legend, java.lang.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(java.awt.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 java.util.List<IdvLegend> getLegends()
protected void doClose()
public void showLegend()
public IdvWindow getDisplayWindow()
public void setSize(java.awt.Dimension d)
d
- The default sizepublic java.awt.Dimension getMySize()
public void initPreferences(IdvPreferenceManager preferenceManager)
preferenceManager
- The preference managerpublic XmlObjectStore getStore()
IdvBase.getStore()
public java.util.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(java.lang.String properties)
properties
- The list of propertiespublic boolean setProperty(java.lang.String name, java.lang.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 errorpublic 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(java.awt.event.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(java.lang.String property)
property
- Identifes the change type.protected void addToolBar(java.awt.Component component, java.lang.String id, java.lang.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(java.lang.String value)
value
- The new value for LegendStatepublic java.lang.String getLegendState()
protected javax.swing.JMenuBar doMakeMenuBar()
public java.util.ArrayList doMakeMenuList()
public java.util.List getControls()
DisplayControl
s displayed in this ViewManager.public void displayDataChanged(DisplayControl displayControl)
displayControl
- the controlpublic void animationDriverChanged()
public java.util.List getControlsForLegend()
DisplayControl
s displayed in this ViewManager
that are meant to be shown in a legendpublic void setColors(java.awt.Color foreground, java.awt.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(javax.swing.JMenu displayMenu)
displayMenu
- The menu to fillpublic void addDisplayListener(visad.DisplayListener listener)
DisplayMaster
listener
- The listener to addpublic DisplayConventions getDisplayConventions()
IdvBase.getDisplayConventions()
DisplayConventions
to use.public void removeDisplayInfo(DisplayInfo displayInfo) throws java.rmi.RemoteException, visad.VisADException
DisplayInfo
.
The DisplayInfo is what really holds the
DisplayControl
.displayInfo
- The display info to removejava.rmi.RemoteException
- the remote exceptionvisad.VisADException
- the VisAD exceptionpublic boolean getUseFastRendering(boolean b)
b
- The displays fast rendering flagpublic void addDisplayInfos(java.util.List<DisplayInfo> displayInfos) throws java.rmi.RemoteException, visad.VisADException
displayInfos
- the display infosjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD Exceptionpublic boolean addDisplayInfo(DisplayInfo displayInfo) throws java.rmi.RemoteException, visad.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.java.rmi.RemoteException
- the remote exceptionvisad.VisADException
- the VisAD exceptionpublic void updateDisplayIfNeeded() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic void toFront()
public void clearDisplays()
public void controlMoved(DisplayControl control)
control
- The display control that has been movedprotected javax.swing.JMenu makeShowMenu()
public javax.swing.JMenu makeViewMenu()
public void addContextMenuItems(java.util.List menuItems)
menuItems
- List to add topublic void firstInitializeViewMenu(javax.swing.JMenu viewMenu)
viewMenu
- the view menupublic void initializeViewMenu(javax.swing.JMenu viewMenu)
viewMenu
- The menuprotected javax.swing.JMenu makeSavedViewsMenu()
public void initViewStateMenu(javax.swing.JMenu viewStateMenu)
viewStateMenu
- the menu to initpublic boolean isCompatibleWith(ViewManager vm)
vm
- the other VMpublic boolean isCompatibleWith(ViewState viewState)
viewState
- the ViewStateprotected void makeViewStateMenu(javax.swing.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 java.util.List<DisplayInfo> getDisplayInfos()
DisplayInfo
-spublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.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 descriptorpublic boolean canBe(ViewManager that)
that
- The other view manager to checkpublic boolean isClassOk(ViewDescriptor vd)
vd
- view descriptorpublic ViewManager getViewManager()
public java.lang.String getUniqueId()
getUniqueId
in interface Sharable
getUniqueId
in class SharableImpl
public javax.swing.JComponent getComponent()
DisplayMaster
public java.awt.Container getContents()
public javax.swing.JComponent getInnerContents()
protected java.awt.Container doMakeContents()
public void setCursorInDisplay(java.awt.Cursor c)
c
- The cursorpublic boolean hasDisplayMaster()
public DisplayMaster getMaster()
DisplayMaster
.public boolean shouldDoThingsRightAway()
public boolean isInteractive()
protected DisplayMaster doMakeDisplayMaster() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- Java RMI problemvisad.VisADException
- VisAD problempublic visad.DisplayRenderer getDisplayRenderer()
protected void setDisplayMaster(DisplayMaster master)
DisplayMaster
master
- The display masterprotected void resetProjectionControl()
public visad.ProjectionControl getProjectionControl()
public CommandManager getCommandManager()
public final void controlChanged(visad.ControlEvent e)
controlChanged
in interface visad.ControlListener
e
- The ControlEvent
protected void handleControlChanged(visad.ControlEvent e)
e
- the event.public void displayChanged(visad.DisplayEvent de) throws visad.VisADException, java.rmi.RemoteException
firstFrameDone
on the DisplayControl
sdisplayChanged
in interface visad.DisplayListener
de
- The DisplayEvent
visad.VisADException
- the VisAD exceptionjava.rmi.RemoteException
- the remote exceptionpublic long getLastFrameDoneTime()
protected void doneFirstFrame()
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- ItemEvent whose state has changed.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- an ActionEventpublic void makeFrames()
public boolean useDisplay()
public void useImages()
public void useImages(java.util.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(java.lang.String archivePath)
archivePath
- The path to write topublic void showWindow()
public void writeImage(java.lang.String fileName)
fileName
- File to write image topublic void writeImage(java.lang.String fileName, boolean block)
fileName
- File to write image toblock
- If true then do the write in this threadpublic void writeImage(java.lang.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(java.io.File file)
file
- File to write image topublic void writeImage(java.io.File file, boolean block)
file
- File to write image toblock
- If true then do the write in this threadpublic void writeImage(java.io.File file, boolean block, boolean sync)
file
- File to write image toblock
- If true then do the write in this threadsync
- Synchronize before capturingpublic void writeImage(java.io.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(java.lang.String view)
view
- the view descriptionpublic void doSaveImageInThread()
public GeoLocationInfo getVisibleGeoBounds()
public static boolean isVectorGraphicsFile(java.lang.String filename)
filename
- name of the filepublic void doSaveImage(boolean andSaveBundle)
andSaveBundle
- true to save the bundle alsopublic java.awt.image.BufferedImage captureIslImage(org.w3c.dom.Element scriptingNode) throws java.lang.Exception
scriptingNode
- The ISL nodejava.lang.Exception
public java.awt.image.BufferedImage makeBufferedImage(java.awt.Component comp, java.lang.String whichComponent) throws java.awt.AWTException
comp
- the componentwhichComponent
- which componentjava.awt.AWTException
- the AWT exceptionprotected boolean checkForKmlImageCapture()
public int paintDisplayList(java.awt.Graphics2D graphics, java.util.List<DisplayControl> displayControls, int width, int height, boolean bottom, java.awt.Color color, java.awt.Font font) throws visad.VisADException, java.rmi.RemoteException
graphics
- the graphics to paint ondisplayControls
- the list of controlswidth
- widthheight
- heightbottom
- bottom positioncolor
- label colorfont
- label fontjava.rmi.RemoteException
- Java RMI problemvisad.VisADException
- problem with VisAD datapublic void doPublishImage()
public void doPublishImage(java.lang.String props)
props
- Properties to pass through to the publish manager.public void logException(java.lang.String msg, java.lang.Throwable exc)
msg
- The error messageexc
- The exceptionpublic javax.swing.JMenu makeColorMenu()
public void initColorMenu(javax.swing.JMenu colorMenu)
colorMenu
- The Color menu to initializepublic void removeColorPair(java.lang.String name)
name
- The name of the color pair to removepublic void showColorPairDialog()
public java.awt.Color getForeground()
protected java.awt.Color getDefaultForeground()
protected java.awt.Color getDefaultBackground()
public void setForeground(java.awt.Color c)
c
- The new foreground colorpublic java.awt.Color getBackground()
public void setBackground(java.awt.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 javax.swing.border.Border getNormalBorder()
public static javax.swing.border.Border getHighlightBorder()
public static void setHighlightBorder(java.awt.Color c)
c
- The new color for the currently selected panel's border.public boolean showHighlight()
public long getLastTimeActivated()
public void setDisplayBounds(java.awt.Rectangle value)
value
- The new value for DisplayBoundspublic java.awt.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(java.util.List value)
value
- The new value for Aliasespublic java.util.List getAliases()
public void setDisplayMatrix(double[] newMatrix) throws visad.VisADException, java.rmi.RemoteException
newMatrix
- display matrixvisad.VisADException
- problem in VisAD displayjava.rmi.RemoteException
- problem in remote VisAD displaypublic double[] getDisplayMatrix()
public double[] getDisplayInitMatrix()
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(java.lang.String value)
value
- The new value for Nameprotected void updateNameLabel()
public java.lang.String getName()
public void setAspectRatio(double[] value)
value
- The new value for AspectRatiopublic void printAspect(java.lang.String msg)
msg
- a prefixpublic double[] getAspectRatio()
public void setSkinProperties(java.util.Hashtable value)
value
- The new value for SkinPropertiespublic java.util.Hashtable getSkinProperties()
public java.lang.String getSkinProperty(java.lang.String name)
name
- the name of the propertypublic 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(java.awt.Font value)
value
- The new value for displayListFontpublic java.awt.Font getDisplayListFont()
public void setDisplayListColor(java.awt.Color value)
value
- The new value for displayListColorpublic java.awt.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(java.util.Hashtable value)
value
- The new value for Propertiespublic java.util.Hashtable getProperties()
public java.lang.Object getProperty(java.lang.Object key)
key
- keypublic void putProperty(java.lang.Object key, java.lang.Object value)
key
- keyvalue
- valuepublic visad.CoordinateSystem getDisplayCoordinateSystem()
public void setLights(java.util.List<ucar.unidata.java3d.LightInfo> value)
value
- The new value for Lightspublic java.util.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(java.lang.String s)
s
- the namepublic java.lang.String getInitViewStateName()
protected java.lang.String getLogoFile()
public void setLogoFile(java.lang.String logo)
logo
- the logo file or URLpublic java.lang.String getLogoPosition()
public void setLogoPosition(java.lang.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 controlpublic void setProjectionFromData(boolean value)
value
- _more_