|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.ui.SubstanceUtils
public class SubstanceUtils
Utility methods for interfacing with Substance 7.2.1 (Insubstantial) in applications that only require Java 1.4 or later (Substance 6 requires Java 6).
Field Summary | |
---|---|
static java.lang.String |
BACKGROUND_FILL_COLOR
|
static java.lang.String |
DARK_COLOR
|
static java.lang.String |
EXTRA_LIGHT_COLOR
|
static java.lang.String |
FOCUS_RING_COLOR
|
static java.lang.String |
FOREGROUND_COLOR
|
static java.lang.String |
LIGHT_COLOR
|
static java.lang.String |
LINE_COLOR
|
static java.lang.String |
MID_COLOR
|
static java.lang.String |
SELECTION_BG_COLOR
|
static java.lang.String |
SELECTION_FG_COLOR
|
static java.lang.String |
TEXT_BG_FILL_COLOR
|
static java.lang.String |
ULTRA_DARK_COLOR
|
static java.lang.String |
ULTRA_LIGHT_COLOR
|
Constructor Summary | |
---|---|
SubstanceUtils()
|
Method Summary | |
---|---|
static long |
getAnimationSpeed()
Returns the length of time GUI animations take, in milliseconds. |
static java.awt.Color |
getSubstanceColor(java.lang.String name)
Returns a color from the currently active Substance skin. |
static boolean |
isASubstanceLookAndFeel(javax.swing.LookAndFeel laf)
Returns whether a given LookAndFeel is a Substance LookAndFeel. |
static boolean |
isASubstanceLookAndFeel(java.lang.String lafName)
Returns whether a given LookAndFeel is a Substance LookAndFeel. |
static boolean |
isSubstanceInstalled()
Returns whether the currently installed LookAndFeel is Substance. |
static void |
setAnimationSpeed(long millis)
Configures the length of GUI animations, in milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FOREGROUND_COLOR
public static final java.lang.String ULTRA_LIGHT_COLOR
public static final java.lang.String EXTRA_LIGHT_COLOR
public static final java.lang.String LIGHT_COLOR
public static final java.lang.String MID_COLOR
public static final java.lang.String DARK_COLOR
public static final java.lang.String ULTRA_DARK_COLOR
public static final java.lang.String LINE_COLOR
public static final java.lang.String SELECTION_BG_COLOR
public static final java.lang.String SELECTION_FG_COLOR
public static final java.lang.String BACKGROUND_FILL_COLOR
public static final java.lang.String TEXT_BG_FILL_COLOR
public static final java.lang.String FOCUS_RING_COLOR
Constructor Detail |
---|
public SubstanceUtils()
Method Detail |
---|
public static long getAnimationSpeed() throws java.lang.Exception
java.lang.Exception
- If an error occurs.setAnimationSpeed(long)
public static java.awt.Color getSubstanceColor(java.lang.String name) throws java.lang.Exception
name
- The name of a Color, for example LIGHT_COLOR
.
null
if no color by that name is
defined.
java.lang.Exception
- If an error occurs.public static boolean isSubstanceInstalled()
public static boolean isASubstanceLookAndFeel(javax.swing.LookAndFeel laf)
laf
- The LookAndFeel.
isASubstanceLookAndFeel(String)
,
isSubstanceInstalled()
public static boolean isASubstanceLookAndFeel(java.lang.String lafName)
lafName
- The LookAndFeel's class name.
isASubstanceLookAndFeel(LookAndFeel)
,
isSubstanceInstalled()
public static void setAnimationSpeed(long millis) throws java.lang.Exception
millis
- The amount of time animations should take.
java.lang.Exception
- If an error occurs.getAnimationSpeed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |