BowlerKernel
Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Attributes | List of all members
com.neuronrobotics.bowlerstudio.assets.AssetFactory Class Reference
Collaboration diagram for com.neuronrobotics.bowlerstudio.assets.AssetFactory:
Collaboration graph
[legend]

Static Public Member Functions

static FXMLLoader loadLayout (String file, boolean refresh) throws Exception
 
static FXMLLoader loadLayout (String file) throws Exception
 
static File loadFile (String file) throws Exception
 
static void writeImage (Image img, File file)
 
static Image loadAsset (String file) throws Exception
 
static ImageView loadIcon (String file)
 
static String getGitSource () throws Exception
 
static void setGitSource (String gitSource, String assetRepoBranch) throws Exception
 
static void loadAllAssets () throws Exception
 
static String getAssetRepoBranch ()
 
static void setAssetRepoBranch (String assetRepoBranch)
 
static void deleteFolder (File folder)
 

Static Public Attributes

static final String repo = "BowlerStudioImageAssets"
 

Private Member Functions

 AssetFactory ()
 

Static Private Attributes

static String gitSource = "https://github.com/madhephaestus/" + repo + ".git"
 
static HashMap< String, Image > cache = new HashMap<>()
 
static HashMap< String, FXMLLoader > loaders = new HashMap<>()
 
static String assetRepoBranch = ""
 

Detailed Description

Definition at line 26 of file AssetFactory.java.

Constructor & Destructor Documentation

◆ AssetFactory()

com.neuronrobotics.bowlerstudio.assets.AssetFactory.AssetFactory ( )
private

Definition at line 34 of file AssetFactory.java.

Member Function Documentation

◆ deleteFolder()

static void com.neuronrobotics.bowlerstudio.assets.AssetFactory.deleteFolder ( File  folder)
static

Definition at line 177 of file AssetFactory.java.

◆ getAssetRepoBranch()

static String com.neuronrobotics.bowlerstudio.assets.AssetFactory.getAssetRepoBranch ( )
static

◆ getGitSource()

static String com.neuronrobotics.bowlerstudio.assets.AssetFactory.getGitSource ( ) throws Exception
static

◆ loadAllAssets()

static void com.neuronrobotics.bowlerstudio.assets.AssetFactory.loadAllAssets ( ) throws Exception
static

◆ loadAsset()

static Image com.neuronrobotics.bowlerstudio.assets.AssetFactory.loadAsset ( String  file) throws Exception
static

◆ loadFile()

static File com.neuronrobotics.bowlerstudio.assets.AssetFactory.loadFile ( String  file) throws Exception
static

◆ loadIcon()

static ImageView com.neuronrobotics.bowlerstudio.assets.AssetFactory.loadIcon ( String  file)
static

◆ loadLayout() [1/2]

static FXMLLoader com.neuronrobotics.bowlerstudio.assets.AssetFactory.loadLayout ( String  file) throws Exception
static

Definition at line 49 of file AssetFactory.java.

References com.neuronrobotics.bowlerstudio.assets.AssetFactory.loadLayout().

Here is the call graph for this function:

◆ loadLayout() [2/2]

static FXMLLoader com.neuronrobotics.bowlerstudio.assets.AssetFactory.loadLayout ( String  file,
boolean  refresh 
) throws Exception
static

◆ setAssetRepoBranch()

static void com.neuronrobotics.bowlerstudio.assets.AssetFactory.setAssetRepoBranch ( String  assetRepoBranch)
static

◆ setGitSource()

static void com.neuronrobotics.bowlerstudio.assets.AssetFactory.setGitSource ( String  gitSource,
String  assetRepoBranch 
) throws Exception
static

◆ writeImage()

static void com.neuronrobotics.bowlerstudio.assets.AssetFactory.writeImage ( Image  img,
File  file 
)
static

Member Data Documentation

◆ assetRepoBranch

String com.neuronrobotics.bowlerstudio.assets.AssetFactory.assetRepoBranch = ""
staticprivate

◆ cache

HashMap<String, Image> com.neuronrobotics.bowlerstudio.assets.AssetFactory.cache = new HashMap<>()
staticprivate

◆ gitSource

String com.neuronrobotics.bowlerstudio.assets.AssetFactory.gitSource = "https://github.com/madhephaestus/" + repo + ".git"
staticprivate

◆ loaders

HashMap<String, FXMLLoader> com.neuronrobotics.bowlerstudio.assets.AssetFactory.loaders = new HashMap<>()
staticprivate

◆ repo

final String com.neuronrobotics.bowlerstudio.assets.AssetFactory.repo = "BowlerStudioImageAssets"
static

Definition at line 28 of file AssetFactory.java.


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