Package nxm.ice.libg
Class LayerMC
java.lang.Object
nxm.sys.libg.Layer
nxm.ice.libg.LayerMC
- All Implemented Interfaces:
nxm.sys.inc.Chainable,nxm.sys.inc.Drawable,nxm.sys.inc.MessageHandler,nxm.sys.inc.MidasReference
public class LayerMC
extends nxm.sys.libg.Layer
A class to plot multichannel data in the form of an ICE packet stream.
- Author:
- Jeff Schoen
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[]float[]nxm.sys.libg.MImagestatic Stringstatic Stringstatic Stringfloat[]static StringFields inherited from class nxm.sys.libg.Layer
a1, a2, cmap, colors, comment, configureList, data, DEF_EFFECTS, defmode, E_INVERT_COLORS, E_REVERSE_COLORS, effects, effectsList, enable, feature, frame, fseek, fx1, fx2, fy1, fy2, fz1, fz2, isDone, isPaged, isReset, line, MP, name, ncolors, ndata, needRefresh, pf, realtime, RR_AUTO, RR_DISABLED, RR_DISABLED_BUT_CALC_STATS, scaleable, size, stype, time, typeClass, x1, x2, xdelta, xstart, y1, y2, ydelta, ystart, z1, z2, zaxis, zd, zdelta, zstartFields inherited from interface nxm.sys.inc.Drawable
DATA, DATAX, DONE, FAST, FULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(int flag) dray the layer on the specified plotvoidFind layer bounds.doubleintgetData(int mode) get the next available data from the input sourcedoubledoublegetMax()doubleintgetMCSchan(byte[] buf) doublegetMin()doubleintgetNAvg()intgetNChan()intgetNFft()intgetNX()intgetNY()getReadOut(nxm.sys.lib.Position mp) Gets the readout for the plot at a given cursor position.intgetType()voidprocess()process the plot data for this framevoidprocessAvg(float[] fbuf, int n) voidvoidvoidvoidvoidintselect()voidselect(nxm.sys.lib.Position pos) voidsetAutoScaleRatio(double value) voidsetDbRange(double db) booleansetFile(nxm.sys.inc.PlotFile pf, nxm.sys.lib.Table tab, nxm.sys.lib.Args MA) setup to attach a filevoidsetKeep(int ratio) voidsetMax(double value) voidsetMaxRange(double value) voidsetMCS(int nc) voidsetMin(double value) voidsetMinRange(double value) voidsetNAvg(int navg) voidsetNChan(int n) voidsetNFft(int nfft) voidsetNX(int n) voidsetNY(int n) voidsetProcess(String process) voidsetScaling(String value) voidsetSelect(int chan) voidsetSelectColor(String cstr) voidvoidvoidsetYX(boolean state) intsingle()voidsingle(int channel) intskip()voidskip(int frames) voidupdate()reset the Complex modeMethods inherited from class nxm.sys.libg.Layer
clear, clearNeedRefresh, close, configure, drawDataSegment, findFullRange, findFullRange, getColor, getColorMap, getComment, getDebugMask, getDefaultComplexMode, getDefaultView, getEffect, getEffects, getElementsPerScreen, getEnable, getEnableString, getFeature, getFile, getFrame, getGroup, getHiX, getHiXD, getInputDataRate, getLayer, getLayer, getLayerType, getLegendEntry, getLegendSubEntries, getLine, getMaxSkipMultiplier, getMidas, getMPlot, getName, getNearestYValue, getNearestYValue, getNeedRefresh, getNeedsRescale, getNextLink, getNumberFontLarge, getNumberFontMedium, getNumberFontSmall, getPosAtTime, getPrevLink, getRef, getRefreshRate, getRefreshSmoothingFactor, getScale, getSize, getSymbol, getTime, getTime, getX1, getx1i, getX2, getx2i, getXDelta, getXMax, getXMin, getXStart, getXUnits, getXUnitsName, getY1, getY2, getYDelta, getYMax, getYMin, getYPosAtTime, getYStart, getYUnits, getYUnitsName, getZ1, getZ2, getZDelta, getZMax, getZMin, getZStart, getZUnits, getZUnitsName, init, invertColorMap, isAtPosition, isBaseLayer, isBlank, isEnabled, isPaged, isTimeAlign, isViewSupported, isVisible, makeBaseLayer, process, processMessage, processMouseMessage, refresh, refresh, reread, reset, reverseColorMap, setBaseLayer, setColor, setColor, setColor, setColorMap, setColorMap, setColorMap, setColorMap, setColors, setComment, setData, setDebugMask, setEffects, setEffects, setEnable, setEnable, setFile, setFrame, setGroup, setHiColor, setHiMode, setHiX, setHiXD, setInvertColorMap, setLabel, setLargeFactor, setLayerType, setMaxSkipMultiplier, setMediumFactor, setMPlot, setName, setRealTime, setRef, setRef, setRefreshRate, setRefreshSmoothingFactor, setReverseColorMap, setScale, setScale, setSize, setSmallFactor, setSurface, setSurface, setThreeDGraphMarginFactor, setTime, setTimeAlign, setX, setX1, setX2, setXAxis, setXBounds, setXDelta, setXMax, setXMin, setXStart, setXUnits, setXUnits, setY, setY1, setY2, setYAxis, setYBounds, setYDelta, setYMax, setYMin, setYStart, setYUnits, setYUnits, setZ, setZ1, setZ2, setZAxis, setZBounds, setZDelta, setZMax, setZMin, setZStart, setZUnits, setZUnits, testSlidingMinMax, toggle, toString
-
Field Details
-
fbuf
public float[] fbuf -
wind
public float[] wind -
fbs
public float[] fbs -
mimage
public nxm.sys.libg.MImage mimage -
typeList
-
processList
-
windowList
-
scalingList
-
-
Constructor Details
-
LayerMC
public LayerMC()
-
-
Method Details
-
setFile
public boolean setFile(nxm.sys.inc.PlotFile pf, nxm.sys.lib.Table tab, nxm.sys.lib.Args MA) setup to attach a file- Overrides:
setFilein classnxm.sys.libg.Layer- Parameters:
pf- The plot file (cannot be null).tab- table of optionsMA- command line arguments- Returns:
truewhen the file has been opened,falseif the file can not be opened (or indicates the file is not supported by this layer).
-
setKeep
public void setKeep(int ratio) -
update
public void update()reset the Complex mode- Overrides:
updatein classnxm.sys.libg.Layer
-
setNChan
public void setNChan(int n) -
getNChan
public int getNChan() -
setNX
public void setNX(int n) -
getNX
public int getNX() -
setNY
public void setNY(int n) -
getNY
public int getNY() -
setWindow
-
getWindow
-
setProcess
-
getProcess
-
setType
-
getType
-
setMCS
public void setMCS(int nc) -
setNFft
public void setNFft(int nfft) -
getNFft
public int getNFft() -
setNAvg
public void setNAvg(int navg) -
getNAvg
public int getNAvg() -
setMin
public void setMin(double value) -
getMin
public double getMin() -
setMax
public void setMax(double value) -
getMax
public double getMax() -
setMinRange
public void setMinRange(double value) -
getMinRange
public double getMinRange() -
setMaxRange
public void setMaxRange(double value) -
getMaxRange
public double getMaxRange() -
setDbRange
public void setDbRange(double db) -
getDbRange
public double getDbRange() -
setAutoScaleRatio
public void setAutoScaleRatio(double value) -
getAutoScaleRatio
public double getAutoScaleRatio() -
setScaling
-
getScaling
-
getData
public int getData(int mode) get the next available data from the input source- Overrides:
getDatain classnxm.sys.libg.Layer- Parameters:
mode- always 0- Returns:
- the drawing mode to use, see
Drawable
-
process
public void process()process the plot data for this frame- Overrides:
processin classnxm.sys.libg.Layer
-
processAvg
public void processAvg(float[] fbuf, int n) -
processFFT
public void processFFT() -
processRaw
public void processRaw() -
processMag
public void processMag() -
processHist
public void processHist() -
processEnv
public void processEnv() -
findRange
public void findRange()Description copied from class:nxm.sys.libg.LayerFind layer bounds. This function should be overridden by any subclasses as the basic implementation inLayersimply sets the range from 0 to 1. Note: The overriding method is responsible for setting all these fields: x1,x2 - Minimum and Maximum x-axis value y1,y2 - Minimum and Maximum y-axis value z1,z2 - Minimum and Maximum z-axis value a1,a2 - Minimum and Maximum actual auto-scale value (default 0,0)- Specified by:
findRangein interfacenxm.sys.inc.Drawable- Overrides:
findRangein classnxm.sys.libg.Layer
-
draw
public void draw(int flag) dray the layer on the specified plot- Specified by:
drawin interfacenxm.sys.inc.Drawable- Overrides:
drawin classnxm.sys.libg.Layer- Parameters:
flag- The draw mode to use. This should be one of:Drawable.DONE,Drawable.FULL,Drawable.DATA,Drawable.DATAX, orDrawable.FAST.
-
select
public void select(nxm.sys.lib.Position pos) -
select
public int select() -
getSelect
public int getSelect() -
setSelect
public void setSelect(int chan) -
setSelectColor
-
single
public void single(int channel) -
single
public int single() -
skip
public void skip(int frames) -
skip
public int skip() -
getReadOut
Description copied from class:nxm.sys.libg.LayerGets the readout for the plot at a given cursor position. The output format usually used by layers likeLayer2D: "[layerName] (z=value +- delta-z)".- Overrides:
getReadOutin classnxm.sys.libg.Layer- Parameters:
mp- The position on the plot.- Returns:
- The readout string or null if the layer does not support readout.
(The default implementation in
Layertypically returns null.
-
setYX
public void setYX(boolean state) -
getMCSchan
public int getMCSchan(byte[] buf)
-