public class

Utilities

extends Object
java.lang.Object
   ↳ sun.tools.jconsole.Utilities

Class Overview

Miscellaneous utility methods for JConsole

Summary

Public Constructors
Utilities()
Public Methods
static Color ensureContrast(Color c1, Color c2)
Modifies color c1 to ensure it has acceptable contrast relative to color c2.
static double getColorBrightness(Color c)
static JScrollPane newTableScrollPane(JComponent comp)
A slightly modified border for JScrollPane to be used with a JTable inside a JTabbedPane.
static void setAccessibleDescription(Accessible comp, String description)
static void setAccessibleName(Accessible comp, String name)
static void updateTransparency(JComponent comp)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Utilities ()

Public Methods

public static Color ensureContrast (Color c1, Color c2)

Modifies color c1 to ensure it has acceptable contrast relative to color c2. http://www.w3.org/TR/AERT#color-contrast http://www.cs.rit.edu/~ncs/color/t_convert.html#RGB%20to%20YIQ%20&%20YIQ%20to%20RGB

public static double getColorBrightness (Color c)

public static JScrollPane newTableScrollPane (JComponent comp)

A slightly modified border for JScrollPane to be used with a JTable inside a JTabbedPane. It has only top part and the rest is clipped to make the overall border less thick. The top border helps differentiating the containing table from its container.

public static void setAccessibleDescription (Accessible comp, String description)

public static void setAccessibleName (Accessible comp, String name)

public static void updateTransparency (JComponent comp)