public class DefaultPlatform
extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
DefaultPlatform.CLibrary |
Constructor and Description |
---|
DefaultPlatform() |
Modifier and Type | Method and Description |
---|---|
File |
getDefaultSketchbookFolder() |
String |
getenv(String variable) |
File |
getSettingsFolder()
This function should throw an exception or return a value.
|
int |
getSystemDPI() |
void |
initBase(Base base) |
void |
openFolder(File file) |
boolean |
openFolderAvailable() |
void |
openURL(String url) |
void |
saveLanguage(String languageCode)
Handle any platform-specific languages saving.
|
void |
setenv(String variable,
String value) |
void |
setLookAndFeel()
Set the default L & F.
|
int |
unsetenv(String variable) |
public void initBase(Base base)
public void setLookAndFeel() throws Exception
Exception
- Just like I said.public void saveLanguage(String languageCode)
languageCode
- 2-digit lowercase ISO language codepublic File getSettingsFolder() throws Exception
Exception
public File getDefaultSketchbookFolder() throws Exception
Exception
- so that subclasses can throw a fitpublic void openURL(String url) throws Exception
Exception
public boolean openFolderAvailable()
public void openFolder(File file) throws Exception
Exception
public void setenv(String variable, String value)
public String getenv(String variable)
public int unsetenv(String variable)
public int getSystemDPI()