Package nxm.ice.libg
Class LayerTV
java.lang.Object
nxm.sys.libg.Layer
nxm.ice.libg.LayerTV
- All Implemented Interfaces:
nxm.sys.inc.Chainable,nxm.sys.inc.Drawable,nxm.sys.inc.MessageHandler,nxm.sys.inc.MidasReference
public class LayerTV
extends nxm.sys.libg.Layer
A class to plot trace vector data from ICE core test capture files
- Author:
- Jeff Schoen
-
Field Summary
Fields 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 full range for layer bounds.voidfindFullRange(nxm.sys.inc.PlotFile pf) Find full range for layer bounds.voidFind layer bounds.intgetData(int mode) get the next available data from the input sourceintgetNChan()getReadOut(nxm.sys.lib.Position mp) Gets the readout for the plot at a given cursor position.intintselect()voidselect(nxm.sys.lib.Position pos) booleansetFile(nxm.sys.inc.PlotFile pf, nxm.sys.lib.Table tab, nxm.sys.lib.Args MA) setup to attach a filevoidsetNChan(int n) voidsetSelect(int chan) voidsetSelectColor(String cstr) voidsetTraceConfig(String cfg) intsingle()voidsingle(int channel) Methods inherited from class nxm.sys.libg.Layer
clear, clearNeedRefresh, close, configure, drawDataSegment, 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, 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, update
-
Constructor Details
-
LayerTV
public LayerTV()
-
-
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).
-
setNChan
public void setNChan(int n) -
getNChan
public int getNChan() -
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
-
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
-
findFullRange
public void findFullRange()Description copied from class:nxm.sys.libg.LayerFind full range for layer bounds.- Overrides:
findFullRangein classnxm.sys.libg.Layer
-
findFullRange
public void findFullRange(nxm.sys.inc.PlotFile pf) Description copied from class:nxm.sys.libg.LayerFind full range for layer bounds.- Overrides:
findFullRangein classnxm.sys.libg.Layer- Parameters:
pf- The plot file
-
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.
-
setTraceConfig
-
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() -
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.
-