com.ibm
Class LookAndFeel
java.lang.Object
com.ibm.LookAndFeel
public class LookAndFeel
- extends java.lang.Object
This class contains static methods that use the Java 2 API. They are isolated
here to prevent errors when ImageJ is running on Java 1.1 JVMs.
Method Summary |
static int |
getStringWidth(java.lang.String s,
java.awt.FontMetrics fontMetrics,
java.awt.Graphics g)
|
static void |
setAntialiased(java.awt.Graphics g,
boolean antialiased)
|
static void |
setAntialiasedText(java.awt.Graphics g,
boolean antialiasedText)
|
static void |
setBilinearInterpolation(java.awt.Graphics g,
boolean bilinearInterpolation)
|
static void |
setSystemLookAndFeel()
Sets the Swing look and feel to the system look and feel. |
static void |
setSystemLookAndFeel(int SystemCode)
Sets the Swing look and feel to the system look and feel. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
METAL
public static int METAL
MOTIF
public static int MOTIF
WINDOWS
public static int WINDOWS
MAC
public static int MAC
GTK
public static int GTK
LINUX
public static int LINUX
LookAndFeel
public LookAndFeel()
setAntialiased
public static void setAntialiased(java.awt.Graphics g,
boolean antialiased)
setAntialiasedText
public static void setAntialiasedText(java.awt.Graphics g,
boolean antialiasedText)
getStringWidth
public static int getStringWidth(java.lang.String s,
java.awt.FontMetrics fontMetrics,
java.awt.Graphics g)
setBilinearInterpolation
public static void setBilinearInterpolation(java.awt.Graphics g,
boolean bilinearInterpolation)
setSystemLookAndFeel
public static void setSystemLookAndFeel()
- Sets the Swing look and feel to the system look and feel.
setSystemLookAndFeel
public static void setSystemLookAndFeel(int SystemCode)
- Sets the Swing look and feel to the system look and feel.