java.lang.Object
ij.util.Java2
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LookAndFeelReturns the current Swing look and feel or null.static intgetStringWidth(String s, FontMetrics fontMetrics, Graphics g) static voidsetAntialiased(Graphics g, boolean antialiased) static voidsetAntialiasedText(Graphics g, boolean antialiasedText) static voidsetBilinearInterpolation(Graphics g, boolean bilinearInterpolation) static voidsetLookAndFeel(LookAndFeel newLookAndFeel) Sets the Swing look and feel.static voidSets the Swing look and feel to the system look and feel (Windows only).
-
Constructor Details
-
Java2
public Java2()
-
-
Method Details
-
setAntialiased
-
setAntialiasedText
-
getStringWidth
-
setBilinearInterpolation
-
setSystemLookAndFeel
public static void setSystemLookAndFeel()Sets the Swing look and feel to the system look and feel (Windows only). -
setLookAndFeel
Sets the Swing look and feel. -
getLookAndFeel
Returns the current Swing look and feel or null.
-