public class DrawingControl extends DisplayControlImpl
| Modifier and Type | Class and Description |
|---|---|
class |
DrawingControl.GlyphTable
Class GlyphTable
|
class |
DrawingControl.GlyphTableModel
Class GlyphTableModel shows locations
|
DisplayControlImpl.SideLegendLabel| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_EDITABLE
Xml attribute for the editable property
|
static java.lang.String |
ATTR_FRONTDISPLAY
xgrf attribute
|
static java.lang.String |
ATTR_TITLE
Xml attribute for the title property
|
static java.lang.String |
ATTR_USETIMESINANIMATION
xgrf xml attribute
|
static DrawingCommand |
CMD_MOVE
command
|
static DrawingCommand |
CMD_SELECT
Select command
|
static DrawingCommand |
CMD_STRETCH
command
|
protected DrawingCommand |
currentCmd
Current command
|
protected DataChoice |
datachoice |
protected java.util.HashMap |
dataChoiceProperties
The label to show the readout in the side legend
|
protected javax.swing.JCheckBox |
enabledCbx
Controls the disabled state
|
static PatternFileFilter |
FILTER_XGRF
File filter used for the xgrf files
|
static int |
FLAG_FILLED
Filled capable flag for the command object
|
static int |
FLAG_FULLLATLON
Full lat/lon capable flag for the command object
|
static int |
FLAG_STRAIGHT
flag for straight
|
protected java.util.List |
glyphs
List of all glyphs
|
boolean |
isProbsevere |
protected javax.swing.JTextArea |
legendNoteTextArea
Keep around for the legend
|
protected javax.swing.JComponent |
legendNoteWrapper
Keep around for the legend
|
protected java.util.List |
selectedGlyphs
List of selected glyphs
|
static java.lang.String |
SHARE_LINES
property for sharing lines
|
protected javax.swing.JCheckBox |
straightCbx
Filled mode
|
static java.lang.String |
SUFFIX_XGRF
File suffix used for the xgrfg files
|
static java.lang.String |
TAG_EDITOR
Xml tag for the editor settings in the import/export format
|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, isProgressiveResolution, matchDisplayRegion, noteTextArea, noteWrapper, paramName, reloadFromBounds, requestProperties, resolutionReadout, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGEAPPEARANCE_DARK, APPEARANCE_IDV, APPEARANCE_LIGHT, CMD_BARBSIZE, CMD_COLORS, CMD_COLORTABLE, CMD_INTERVAL, CMD_LEVEL, CMD_LINEWIDTH, CMD_POPUP, CMD_REMOVE, DEFAULT_POINT_SIZE, DEFAULT_SAMPLING_MODE, FIND_ALL, FIND_CATEGORY, FIND_CLASS, FIND_SPECIAL, FIND_THIS, FIND_WITHDATA, FIND_WITHTHISDATA, FIND_WITHTHISFIELD, FIND_WITHTHISVIEW, FLAG_COLOR, FLAG_COLORTABLE, FLAG_COLORUNIT, FLAG_CONTOUR, FLAG_DATACONTROL, FLAG_DISPLAYUNIT, FLAG_GRIDTRAJECTORY, FLAG_LINEWIDTH, FLAG_NONE, FLAG_SELECTRANGE, FLAG_SKIPFACTOR, FLAG_SMOOTHING, FLAG_TEXTUREQUALITY, FLAG_TIMERANGE, FLAG_ZPOSITION, GRID_INSETS, ICON_LOCK, ICON_REMOVE, ICON_UNLOCK, LABEL_NONE, log_, MACRO_DATASOURCENAME, MACRO_DISPLAYNAME, MACRO_DISPLAYUNIT, MACRO_FHOUR, MACRO_FHOUR2, MACRO_LONGNAME, MACRO_POSITION, MACRO_RESOLUTION, MACRO_SHORTNAME, MACRO_STATION, MACRO_TIMESTAMP, MACRO_VALUE, NEAREST_NEIGHBOR, PREF_DISPLAYLIST_TEMPLATE, PREF_EXTRALABEL_TEMPLATE, PREF_LEGENDLABEL_TEMPLATE, PROP_REMOVED, SETTINGS_GROUP_DISPLAY, SETTINGS_GROUP_FLAGS, SHARE_CHOICES, SHARE_COLOR, SHARE_COLORSCALE, SHARE_COLORTABLE, SHARE_DISPLAYUNIT, SHARE_POSITION, SHARE_SELECTRANGE, SHARE_SKIPVALUE, SHARE_TRANSECT, SHARE_VISIBILITY, WEIGHTED_AVERAGEBOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND| Constructor and Description |
|---|
DrawingControl()
Create a new Drawing Control; set attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addControlWidgets(java.util.List widgets)
Add the widgets into the controls panel
|
protected void |
addFileMenuItems(java.util.List items,
boolean forMenuBar)
Add to the file menu
|
protected boolean |
addGlyph(DrawingGlyph glyph)
Add the glyph into the list of glyphs
|
protected void |
addLabelMacros(java.lang.String template,
java.util.List patterns,
java.util.List values)
Add any macro name/value pairs.
|
void |
applyColorToAll()
Apply the current color to all glyphs
|
void |
applyZPosition(java.util.List glyphs)
Apply the current z position to all glyphs
|
protected boolean |
canHandleEvents()
Should we handle display events
|
protected void |
checkZSliderEnabled()
Enable/disable the z slider
|
void |
close()
Clear the selection when we minisze the window
|
DrawingGlyph |
closestGlyph(visad.DisplayEvent event)
Find the glyph that is closest to the x/y point of the given event
|
DrawingGlyph |
closestGlyph(visad.DisplayEvent event,
boolean forMove)
Find the glyph that is closest to the x/y point of the given event
|
protected DrawingGlyph |
createGlyph(visad.DisplayEvent event,
boolean mousePress)
Create a glyph
|
protected void |
doCut()
Remove the glyphs in the selection set
|
void |
doFlythrough()
Do the flythrough
|
protected java.awt.Container |
doMakeContents()
Make the gui
|
protected javax.swing.JComponent |
doMakeControlsPanel()
Make the main tabbed pane
|
static javax.swing.JComboBox |
doMakeLineWidthBox(int lineWidth)
Make a component to change the width of the lines.
|
protected javax.swing.JComponent |
doMakeShapesPanel()
Make the shapes panel
|
protected javax.swing.JComponent |
doMakeStylePanel()
Make the style panel
|
protected javax.swing.JComponent |
doMakeTablePanel()
Make the jtable panel
|
protected void |
doneMovingGlyph(DrawingGlyph glyph)
Done moving glyph
|
void |
doProperties(java.util.List glyphs)
Show the properties dialog for the glyphs in the list
|
void |
doRemove()
Remove this DisplayControl from the system.
|
void |
evaluateGlyphJython(DrawingGlyph glyph,
java.lang.String jython)
Evalue the given jython for the glyph
|
java.lang.String |
formatDistance(visad.Real distance)
Utility
|
visad.DateTime[] |
getAllTimes()
Get an array of all the current times in the display
|
visad.Set |
getAnimationSet()
Get the animation set
|
protected long |
getControlChangeSleepTime()
How long do we sleep until we act on the control changed event
|
int |
getCoordType()
Get the coord type (e.g., LATLON, XYZ)
|
visad.Real |
getCurrentTime()
Get the current time in the animation
|
protected java.lang.String |
getDefaultDisplayListTemplate()
Get the default display list template for this control.
|
visad.Unit |
getDisplayUnit()
Return the display unit
|
visad.Unit |
getDistanceUnit()
Get the distance unit
|
boolean |
getEditable()
Get the Editable property.
|
protected void |
getEditMenuItems(java.util.List items,
boolean forMenuBar)
Add the relevant edit menu items into the list
|
java.lang.String |
getEditorTitle()
Get the Editor Title property.
|
boolean |
getEnabled()
Get the Enabled property.
|
protected javax.swing.JComponent |
getExtraLegendComponent(int legendType)
Assume that any display controls that have a color table widget
will want the color table to show up in the legend.
|
protected void |
getFileMenuItems(java.util.List items,
boolean forMenuBar)
Add to the file menu.
|
boolean |
getFilled()
Get the Filled property.
|
java.awt.Font |
getFont()
Get the font from the ui widget
|
boolean |
getFrontDisplay()
Get the FrontDisplay property.
|
double |
getFrontScale()
Get the FrontScale property.
|
boolean |
getFullLatLon()
Get the FullLatLon property.
|
java.lang.String |
getGlyphJython()
Get the GlyphJython property.
|
protected java.lang.String |
getGlyphNameDefault(DrawingGlyph glyph)
Get the default name to use
|
java.util.List |
getGlyphs()
Get the Glyphs property.
|
boolean |
getIgnoreTime()
Get the IgnoreTime property.
|
protected ColorTable |
getInitialColorTable()
The specific color table here is for the ProbSevere display
|
protected Range |
getInitialRange()
Hook method to allow derived classes to return a different
initial
Range |
protected double |
getInitialZPosition()
Get default z position to use
|
java.lang.String |
getJustification()
Get the text justification value
|
protected void |
getLegendLabels(java.util.List labels,
int legendType)
Overwrite the legend labels method to use the editor title if there is one.
|
int |
getLineWidth()
Get the line width
|
ColorTable |
getRGBColorTable()
Get the color table to use for the image glyphs
|
protected java.util.List |
getShapeCommands()
Get the lsit of shape commands the user can draw with.
|
boolean |
getShowFronts()
Get the ShowFronts property.
|
boolean |
getShowNoteInLegend()
Get the ShowNoteInLegend property.
|
boolean |
getStraight()
Get the Straight property.
|
visad.Real |
getTimeForGlyph()
If we are not drawing in the current time then return null.
|
boolean |
getUseTime()
Get the UseTime property.
|
java.lang.String |
getVerticalJustification()
Get the vert text justification value
|
protected void |
getViewMenuItems(java.util.List items,
boolean forMenuBar)
Set the show html item
|
void |
glyphChanged(DrawingGlyph glyph)
The given glyph has changed somehow.
|
void |
handleDisplayChanged(visad.DisplayEvent event)
Listen for DisplayEvents
|
protected void |
handleWindowClosing()
Handle the window closing.
|
boolean |
init(DataChoice dataChoice)
Call to help make this kind of Display Control; also calls code to
made the Displayable (empty of data thus far).
|
void |
initAfterUnPersistence(ControlContext vc,
java.util.Hashtable properties)
Called by the
IntegratedDataViewer to
initialize after this control has been unpersisted |
protected void |
initDisplayUnit()
Initialize the display unit
|
boolean |
isSelected(DrawingGlyph glyph)
Is the given glyph selected
|
protected javax.swing.JPanel |
makeButtonPanel(java.util.List commands,
javax.swing.ButtonGroup bg)
Utility to make a panel holding the icon buttons.
|
protected void |
makeModePanel(java.util.List widgets)
Makes the model panel.
|
protected void |
processData(visad.Data data)
Process the visad data object.
|
protected void |
processProperties(DataChoice dataChoice)
Process the visad data object.
|
void |
projectionChanged()
Respond to the projection changing event
|
void |
receiveShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data)
Method called by other classes that share the the state.
|
void |
removeAllGlyphs()
Remove em all.
|
void |
removeGlyph(DrawingGlyph glyph)
Remove the glyph from the drawing
|
protected void |
resetData()
respond to the reload data call
|
protected void |
selectionChanged()
The selection set changed.
|
void |
setActive(boolean b)
Deprecated.
|
protected void |
setCoordType(int c)
Get the coord type (e.g., LATLON, XYZ)
|
protected void |
setCurrentCommand(DrawingCommand command)
Set the current active command
|
void |
setDisplayVisibility(boolean on)
TUrn on the visibility of this display
|
void |
setEditable(boolean value)
Set the Editable property.
|
void |
setEditorTitle(java.lang.String value)
Set the editorTitle property.
|
void |
setEnabled(boolean value)
Set the Enabled property.
|
void |
setFilled(boolean value)
Set the Filled property.
|
void |
setFrontDisplay(boolean value)
Set the FrontDisplay property.
|
void |
setFrontScale(double value)
Set the FrontScale property.
|
void |
setFullLatLon(boolean value)
Set the FullLatLon property.
|
void |
setGlyphJython(java.lang.String value)
Set the GlyphJython property.
|
void |
setGlyphs(java.util.List value)
Set the DrawingGlyphs property.
|
void |
setIgnoreTime(boolean value)
Set the IgnoreTime property.
|
void |
setLines(visad.UnionSet lines)
Deprecated.
|
void |
setLineWidth(int width)
Set the width of the lines.
|
void |
setNoteText(java.lang.String n)
Set the value of the note text area.
|
void |
setSelection(DrawingGlyph glyph)
Clear the selection and add the given glyph to the selection
|
void |
setSelection(java.util.List newSelection,
boolean addTo)
Set the selection.
|
void |
setShowFronts(boolean value)
Set the ShowFronts property.
|
void |
setShowNoteInLegend(boolean value)
Set the ShowNoteInLegend property.
|
void |
setStraight(boolean value)
Set the Straight property.
|
void |
setUseTime(boolean value)
Set the UseTime property.
|
protected boolean |
shouldAddControlListener()
Signal base class to add this as a control listener
|
protected boolean |
shouldAddDisplayListener()
Signal base class to add this as a display listener
|
boolean |
shouldBeVisible(DrawingGlyph tg)
Should this glyph be visible
|
protected boolean |
showFilledCbx()
Should we show the filled cbx
|
protected boolean |
showLocationWidgets()
Should we show the locatio widgets
|
protected boolean |
showTimeWidgets()
Should we show the time widgets
|
protected void |
timeChanged(visad.Real time)
Respond to a timeChange event
|
void |
toggleVisibilityForVectorGraphicsRendering(int rasterMode)
Toggle the visibility for vector graphics rendering
|
protected void |
updateLegendLabel()
This method is called to update the legend labels when
some state has changed in this control that is reflected in the labels.
|
void |
viewpointChanged()
Respond to control changed events from the view manager
|
void |
zSliderChanged(double value)
Handle the z position slider changed
|
actionPerformed, activateDisplays, addAttributedDisplayable, addAttributedDisplayable, addAttributedDisplayable, addAttributeFlags, addCheckBoxSettings, addDataChoice, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayable, addDisplayMaster, addDisplaySettings, addNewData, addNoteText, addPropertiesComponents, addPropertyChangeListener, addRemovable, addSharable, addTimeModeWidget, addToControlContext, addToRangeMenu, addToRangeMenu, addToRangeMenu, addViewManager, appendDataChoices, applyAttributesToDisplayables, applyColor, applyColorScaleInfo, applyColorTable, applyColorUnit, applyContourInfo, applyDisplaySetting, applyDisplayUnit, applyForecastHourMacro, applyLineWidth, applyPreferences, applyProperties, applyProperties, applyPropertyValues, applyRange, applySelectRange, applySkipFactor, applySmoothing, applyTextureQuality, applyTimeRange, applyZPosition, boundsClose, canBeDocked, canDoProgressiveResolution, canExportData, canSaveDataInCache, captureWindow, centerOnDisplay, changeColorUnit, changeDisplayUnit, checkBoundsChange, checkFlag, checkIfDataOk, checkImageSize, clearDataInstance, clearPrototype, clearViewManagers, colorUnitChanged, controlChanged, convertColorRange, convertRange, createDisplayListDisplayable, createIdvWindow, dataChanged, deactivateDisplays, debug, displayableToFront, displayChanged, displayControlFailed, displayUnitChanged, doApplyProperties, doExport, doInitialUpdateLegendAndList, doMakeBottomLegendComponent, doMakeChangeColorMenu, doMakeChangeColorMenu, doMakeChangeParameterMenuItem, doMakeColorControl, doMakeColorControl, doMakeColorScales, doMakeDataInstance, doMakeMenuBar, doMakeMenuBarMenus, doMakePointSizeWidget, doMakeRemoveControl, doMakeSideLegendComponent, doMakeSkipFactorSlider, doMakeTextureSlider, doMakeVisibilityControl, doMakeWidgetComponent, doMakeWindow, doMakeZPositionSlider, exportDisplayedData, findDisplayInfo, findDisplays, findDisplays, firePropertyChangeEvent, firstFrameDone, formatForCursorReadout, getActive, getAnimation, getAnimation, getAnimation, getAnimation, getAnimationInfo, getAnimationWidget, getAttributeFlags, getCachedData, getCanDoRemoveAll, getCategories, getChangeParameterLabel, getCollapseLegend, getColor, getColorDimness, getColorScaleInfo, getColorTable, getColorTableForDisplayable, getColorTableToApply, getColorTableWidget, getColorUnit, getColorUnitName, getColorWidgetLabel, getComponentHolder, getContents, getContourInfo, getControlContext, getControlMenus, getControlWidgets, getCursorReadout, getCursorReadoutInner, getCursorReadoutInner, getData, getDataChoice, getDataChoices, getDataForDisplayList, getDataInstance, getDataInstance, getDataProjection, getDataProjectionForMenu, getDataProjectionLabel, getDataSelection, getDataSources, getDataTimeRange, getDataTimeRange, getDataTimeSet, getDebugDetails, getDefaultColorScaleInfo, getDefaultDistanceUnit, getDefaultFastRendering, getDefaultSamplingMode, getDefaultSamplingModeValue, getDefaultView, getDefaultViewDescriptor, getDefaultViewManager, getDetailsContents, getDisplayAltitudeType, getDisplayCategory, getDisplayCenter, getDisplayConventions, getDisplayedData, getDisplayId, getDisplayInfos, getDisplayListColor, getDisplayListData, getDisplayListDisplayable, getDisplayListTemplate, getDisplayMaster, getDisplayName, getDisplayScale, getDisplayUnit, getDisplayUnitName, getDisplayVisibility, getDoCursorReadout, getEditMenuItems, getExpandedInTabs, getExtraLabelTemplate, getExtraMenus, getFileMenuItems, getGraphicsConfiguration, getGrid, getGrid, getHadDataChoices, getHaveInitialized, getHelpIds, getHelpMenuItems, getId, getIdv, getImage, getImage, getInitDataChoices, getInitialFastRendering, getInternalAnimation, getInternalAnimation, getIsProgressiveResolution, getIsRaster, getIsTimeDriver, getLabel, getLastFileMenuItems, getLatLonPoints, getLegendButtons, getLegendComponent, getLegendLabel, getLegendLabelTemplate, getLegendToolTip, getLineWidthWidget, getLineWidthWidgetLabel, getLockVisibilityToggle, getLongParamName, getMacroNames, getMainPanel, getMainPanelSize, getMakeWindow, getMapDisplay, getMapViewManager, getMapViewProjection, getMatchDisplayRegion, getMenuLabel, getMyDataChoices, getNavigatedDisplay, getNoteText, getObjectStore, getOkToFireEvents, getOldColorTableOrInitialColorTable, getOriginalDataChoicesLabel, getOuterContents, getPointSize, getProperty, getProperty, getPropertyDisplayName, getRange, getRangeForColorTable, getRangeToApply, getRawDataUnit, getRequestProperties, getSamplingModeName, getSamplingModeValue, getSamplingModeValue, getSaveMenuItems, getSelectRange, getSelectRangeEnabled, getSelectRangeWidget, getSettingsPanel, getShortParamName, getShoulDoProgressiveResolution, getShowInDisplayList, getShowInLegend, getShowInTabs, getShowNoteText, getSkipValue, getSkipWidgetLabel, getSmoothingFactor, getSmoothingType, getSomeAnimation, getStore, getTemplateName, getTextureQuality, getTextureQualityLabel, getTimeSet, getTitle, getTransientProperty, getUnitForColor, getUseFastRendering, getUsesTimeDriver, getUseTimesInAnimation, getVersion, getVerticalValue, getViewAnimation, getViewContext, getViewer, getViewManager, getViewManager, getViewManager, getViewManagerClassNames, getViewManagerForCapture, getViewManagers, getViewMenuItems, getVisbilityAnimationPause, getWasUnPersisted, getWindow, getWindowSize, getWindowVisible, getWindowX, getWindowY, getZPosition, getZPositionSliderLabel, guiExported, guiImported, hasForecastHourMacro, hasMapProjection, hasTimeMacro, haveDataTimes, haveParameterDefaults, hide, hyperlinkUpdate, inGlobeDisplay, init, init, init, initAfterUnPersistence, initAsPrototype, initAsTemplate, initBasic, initDone, initializeWithNewData, initWindow, isDisplay3D, isDisplayUnitAlsoColorUnit, isGuiShown, isInitDone, isInTransectView, isInViewManager, itemStateChanged, loadDataFromViewBounds, makeChangeColorMenuItems, makeLegendLabel, makeLockButton, makeRemoveButton, moveTo, notifyViewManagersOfChange, parseProperties, popup, popupDataDialog, popupDataDialog, popupDataDialog, processRequestProperties, propertyChange, putTransientProperty, reallySetAttributeFlags, redoGuiLayout, reloadDataSource, reloadDataSourceInThread, relocateDisplay, relocateDisplay, removeDataChoice, removeDisplayable, removeDisplayables, removeDisplayables, removeOnWindowClose, removePropertyChangeListener, resetDimness, resetViewManager, revertToDefaultColorTable, revertToDefaultColorTable, revertToDefaultRange, revertToDefaultRange, saveAsFavorite, saveAsParameterDefaults, saveAsPrototype, saveAsTemplate, saveDataChoiceInCache, saveImage, saveProjection, selectDataChoices, setAnimationInfo, setAnimationSet, setAttributeFlags, setCachedData, setCanDoRemoveAll, setCategories, setCollapseLegend, setColor, setColorBrighter, setColorDimmer, setColorDimness, setColorScaleInfo, setColorScaleVisible, setColorTable, setColorTable, setColorTableName, setColorUnit, setColorUnitName, setComponentHolder, setContents, setContourInfo, setContourInfoParams, setData, setData, setDataChoices, setDataInstance, setDataInstances, setDataSelection, setDataTimeRange, setDefaultSamplingMode, setDefaultView, setDisplayableVisibility, setDisplayableVisiblity, setDisplayActive, setDisplayAreaSubset, setDisplayCategory, setDisplayId, setDisplayInactive, setDisplayListColor, setDisplayListColor, setDisplayListProperties, setDisplayListTemplate, setDisplayListTimeZone, setDisplayName, setDisplayUnit, setDisplayUnitName, setDoCursorReadout, setExpandedInTabs, setExtraLabelTemplate, setHadDataChoices, setHelpUrl, setId, setInitDataChoices, setInitialSettings, setInitialViewManager, setIsProgressiveResolution, setIsRaster, setIsTimeDriver, setLabelAsPreference, setLegendBackground, setLegendForeground, setLegendLabel, setLegendLabelTemplate, setLockVisibilityToggle, setMainPanelDimensions, setMainPanelSize, setMakeWindow, setMatchDisplayRegion, setName, setNameFromUser, setNewColorUnit, setNewDisplayUnit, setOkToFireEvents, setOriginalDataChoicesLabel, setParamName, setPersistedVisadData, setPointSize, setProjectionInView, setProjectionInView, setProjectionInView, setProperty, setRange, setRange, setSelectRange, setSelectRangeEnabled, setSettingsDisplayUnit, setSharedColorScaleInfo, setShowInDisplayList, setShowInLegend, setShowInTabs, setShowNoteText, setSkipValue, setSmoothingFactor, setSmoothingType, setTemplateName, setTextureQuality, setTitle, setUnitForColor, setUseFastRendering, setUsesTimeDriver, setUseTimesInAnimation, setVersion, setViewer, setViewManagerClassNames, setVisbilityAnimationPause, setWindowSize, setWindowVisible, setWindowX, setWindowY, setZPosition, setZPosition, shouldAddAnimationListener, shouldApplyFastRendering, shouldBeDocked, shouldWindowBeVisible, show, showColorControlWidget, showColorDialog, showColorDialog, showColorScaleDialog, showColorScales, showColorSwatches, showContourPropertiesDialog, showDetails, showDisplaySettingsDialog, showHelp, showLegendMenu, showNormalCursor, showProperties, showTimeRangeDialog, showWaitCursor, toFront, toggleNoteTextArea, toggleWindow, toString, transectChanged, updateAnimation, updateDataInstance, updateDataSelection, updateDisplayList, updateGridDataInstance, updateLegendAndList, updateLockButton, useSmoothingFactor, useZPosition, viewManagerChanged, viewManagerDestroyed, writeTestArchive, xxxsetDisplayActiveboxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessageapplySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialogclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTmpProperty, putTmpProperty, removeTmpPropertygetReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTimepublic static final java.lang.String ATTR_USETIMESINANIMATION
public static final java.lang.String ATTR_FRONTDISPLAY
public static final java.lang.String TAG_EDITOR
public static final java.lang.String ATTR_EDITABLE
public static final java.lang.String ATTR_TITLE
public static final PatternFileFilter FILTER_XGRF
public static final java.lang.String SUFFIX_XGRF
public static final java.lang.String SHARE_LINES
public static final int FLAG_FILLED
public static final int FLAG_FULLLATLON
public static final int FLAG_STRAIGHT
public static final DrawingCommand CMD_SELECT
public static final DrawingCommand CMD_MOVE
public static final DrawingCommand CMD_STRETCH
protected javax.swing.JCheckBox enabledCbx
protected javax.swing.JCheckBox straightCbx
protected java.util.List glyphs
protected java.util.List selectedGlyphs
protected DrawingCommand currentCmd
protected DataChoice datachoice
public boolean isProbsevere
protected java.util.HashMap dataChoiceProperties
protected javax.swing.JTextArea legendNoteTextArea
protected javax.swing.JComponent legendNoteWrapper
public DrawingControl()
protected long getControlChangeSleepTime()
getControlChangeSleepTime in class DisplayControlImplpublic java.lang.String formatDistance(visad.Real distance)
throws visad.VisADException,
java.rmi.RemoteException
distance - The distancejava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic visad.Unit getDistanceUnit()
public boolean init(DataChoice dataChoice) throws visad.VisADException, java.rmi.RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment.java.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenprotected void initDisplayUnit()
protected boolean shouldAddDisplayListener()
shouldAddDisplayListener in class DisplayControlImplprotected void handleWindowClosing()
handleWindowClosing in class DisplayControlImplpublic void close()
close in class DisplayControlImplprotected boolean shouldAddControlListener()
shouldAddControlListener in class DisplayControlImplprotected void timeChanged(visad.Real time)
timeChanged in class DisplayControlImpltime - new timeprotected void processData(visad.Data data)
throws visad.VisADException,
java.rmi.RemoteException
data - The data objectjava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenprotected void processProperties(DataChoice dataChoice)
dataChoice - The data objectjava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenprotected void resetData()
throws visad.VisADException,
java.rmi.RemoteException
resetData in class DisplayControlImpljava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void toggleVisibilityForVectorGraphicsRendering(int rasterMode)
throws java.lang.Exception
toggleVisibilityForVectorGraphicsRendering in interface DisplayControltoggleVisibilityForVectorGraphicsRendering in class DisplayControlImplrasterMode - the toggle modejava.lang.Exception - problem togglingpublic boolean shouldBeVisible(DrawingGlyph tg)
tg - glyphpublic void setDisplayVisibility(boolean on)
setDisplayVisibility in interface DisplayControlsetDisplayVisibility in class DisplayControlImplon - Visible?protected boolean addGlyph(DrawingGlyph glyph)
glyph - The glyph to addpublic void glyphChanged(DrawingGlyph glyph)
glyph - The glyph that changedpublic void doRemove()
throws visad.VisADException,
java.rmi.RemoteException
doRemove in interface DisplayControldoRemove in class DisplayControlImpljava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenprotected void getLegendLabels(java.util.List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - List of labelslegendType - Side or bottomprotected DrawingGlyph createGlyph(visad.DisplayEvent event, boolean mousePress) throws visad.VisADException, java.rmi.RemoteException
event - The eventmousePress - Is mouse pressed or releasedjava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic void viewpointChanged()
viewpointChanged in class DisplayControlImplpublic void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class DisplayControlImplprotected boolean canHandleEvents()
public void doFlythrough()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Java RMI errorvisad.VisADException - VisAD problempublic void handleDisplayChanged(visad.DisplayEvent event)
handleDisplayChanged in class DisplayControlImplevent - The eventprotected void doneMovingGlyph(DrawingGlyph glyph)
glyph - the glyphpublic DrawingGlyph closestGlyph(visad.DisplayEvent event)
event - The eventpublic DrawingGlyph closestGlyph(visad.DisplayEvent event, boolean forMove)
event - The eventforMove - Are we looking for a glyph to movepublic void removeGlyph(DrawingGlyph glyph)
glyph - The glyph to removeprotected void selectionChanged()
public void setSelection(DrawingGlyph glyph) throws visad.VisADException, java.rmi.RemoteException
glyph - Glyph to add to the selection setjava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic void setSelection(java.util.List newSelection,
boolean addTo)
throws visad.VisADException,
java.rmi.RemoteException
newSelection - New set of glyphsaddTo - If true then don't clear the selectionjava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic boolean isSelected(DrawingGlyph glyph)
glyph - The glyphprotected void doCut()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic void doProperties(java.util.List glyphs)
throws visad.VisADException,
java.rmi.RemoteException
glyphs - Glyphs to set properties onjava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic void receiveShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data)
receiveShareData in interface SharablereceiveShareData in class DisplayControlImplfrom - other class.dataId - type of sharingdata - Array of data being shared. In this case, the first
(and only?) object in the array is the levelprotected void setCurrentCommand(DrawingCommand command)
command - The commandprotected javax.swing.JPanel makeButtonPanel(java.util.List commands,
javax.swing.ButtonGroup bg)
commands - Command to make buttons for.bg - Button group to add buttons toprotected java.util.List getShapeCommands()
protected javax.swing.JComponent doMakeShapesPanel()
protected java.awt.Container doMakeContents()
throws visad.VisADException,
java.rmi.RemoteException
doMakeContents in class DisplayControlImpljava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic void zSliderChanged(double value)
zSliderChanged in class DisplayControlImplvalue - the new z slider valueprotected javax.swing.JComponent doMakeControlsPanel()
protected void addControlWidgets(java.util.List widgets)
widgets - List to add to. Add in pairs (label, widget)protected double getInitialZPosition()
getInitialZPosition in class DisplayControlImplprotected void makeModePanel(java.util.List widgets)
widgets - List ot add label/widget pairsprotected javax.swing.JComponent doMakeTablePanel()
protected javax.swing.JComponent doMakeStylePanel()
protected void checkZSliderEnabled()
protected boolean showFilledCbx()
protected boolean showTimeWidgets()
protected boolean showLocationWidgets()
public ColorTable getRGBColorTable()
public static javax.swing.JComboBox doMakeLineWidthBox(int lineWidth)
lineWidth - The selected widthpublic int getCoordType()
protected void setCoordType(int c)
c - The coord type to useprotected void getEditMenuItems(java.util.List items,
boolean forMenuBar)
getEditMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legendprotected void getFileMenuItems(java.util.List items,
boolean forMenuBar)
getFileMenuItems in class DisplayControlImplitems - Holds the menu itemsforMenuBar - Is it for the main windowprotected void addFileMenuItems(java.util.List items,
boolean forMenuBar)
items - List to add toforMenuBar - for the menu barpublic void applyColorToAll()
public void applyZPosition(java.util.List glyphs)
throws visad.VisADException,
java.rmi.RemoteException
glyphs - the list of glyphsjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void removeAllGlyphs()
public void setLineWidth(int width)
setLineWidth in class DisplayControlImplwidth - width of lines.public int getLineWidth()
getLineWidth in class DisplayControlImplpublic visad.DateTime[] getAllTimes()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic visad.Real getCurrentTime()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On Badnessvisad.VisADException - On Badnesspublic visad.Set getAnimationSet()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic visad.Real getTimeForGlyph()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On Badnessvisad.VisADException - On Badnesspublic java.lang.String getJustification()
public java.lang.String getVerticalJustification()
public java.awt.Font getFont()
public void setLines(visad.UnionSet lines)
lines - set of lines to usepublic void setActive(boolean b)
b - true to enablepublic void setGlyphs(java.util.List value)
value - The new value for DrawingGlyphspublic java.util.List getGlyphs()
public void setIgnoreTime(boolean value)
value - The new value for IgnoreTimepublic boolean getIgnoreTime()
public void setUseTime(boolean value)
value - The new value for UseTimepublic boolean getUseTime()
public void setEditable(boolean value)
value - The new value for Editablepublic boolean getEditable()
public void setEnabled(boolean value)
value - The new value for Enabledpublic boolean getEnabled()
public void setEditorTitle(java.lang.String value)
value - The new value for editorTitlepublic java.lang.String getEditorTitle()
public void setFilled(boolean value)
value - The new value for Filledpublic boolean getFilled()
public void setStraight(boolean value)
value - The new value for Straightpublic boolean getStraight()
public void setFullLatLon(boolean value)
value - The new value for FullLatLonpublic boolean getFullLatLon()
public void evaluateGlyphJython(DrawingGlyph glyph, java.lang.String jython)
glyph - The glyphjython - The jythonpublic void setGlyphJython(java.lang.String value)
value - The new value for GlyphJythonpublic java.lang.String getGlyphJython()
protected java.lang.String getGlyphNameDefault(DrawingGlyph glyph)
glyph - the glyphpublic void setShowFronts(boolean value)
value - The new value for ShowFrontspublic boolean getShowFronts()
public void setFrontScale(double value)
value - The new value for FrontScalepublic double getFrontScale()
public void setFrontDisplay(boolean value)
value - The new value for FrontDisplaypublic boolean getFrontDisplay()
protected void addLabelMacros(java.lang.String template,
java.util.List patterns,
java.util.List values)
addLabelMacros in class DisplayControlImpltemplate - The template to usepatterns - The macro namesvalues - The macro valuesprotected java.lang.String getDefaultDisplayListTemplate()
getDefaultDisplayListTemplate in class DisplayControlImplprotected void updateLegendLabel()
updateLegendLabel in class DisplayControlImplprotected javax.swing.JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent in class DisplayControlImpllegendType - type of legendprotected void getViewMenuItems(java.util.List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - The items of view menuforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legendpublic void setShowNoteInLegend(boolean value)
value - The new value for ShowTablepublic boolean getShowNoteInLegend()
public void setNoteText(java.lang.String n)
setNoteText in class DisplayControlImpln - The note textprotected ColorTable getInitialColorTable()
getInitialColorTable in class DisplayControlImplprotected Range getInitialRange() throws java.rmi.RemoteException, visad.VisADException
RangegetInitialRange in class DisplayControlImpljava.rmi.RemoteException - Java RMI problemvisad.VisADException - VisAD problempublic visad.Unit getDisplayUnit()
getDisplayUnit in class DisplayControlImplpublic void initAfterUnPersistence(ControlContext vc, java.util.Hashtable properties)
DisplayControlImplIntegratedDataViewer to
initialize after this control has been unpersistedinitAfterUnPersistence in interface DisplayControlinitAfterUnPersistence in class DisplayControlImplvc - The context in which this control existsproperties - Properties that may hold things