torero.util
Class ToreroConfig

java.lang.Object
  |
  +--torero.util.ToreroConfig

public class ToreroConfig
extends Object

The config class for torero, it holds some configuration information, and some global state data. It is a singleton class, a reference can be obtained by the getConfig() method.


Field Summary
static String crlf
          Line terminator used in ox output file.
static String indentstring
          Default indention in ox output file.
static String TOREROHOME
          The homedirectory of the user executing torero.
static int xcorner
          Offset in x direction [in pixel] for bevel join of attribute-connection lines.
static int xmul
          Space in x direction [in pixel], between two attribute-connection lines.
static int xoff
          minimun Space in x direction [in pixel], between a node and a attribute-connection line.
static int ycorner
          Offset in y direction [in pixel] for bevel join of attribute-connection lines.
static int ymul
          Space in y direction [in pixel], between two attribute-connection lines.
static int yoff
          minimun Space in y direction [in pixel], between a node and a attribute-connection line.
 
Constructor Summary
ToreroConfig()
           
 
Method Summary
static AttributeGrammar getActualAG()
          Get a reference to the actual attribute grammar.
static ToreroConfig getConfig()
          Get the singleton torero config object.
static void setActualAG(AttributeGrammar g)
          Set the actual attribute grammar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOREROHOME

public static final String TOREROHOME
The homedirectory of the user executing torero.

xoff

public static final int xoff
minimun Space in x direction [in pixel], between a node and a attribute-connection line.

yoff

public static final int yoff
minimun Space in y direction [in pixel], between a node and a attribute-connection line.

xmul

public static final int xmul
Space in x direction [in pixel], between two attribute-connection lines.

ymul

public static final int ymul
Space in y direction [in pixel], between two attribute-connection lines.

xcorner

public static final int xcorner
Offset in x direction [in pixel] for bevel join of attribute-connection lines.

ycorner

public static final int ycorner
Offset in y direction [in pixel] for bevel join of attribute-connection lines.

indentstring

public static final String indentstring
Default indention in ox output file.

crlf

public static final String crlf
Line terminator used in ox output file.
Constructor Detail

ToreroConfig

public ToreroConfig()
Method Detail

getConfig

public static ToreroConfig getConfig()
Get the singleton torero config object.
Returns:
the singleton torero config object.

getActualAG

public static AttributeGrammar getActualAG()
Get a reference to the actual attribute grammar.
Returns:
a reference to the actual attribute grammar.

setActualAG

public static void setActualAG(AttributeGrammar g)
Set the actual attribute grammar.
Parameters:
g - a reference to the attribute grammar.