Class NetFileLoader

java.lang.Object
fr.esrf.tangoatk.widget.util.interlock.NetFileLoader

public class NetFileLoader extends Object
A class to load net file.
  • Constructor Details

    • NetFileLoader

      public NetFileLoader(FileReader file, String fileName) throws IOException
      Contruct a NetFileLoader.
      Parameters:
      file - Handle the the file reader.
      fileName - Used to print warning message if any.
      Throws:
      IOException - In case of failure
    • NetFileLoader

      public NetFileLoader(FileReader file, String fileName, int startLine) throws IOException
      Contruct a NetFileLoader.
      Parameters:
      file - Handle the the file reader.
      fileName - Used to print warning message if any.
      startLine - Start line number for error message.
      Throws:
      IOException - In case of failure
  • Method Details

    • parseNetFile

      public Vector parseNetFile() throws IOException
      Parse a network file (net format)
      Returns:
      NetObject vector
      Throws:
      IOException - Contains error message
    • getLabelFont

      public Font getLabelFont()
      Returns:
      the label font read in the global param section if any, default font otherwise
    • getSmallFont

      public Font getSmallFont()
      Returns:
      the small font read in the global param section if any, default font otherwise
    • getUseAAFont

      public boolean getUseAAFont()
      Returns:
      the Anti-Aliased font usage flag read in the global param section if any, false otherwise
    • getDrawArrow

      public boolean getDrawArrow()
      Returns:
      the draw arrow flag read in the global param section if any, true otherwise