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, 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 full range for layer bounds.
    void
    findFullRange(nxm.sys.inc.PlotFile pf)
    Find full range for layer bounds.
    void
    Find layer bounds.
    int
    getData(int mode)
    get the next available data from the input source
    int
     
    getReadOut(nxm.sys.lib.Position mp)
    Gets the readout for the plot at a given cursor position.
    int
     
    int
     
    void
    select(nxm.sys.lib.Position pos)
     
    boolean
    setFile(nxm.sys.inc.PlotFile pf, nxm.sys.lib.Table tab, nxm.sys.lib.Args MA)
    setup to attach a file
    void
    setNChan(int n)
     
    void
    setSelect(int chan)
     
    void
     
    void
     
    int
     
    void
    single(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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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:
      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).
    • 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:
      getData in class nxm.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.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
    • findFullRange

      public void findFullRange()
      Description copied from class: nxm.sys.libg.Layer
      Find full range for layer bounds.
      Overrides:
      findFullRange in class nxm.sys.libg.Layer
    • findFullRange

      public void findFullRange(nxm.sys.inc.PlotFile pf)
      Description copied from class: nxm.sys.libg.Layer
      Find full range for layer bounds.
      Overrides:
      findFullRange in class nxm.sys.libg.Layer
      Parameters:
      pf - The plot file
    • 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.
    • setTraceConfig

      public void setTraceConfig(String cfg)
    • 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()
    • 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.