|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.muntjak.tinylookandfeel.TinyUtils
public class TinyUtils
TinyUtils provides some static utility methods.
| Field Summary | |
|---|---|
static java.lang.Object |
AA_TEXT_PROPERTY_KEY
This key is a hidden "feature". |
| Constructor Summary | |
|---|---|
TinyUtils()
|
|
| Method Summary | |
|---|---|
static void |
drawStringUnderlineCharAt(javax.swing.JComponent client,
java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
Draw a string with the graphics g at location
(x, y)
just like g.drawString would. |
static java.lang.String |
getJavaVersion()
Returns the JRE version. |
static java.lang.String |
getSystemProperty(java.lang.String key)
Returns the value of the system property corresponding to key argument. |
static java.lang.String |
getSystemPropertyPrivileged(java.lang.String key)
Retrieves a system property by executing a privileged block. |
static boolean |
is1dot4()
Returns true if we are running JRE 1.4 or lower,
false otherwise. |
static boolean |
is1dot5()
Returns true if we are running JRE 1.5.x,
false otherwise. |
static boolean |
is1dot6()
Returns true if we are running JRE 1.6.x,
false otherwise. |
static boolean |
isOSLinux()
Returns true if we are running on Linux, false otherwise. |
static boolean |
isOSMac()
Returns true if we are running on Mac OS, false otherwise. |
| 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.Object AA_TEXT_PROPERTY_KEY
Boolean.TRUE overrides all other text antialiasing settings.
| Constructor Detail |
|---|
public TinyUtils()
| Method Detail |
|---|
public static java.lang.String getSystemPropertyPrivileged(java.lang.String key)
key - a non-null system property key
public static boolean isOSLinux()
public static boolean isOSMac()
public static boolean is1dot4()
true if we are running JRE 1.4 or lower,
false otherwise.
true if we are running JRE 1.4 or lower,
false otherwise.public static boolean is1dot5()
true if we are running JRE 1.5.x,
false otherwise.
true if we are running JRE 1.5.x,
false otherwise.public static boolean is1dot6()
true if we are running JRE 1.6.x,
false otherwise.
true if we are running JRE 1.6.x,
false otherwise.public static java.lang.String getJavaVersion()
public static void drawStringUnderlineCharAt(javax.swing.JComponent client,
java.awt.Graphics g,
java.lang.String text,
int underlinedIndex,
int x,
int y)
g at location
(x, y)
just like g.drawString would.
The character at index underlinedIndex
in text will be underlined. If index is beyond the
bounds of text (including < 0), nothing will be
underlined.
client - the component for which we are drawingg - Graphics to draw withtext - String to drawunderlinedIndex - Index of character in text to underlinex - x coordinate to draw aty - y coordinate to draw atpublic static java.lang.String getSystemProperty(java.lang.String key)
key argument.
key - a non-null system property key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||