public abstract class JCollider extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
isMacOS
true if we're running on Mac OS X. |
static boolean |
isWindows
true if we're running on a Windows system |
static String |
VERSION |
Constructor and Description |
---|
JCollider() |
Modifier and Type | Method and Description |
---|---|
static void |
displayError(Component component,
Exception exception,
String title)
Displays an error message dialog by
examining a given
Exception . |
static String |
getCopyrightString()
Returns a copyright information string
about the library
|
static String |
getCreditsString()
Returns a license and website information string
about the library
|
static String |
getResourceString(String key) |
static String |
getVersion()
Returns the library's version.
|
static void |
main(String[] args)
This method gets called when one tries
to start the .jar file directly.
|
static void |
setDeepFont(Container c,
Font fnt)
Set a font for a container
and all children we can find
in this container (calling this
method recursively).
|
public static final String VERSION
public static final boolean isMacOS
true
if we're running on Mac OS X.
This value can be used to check if certain UGens
are available, or to find the location of scsynth.public static final boolean isWindows
true
if we're running on a Windows systempublic static void main(String[] args)
args
- shell arguments. there may be a single argument
"--test1" or "--test2" to
run the demos. "--bindefs" to create
a binary def file from the xml descriptionspublic static String getVersion()
public static String getCopyrightString()
public static String getCreditsString()
public static void setDeepFont(Container c, Font fnt)
setFont
on a JPanel
does not
cause the Font
of the
gadgets contained in the panel to
change their fonts.c
- the container to traverse
for children whose font is to be changedfnt
- the new font to applyComponent.setFont( Font )
public static void displayError(Component component, Exception exception, String title)
Exception
. Returns
after the dialog was closed by the user.component
- the component in which to open the dialog.
null
is allowed in which case
the dialog will appear centered on the screen.exception
- the exception that was thrown. the message's
text is displayed using the getLocalizedMessage
method.title
- name of the action in which the error occurredThrowable.getLocalizedMessage()
Copyright © 2015–2022 SciJava. All rights reserved.