Previous Next        Current Page: NeXtMidas Training / File Handlers / Lab 2 / Other Methods
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   
   + Introduction   
   + Lab 1   
   - Lab 2   
      - PlotFile   
      - Axis Definition Methods   
      - Other Methods   
      + Solution   


  • getTimeAt(..):
    • The getTimeAt(..) method indicates the timecode for a given element. Since ORANGE files do not have timecode information, just return 0.
  • getType():
    • The getType() method tells the file's "type". For the purposes of this method, the file's type is the type that most closely matches a BLUE file type. Here we have 1D data, so just return 1000.
  • connect(..):
    • The connect(..) method is only relevent for BLUE file pipes. This method can just be left blank.
  • getMode():
    • getMode() gives the mode of the data. For 1D, scalar data this is just 1.
  • getLayer():
    • getLayer() returns a default layer instance for use with this file type. This allows users to plot these file types without specifying the layer type every time. Since we have 1D data, we will just return new Layer1D() for now.
  • continued on next page