public class NetFileLoader
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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)
|
public NetFileLoader(java.io.FileReader file, java.lang.String fileName) throws java.io.IOException
file
- Handle the the file reader.fileName
- Used to print warning message if any.java.io.IOException
- In case of failurepublic NetFileLoader(java.io.FileReader file, java.lang.String fileName, int startLine) throws java.io.IOException
file
- Handle the the file reader.fileName
- Used to print warning message if any.startLine
- Start line number for error message.java.io.IOException
- In case of failurepublic java.util.Vector parseNetFile() throws java.io.IOException
java.io.IOException
- Contains error messagepublic java.awt.Font getLabelFont()
public java.awt.Font getSmallFont()
public boolean getUseAAFont()
public boolean getDrawArrow()