|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
ucar.unidata.idv.control.GridDisplayControl
ucar.unidata.idv.control.BaseImageControl
ucar.unidata.idv.control.ImageSequenceControl
edu.wisc.ssec.mcidasv.control.McIdasImageSequenceControl
public class McIdasImageSequenceControl
A DisplayControl for handling McIDAS-X image sequences
Nested Class Summary | |
---|---|
private class |
McIdasImageSequenceControl.McIdasCommandLine
Try my hand at creating a thread |
Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
---|
DisplayControlImpl.SideLegendLabel |
Field Summary | |
---|---|
private ArrayList |
commandHistory
|
private int |
commandHistoryIdx
|
private boolean |
commandHistoryMode
|
private static DataChoice |
dc
|
private FrameComponentInfo |
frameComponentInfo
Holds frame component information |
private List |
frameDirtyInfoList
|
private McIdasFrameDisplay |
frameDisplay
|
private JPanel |
frameNavigatedContent
|
private List |
frameNumbers
|
private Dimension |
frameSize
|
private static Integer |
frmI
|
private JTextField |
inputText
|
private McIdasXDataSource |
mcidasxDS
|
private McIdasXInfo |
mcidasxInfo
McIDAS-X handles |
private JCheckBox |
navigatedCbx
|
private Font |
outputFont
|
private JScrollPane |
outputPane
|
private StyledDocument |
outputText
|
private JLabel |
runningThreads
|
private int |
threadCount
|
Fields inherited from class ucar.unidata.idv.control.BaseImageControl |
---|
EMPTY_IMAGE, EMPTY_RGB_IMAGE, emptyImage, emptyRGBImage |
Fields inherited from class ucar.unidata.idv.control.GridDisplayControl |
---|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel |
Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE |
Fields inherited from interface ucar.unidata.idv.DisplayControl |
---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
Constructor Summary | |
---|---|
McIdasImageSequenceControl()
Default ctor; sets the attribute flags |
Method Summary | |
---|---|
private void |
appendTextLineCommand(String line)
|
private void |
appendTextLineError(String line)
|
private void |
appendTextLineNormal(String line)
|
protected Component |
doMakeAnnotationBox()
Make the frame component check boxes. |
protected Component |
doMakeColorTableBox()
Make the frame component check boxes. |
protected JTextField |
doMakeCommandLine()
|
protected Component |
doMakeFakeDateTimeBox()
Make the frame behavior check boxes. |
private JPanel |
doMakeFramePanel()
Get frame control widgets specific to this control. |
protected Component |
doMakeGraphicsBox()
Make the frame component check boxes. |
protected Component |
doMakeImageBox()
Make the frame component check boxes. |
protected JScrollPane |
doMakeOutputText()
|
protected Component |
doMakeResetProjectionBox()
Make the frame behavior check boxes. |
private Component |
doMakeSpacer()
|
protected JComponent |
doMakeWidgetComponent()
A helper method for constructing the ui. |
void |
getControlWidgets(List controlWidgets)
Get control widgets specific to this control. |
protected Hashtable |
getRequestProperties()
Override the base class method that creates request properties and add in the appropriate frame component request parameters. |
boolean |
init(DataChoice choice)
Initialize this instance according to a data choice. |
private void |
initFrameComponentInfo()
Creates, if needed, the frameComponentInfo member. |
private void |
initFrameDirtyInfoList()
Initializes the frameDirtyInfoList member. |
private void |
notifyThreadCount()
|
private void |
notifyThreadStart()
|
private void |
notifyThreadStop()
|
private void |
resetCommandHistory()
|
private void |
resetCommandHistoryIdx()
|
protected void |
resetData()
This gets called when the control has received notification of a dataChange event. |
private void |
scrollTextLineToBottom()
|
private void |
sendCommandLine(String line,
boolean showprocess)
Send the given commandline to McIDAS-X over the bridge |
private void |
sendCommandLineThread(String line,
boolean showprocess)
Threaded sendCommandLine |
private void |
setFrameDirtyInfoList(int frameNumber,
boolean dirtyImage,
boolean dirtyGraphics,
boolean dirtyColorTable)
Sets the frameDirtyInfoList member based on frame number |
private void |
showXImage(int inFrame)
|
private void |
updateVImage()
|
private void |
updateXImage(int inFrame)
|
Methods inherited from class ucar.unidata.idv.control.ImageSequenceControl |
---|
applySkipFactor, applyTextureQuality, cancelPressed, checkIfDataOk, doMakeContents, doMakeDataInstance, doRemove, getColorRangeFromData, getDisplayUnit, getInitialColorTable, getInitialRange, getIsRaster, getShowProgressBar, init, initDone, setAlphaFromSlider, setShowProgressBar, setWorkingSequence |
Methods inherited from class ucar.unidata.idv.control.BaseImageControl |
---|
doMakeAlphaSlider, getAlpha, getDataProjectionLabel, getSkipWidgetLabel, getWorkingImage, setAlpha, setInverseAlphaFromSlider, showSkipFactorSlider |
Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
Methods inherited from class ucar.unidata.collab.SharableImpl |
---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ucar.unidata.idv.DisplayControl |
---|
getTmpProperty, putTmpProperty, removeTmpProperty |
Methods inherited from interface ucar.unidata.collab.Sharable |
---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
Field Detail |
---|
private JLabel runningThreads
private JCheckBox navigatedCbx
private JPanel frameNavigatedContent
private McIdasFrameDisplay frameDisplay
private Dimension frameSize
private JTextField inputText
private JScrollPane outputPane
private StyledDocument outputText
private Font outputFont
private ArrayList commandHistory
private int commandHistoryIdx
private boolean commandHistoryMode
private McIdasXInfo mcidasxInfo
private McIdasXDataSource mcidasxDS
private int threadCount
private static DataChoice dc
private static Integer frmI
private FrameComponentInfo frameComponentInfo
private List frameDirtyInfoList
private List frameNumbers
Constructor Detail |
---|
public McIdasImageSequenceControl()
Method Detail |
---|
private void initFrameComponentInfo()
private void initFrameDirtyInfoList()
private void setFrameDirtyInfoList(int frameNumber, boolean dirtyImage, boolean dirtyGraphics, boolean dirtyColorTable)
protected Hashtable getRequestProperties()
getRequestProperties
in class DisplayControlImpl
protected JComponent doMakeWidgetComponent()
ControlWidget
(e.g., ColorTableWidget) and creates a gridded
ui with them.
doMakeWidgetComponent
in class DisplayControlImpl
public void getControlWidgets(List controlWidgets) throws VisADException, RemoteException
getControlWidgets
in class DisplayControlImpl
controlWidgets
- list of control widgets from other places
RemoteException
- Java RMI error
VisADException
- VisAD Errorprivate JPanel doMakeFramePanel() throws VisADException, RemoteException
RemoteException
- Java RMI error
VisADException
- VisAD Errorprotected Component doMakeImageBox()
protected Component doMakeGraphicsBox()
protected Component doMakeColorTableBox()
protected Component doMakeAnnotationBox()
protected Component doMakeFakeDateTimeBox()
protected Component doMakeResetProjectionBox()
private void resetCommandHistory()
private void resetCommandHistoryIdx()
protected JTextField doMakeCommandLine()
private Component doMakeSpacer()
protected JScrollPane doMakeOutputText()
private void sendCommandLine(String line, boolean showprocess)
line
- showprocess
- private void appendTextLineNormal(String line)
private void appendTextLineCommand(String line)
private void appendTextLineError(String line)
private void scrollTextLineToBottom()
private void updateXImage(int inFrame)
private void showXImage(int inFrame)
private void updateVImage()
public boolean init(DataChoice choice) throws VisADException, RemoteException
ucar.unidata.idv.control.DisplayControlImpl
Initialize this instance according to a data choice. Subclasses should
override this method. Overridding methods should probably invoke DisplayControlImpl.setData(DataChoice)
as part of their initialization procedure --
although it is unclear when this is actually necessary.
This implementation simply returns true
.
init
in class ImageSequenceControl
choice
- A data choice or null
.
true
if and only if this instance
was correctly initialized by the data choice.
VisADException
- if a VisAD Failure occurs.
RemoteException
- if a Java RMI failure occurs.protected void resetData() throws VisADException, RemoteException
resetData
in class ImageSequenceControl
RemoteException
- Java RMI problem
VisADException
- VisAD problemprivate void sendCommandLineThread(String line, boolean showprocess)
line
- showprocess
- private void notifyThreadStart()
private void notifyThreadStop()
private void notifyThreadCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |