com.sun.electric
Class StartupPrefs

java.lang.Object
  extended by com.sun.electric.StartupPrefs

public class StartupPrefs
extends java.lang.Object

Module to access Prefs which are used at startup. They are accessed without initializing Tool and Technology classes


Field Summary
static int DisplayStyleDef
          Default initial display style for Electric.
static java.lang.String DisplayStyleKey
          Preferences key to tell the initial display style for Electric.
static int MaxUndoHistoryDef
          Default aximum number of undos retained in memory.
static java.lang.String MaxUndoHistoryKey
          Preferences key to tell the maximum number of undos retained in memory.
static int MemorySizeDef
          Default maximum memory to use for Electric, in megatybes.
static java.lang.String MemorySizeKey
          Preferences key to tell the maximum memory to use for Electric, in megatybes.
static int PermSizeDef
          Default maximum permanent space of 2dn GC to use for Electric, in megatybes.
static java.lang.String PermSizeKey
          Preferences key to tell the maximum permanent space of 2dn GC to use for Electric, in megatybes.
static boolean SnapshotLoggingDef
          Default whether to perform snapshot logging in a temporary file.
static java.lang.String SnapshotLoggingKey
          Preferences key to tell whether to perform snapshot logging in a temporary file.
static java.lang.String SoftTechnologiesDef
          Default initial additional technologies for Electric.
static java.lang.String SoftTechnologiesKey
          Preferences key with additional technologies for Electric.
static boolean UseClientServerDef
          Default whether to use a separate client and server for Electric
static java.lang.String UseClientServerKey
          Preferences key to tell whether to use a separate client and server for Electric.
 
Constructor Summary
StartupPrefs()
           
 
Method Summary
static int getDisplayStyle()
          Method to tell the initial display style for Electric.
static int getMaxUndoHistory()
          Method to get the maximum number of undos retained in memory
static int getMemorySize()
          Method to tell the maximum memory to use for Electric, in megatybes.
static int getPermSpace()
          Method to tell the maximum permanent space of 2dn GC to use for Electric, in megatybes.
static java.lang.String getSoftTechnologies()
          Method to tell the additional technologies for Electric.
static boolean getUserBoolean(java.lang.String key, boolean def)
           
static double getUserDouble(java.lang.String key, double def)
           
static int getUserInt(java.lang.String key, int def)
           
static long getUserLong(java.lang.String key, long def)
           
static java.lang.String getUserString(java.lang.String key, java.lang.String def)
           
static boolean isSnapshotLogging()
          Method to tell whether to perform snapshot logging in a temporary file.
static boolean isUseClientServer()
          Method to tell whether to use a separate client and server for Electric.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SoftTechnologiesKey

public static final java.lang.String SoftTechnologiesKey
Preferences key with additional technologies for Electric.

See Also:
Constant Field Values

SoftTechnologiesDef

public static final java.lang.String SoftTechnologiesDef
Default initial additional technologies for Electric.

See Also:
Constant Field Values

DisplayStyleKey

public static final java.lang.String DisplayStyleKey
Preferences key to tell the initial display style for Electric.

See Also:
Constant Field Values

DisplayStyleDef

public static final int DisplayStyleDef
Default initial display style for Electric.

See Also:
Constant Field Values

MaxUndoHistoryKey

public static final java.lang.String MaxUndoHistoryKey
Preferences key to tell the maximum number of undos retained in memory.

See Also:
Constant Field Values

MaxUndoHistoryDef

public static final int MaxUndoHistoryDef
Default aximum number of undos retained in memory.

See Also:
Constant Field Values

MemorySizeKey

public static final java.lang.String MemorySizeKey
Preferences key to tell the maximum memory to use for Electric, in megatybes.

See Also:
Constant Field Values

MemorySizeDef

public static final int MemorySizeDef
Default maximum memory to use for Electric, in megatybes.

See Also:
Constant Field Values

PermSizeKey

public static final java.lang.String PermSizeKey
Preferences key to tell the maximum permanent space of 2dn GC to use for Electric, in megatybes.

See Also:
Constant Field Values

PermSizeDef

public static final int PermSizeDef
Default maximum permanent space of 2dn GC to use for Electric, in megatybes.

See Also:
Constant Field Values

UseClientServerKey

public static final java.lang.String UseClientServerKey
Preferences key to tell whether to use a separate client and server for Electric.

See Also:
Constant Field Values

UseClientServerDef

public static final boolean UseClientServerDef
Default whether to use a separate client and server for Electric

See Also:
Constant Field Values

SnapshotLoggingKey

public static final java.lang.String SnapshotLoggingKey
Preferences key to tell whether to perform snapshot logging in a temporary file.

See Also:
Constant Field Values

SnapshotLoggingDef

public static final boolean SnapshotLoggingDef
Default whether to perform snapshot logging in a temporary file.

See Also:
Constant Field Values
Constructor Detail

StartupPrefs

public StartupPrefs()
Method Detail

getSoftTechnologies

public static java.lang.String getSoftTechnologies()
Method to tell the additional technologies for Electric. The default is "".

Returns:
the additional technologies for Electric.

getDisplayStyle

public static int getDisplayStyle()
Method to tell the initial display style for Electric. The values are: 0=OS default, 1=MDI, 2=SDI. The default is 0.

Returns:
the display style for Electric.

getMaxUndoHistory

public static int getMaxUndoHistory()
Method to get the maximum number of undos retained in memory


getMemorySize

public static int getMemorySize()
Method to tell the maximum memory to use for Electric, in megatybes. The default is 65 megabytes which is not enough for serious work.

Returns:
the maximum memory to use for Electric (in megabytes).

getPermSpace

public static int getPermSpace()
Method to tell the maximum permanent space of 2dn GC to use for Electric, in megatybes. The default is 0. If zero, value is not considered.

Returns:
the maximum memory to use for Electric (in megabytes).

isUseClientServer

public static boolean isUseClientServer()
Method to tell whether to use a separate client and server for Electric. The default is "false".

Returns:
true to use a separate client and server for Electric

isSnapshotLogging

public static boolean isSnapshotLogging()
Method to tell whether to perform snapshot logging in a temporary file. The default is "false".

Returns:
true to perform snapshot logging in a temporary file

getUserBoolean

public static boolean getUserBoolean(java.lang.String key,
                                     boolean def)

getUserInt

public static int getUserInt(java.lang.String key,
                             int def)

getUserLong

public static long getUserLong(java.lang.String key,
                               long def)

getUserDouble

public static double getUserDouble(java.lang.String key,
                                   double def)

getUserString

public static java.lang.String getUserString(java.lang.String key,
                                             java.lang.String def)