JavaCAD
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
eu.mihosoft.vrl.v3d.parametrics.CSGDatabase Class Reference
Collaboration diagram for eu.mihosoft.vrl.v3d.parametrics.CSGDatabase:
Collaboration graph
[legend]

Static Public Member Functions

static void set (String key, Parameter value)
 
static Parameter get (String key)
 
static void clear ()
 
static void addParameterListener (String key, IParameterChanged l)
 
static void removeParameterListener (String key, IParameterChanged l)
 
static ArrayList< IParameterChangedgetParamListeners (String key)
 
static void delete (String key)
 
static void loadDatabaseFromFile (File f)
 
static String getDataBaseString ()
 
static void saveDatabase ()
 
static File getDbFile ()
 
static void setDbFile (File dbFile)
 

Static Private Member Functions

static HashMap< String, ParametergetDatabase ()
 
static void setDatabase (HashMap< String, Parameter > database)
 

Static Private Attributes

static HashMap< String, Parameterdatabase =null
 
static File dbFile =new File("CSGdatabase.json")
 
static final Type TT_mapStringString = new TypeToken<HashMap<String,Parameter>>(){}.getType()
 
static final Gson gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create()
 
static final HashMap< String, ArrayList< IParameterChanged > > parameterListeners =new HashMap<>()
 

Detailed Description

Definition at line 17 of file CSGDatabase.java.

Member Function Documentation

◆ addParameterListener()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.addParameterListener ( String  key,
IParameterChanged  l 
)
static

Definition at line 48 of file CSGDatabase.java.

References eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.getParamListeners().

Referenced by eu.mihosoft.vrl.v3d.parametrics.Parameter.setup().

Here is the call graph for this function:

◆ clear()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.clear ( )
static

◆ delete()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.delete ( String  key)
static

Definition at line 72 of file CSGDatabase.java.

References eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.getDatabase().

Here is the call graph for this function:

◆ get()

static Parameter eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.get ( String  key)
static

◆ getDatabase()

static HashMap<String,Parameter> eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.getDatabase ( )
staticprivate

◆ getDataBaseString()

static String eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.getDataBaseString ( )
static

◆ getDbFile()

static File eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.getDbFile ( )
static

◆ getParamListeners()

static ArrayList<IParameterChanged> eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.getParamListeners ( String  key)
static

◆ loadDatabaseFromFile()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.loadDatabaseFromFile ( File  f)
static

◆ removeParameterListener()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.removeParameterListener ( String  key,
IParameterChanged  l 
)
static

◆ saveDatabase()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.saveDatabase ( )
static

◆ set()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.set ( String  key,
Parameter  value 
)
static

Definition at line 24 of file CSGDatabase.java.

References eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.getDatabase().

Referenced by eu.mihosoft.vrl.v3d.CSG.setParameter(), and eu.mihosoft.vrl.v3d.parametrics.Parameter.setup().

Here is the call graph for this function:

◆ setDatabase()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.setDatabase ( HashMap< String, Parameter database)
staticprivate

◆ setDbFile()

static void eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.setDbFile ( File  dbFile)
static

Definition at line 196 of file CSGDatabase.java.

References eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.dbFile, and eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.loadDatabaseFromFile().

Here is the call graph for this function:

Member Data Documentation

◆ database

HashMap<String,Parameter> eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.database =null
staticprivate

◆ dbFile

File eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.dbFile =new File("CSGdatabase.json")
staticprivate

◆ gson

final Gson eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create()
staticprivate

◆ parameterListeners

final HashMap<String,ArrayList<IParameterChanged> > eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.parameterListeners =new HashMap<>()
staticprivate

◆ TT_mapStringString

final Type eu.mihosoft.vrl.v3d.parametrics.CSGDatabase.TT_mapStringString = new TypeToken<HashMap<String,Parameter>>(){}.getType()
staticprivate

The documentation for this class was generated from the following file: