public class SystemManager extends LogicManager implements ActionListener, Runnable
bio
Constructor and Description |
---|
SystemManager(VisBioFrame bio)
Constructs a system manager.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Outputs current RAM usage to console.
|
void |
cleanMemory()
Calls the Java garbage collector to free wasted memory.
|
void |
doEvent(VisBioEvent evt)
Called to notify the logic manager of a VisBio event.
|
static void |
gc()
Does some garbage collection, to free up memory.
|
SystemControls |
getControls()
Gets associated control panel.
|
int |
getMaximumMemory()
Gets maximum amount of memory available to VisBio in megabytes.
|
String |
getMemoryUsage()
Gets a string detailing current memory usage.
|
int |
getTasks()
Gets the number of tasks required to initialize this logic manager.
|
boolean |
isJNLP()
Detects whether VisBio was launched with Java Web Start.
|
void |
run()
Performs garbage collection, displaying a wait cursor while doing so.
|
void |
showSystemInfo()
Displays the system information window.
|
void |
writeScript(int heap,
String laf,
String j3d)
Updates the VisBio launch parameters to specify the given maximum heap and
look and feel settings.
|
getVisBio, restoreState, saveState
public SystemManager(VisBioFrame bio)
public String getMemoryUsage()
public int getMaximumMemory()
public void cleanMemory()
public void writeScript(int heap, String laf, String j3d)
public boolean isJNLP()
public SystemControls getControls()
public void showSystemInfo()
public void doEvent(VisBioEvent evt)
doEvent
in class LogicManager
public int getTasks()
getTasks
in class LogicManager
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void run()
public static void gc()
Copyright © 2015–2022 SciJava. All rights reserved.