fr.esrf.tangoatk.widget.util.interlock
Class NetFileLoader

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

public class NetFileLoader
extends java.lang.Object

A class to load net file.


Constructor Summary
NetFileLoader(java.io.FileReader file, java.lang.String fileName)
          Contruct a NetFileLoader.
NetFileLoader(java.io.FileReader file, java.lang.String fileName, int startLine)
          Contruct a NetFileLoader.
 
Method Summary
 boolean getDrawArrow()
          Gets the draw arrow flag read in the global param section if any, true otherwise
 java.awt.Font getLabelFont()
          Gets the label font read in the global param section if any, default font otherwise
 java.awt.Font getSmallFont()
          Gets the small font read in the global param section if any, default font otherwise
 boolean getUseAAFont()
          Gets the Anti-Aliased font usage flag read in the global param section if any, false otherwise
 java.util.Vector parseNetFile()
          Parse a network file (net format)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetFileLoader

public NetFileLoader(java.io.FileReader file,
                     java.lang.String fileName)
              throws java.io.IOException
Contruct a NetFileLoader.

Parameters:
file - Handle the the file reader.
fileName - Used to print warning message if any.
Throws:
java.io.IOException - In case of failure

NetFileLoader

public NetFileLoader(java.io.FileReader file,
                     java.lang.String fileName,
                     int startLine)
              throws java.io.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:
java.io.IOException - In case of failure
Method Detail

parseNetFile

public java.util.Vector parseNetFile()
                              throws java.io.IOException
Parse a network file (net format)

Returns:
NetObject vector
Throws:
java.io.IOException - Contains error message

getLabelFont

public java.awt.Font getLabelFont()
Gets the label font read in the global param section if any, default font otherwise


getSmallFont

public java.awt.Font getSmallFont()
Gets the small font read in the global param section if any, default font otherwise


getUseAAFont

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


getDrawArrow

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