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

    Fields
    Modifier and Type
    Field
    Description
    float[]
     
    float[]
     
    nxm.sys.libg.MImage
     
    static String
     
    static String
     
    static String
     
    float[]
     
    static String
     

    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, zstart

    Fields inherited from interface nxm.sys.inc.Drawable

    DATA, DATAX, DONE, FAST, FULL
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(int flag)
    dray the layer on the specified plot
    void
    Find layer bounds.
    double
     
    int
    getData(int mode)
    get the next available data from the input source
    double
     
    double
     
    double
     
    int
    getMCSchan(byte[] buf)
     
    double
     
    double
     
    int
     
    int
     
    int
     
    int
     
    int
     
     
    getReadOut(nxm.sys.lib.Position mp)
    Gets the readout for the plot at a given cursor position.
     
    int
     
     
     
    void
    process the plot data for this frame
    void
    processAvg(float[] fbuf, int n)
     
    void
     
    void
     
    void
     
    void
     
    void
     
    int
     
    void
    select(nxm.sys.lib.Position pos)
     
    void
    setAutoScaleRatio(double value)
     
    void
    setDbRange(double db)
     
    boolean
    setFile(nxm.sys.inc.PlotFile pf, nxm.sys.lib.Table tab, nxm.sys.lib.Args MA)
    setup to attach a file
    void
    setKeep(int ratio)
     
    void
    setMax(double value)
     
    void
    setMaxRange(double value)
     
    void
    setMCS(int nc)
     
    void
    setMin(double value)
     
    void
    setMinRange(double value)
     
    void
    setNAvg(int navg)
     
    void
    setNChan(int n)
     
    void
    setNFft(int nfft)
     
    void
    setNX(int n)
     
    void
    setNY(int n)
     
    void
    setProcess(String process)
     
    void
     
    void
    setSelect(int chan)
     
    void
     
    void
    setType(String typeName)
     
    void
     
    void
    setYX(boolean state)
     
    int
     
    void
    single(int channel)
     
    int
     
    void
    skip(int frames)
     
    void
    reset the Complex mode

    Methods 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • fbuf

      public float[] fbuf
    • wind

      public float[] wind
    • fbs

      public float[] fbs
    • mimage

      public nxm.sys.libg.MImage mimage
    • typeList

      public static String typeList
    • processList

      public static String processList
    • windowList

      public static String windowList
    • scalingList

      public static String 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:
      setFile in class nxm.sys.libg.Layer
      Parameters:
      pf - The plot file (cannot be null).
      tab - table of options
      MA - command line arguments
      Returns:
      true when the file has been opened, false if 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:
      update in class nxm.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

      public void setWindow(String wname)
    • getWindow

      public String getWindow()
    • setProcess

      public void setProcess(String process)
    • getProcess

      public String getProcess()
    • setType

      public void setType(String typeName)
    • getType

      public String 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

      public void setScaling(String value)
    • getScaling

      public String getScaling()
    • getData

      public int getData(int mode)
      get the next available data from the input source
      Overrides:
      getData in class nxm.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:
      process in class nxm.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.Layer
      Find layer bounds. This function should be overridden by any subclasses as the basic implementation in Layer simply 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:
      findRange in interface nxm.sys.inc.Drawable
      Overrides:
      findRange in class nxm.sys.libg.Layer
    • draw

      public void draw(int flag)
      dray the layer on the specified plot
      Specified by:
      draw in interface nxm.sys.inc.Drawable
      Overrides:
      draw in class nxm.sys.libg.Layer
      Parameters:
      flag - The draw mode to use. This should be one of: Drawable.DONE, Drawable.FULL, Drawable.DATA, Drawable.DATAX, or Drawable.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

      public void setSelectColor(String cstr)
    • single

      public void single(int channel)
    • single

      public int single()
    • skip

      public void skip(int frames)
    • skip

      public int skip()
    • getReadOut

      public String getReadOut(nxm.sys.lib.Position mp)
      Description copied from class: nxm.sys.libg.Layer
      Gets the readout for the plot at a given cursor position. The output format usually used by layers like Layer2D: "[layerName] (z=value +- delta-z)".
      Overrides:
      getReadOut in class nxm.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 Layer typically returns null.
    • setYX

      public void setYX(boolean state)
    • getMCSchan

      public int getMCSchan(byte[] buf)