public final class RenderingUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Boolean> |
ALWAYS_PAINT_SELECTION_AS_FOCUSED
This key can be set to a list or a tree to paint unfocused selection as focused.
|
static Key<javax.swing.JComponent> |
FOCUSABLE_SIBLING
This key allows to paint focused selection even if a component does not have a focus.
|
Constructor and Description |
---|
RenderingUtil() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
getBackground(javax.swing.JList<?> list) |
static java.awt.Color |
getBackground(javax.swing.JList<?> list,
boolean selected) |
static java.awt.Color |
getBackground(javax.swing.JTable table) |
static java.awt.Color |
getBackground(javax.swing.JTable table,
boolean selected) |
static java.awt.Color |
getBackground(javax.swing.JTree tree) |
static java.awt.Color |
getBackground(javax.swing.JTree tree,
boolean selected) |
static java.awt.Color |
getForeground(javax.swing.JList<?> list) |
static java.awt.Color |
getForeground(javax.swing.JList<?> list,
boolean selected) |
static java.awt.Color |
getForeground(javax.swing.JTable table) |
static java.awt.Color |
getForeground(javax.swing.JTable table,
boolean selected) |
static java.awt.Color |
getForeground(javax.swing.JTree tree) |
static java.awt.Color |
getForeground(javax.swing.JTree tree,
boolean selected) |
static java.awt.Color |
getSelectionBackground(javax.swing.JList<?> list) |
static java.awt.Color |
getSelectionBackground(javax.swing.JTable table) |
static java.awt.Color |
getSelectionBackground(javax.swing.JTree tree) |
static java.awt.Color |
getSelectionForeground(javax.swing.JList<?> list) |
static java.awt.Color |
getSelectionForeground(javax.swing.JTable table) |
static java.awt.Color |
getSelectionForeground(javax.swing.JTree tree) |
static boolean |
isFocused(javax.swing.JComponent component) |
public static final Key<java.lang.Boolean> ALWAYS_PAINT_SELECTION_AS_FOCUSED
JComponent.putClientProperty(java.lang.Object, java.lang.Object)
public static final Key<javax.swing.JComponent> FOCUSABLE_SIBLING
public static java.awt.Color getBackground(javax.swing.JList<?> list, boolean selected)
public static java.awt.Color getBackground(javax.swing.JTable table, boolean selected)
public static java.awt.Color getBackground(javax.swing.JTree tree, boolean selected)
public static java.awt.Color getBackground(javax.swing.JList<?> list)
public static java.awt.Color getBackground(javax.swing.JTable table)
public static java.awt.Color getBackground(javax.swing.JTree tree)
public static java.awt.Color getSelectionBackground(javax.swing.JList<?> list)
public static java.awt.Color getSelectionBackground(javax.swing.JTable table)
public static java.awt.Color getSelectionBackground(javax.swing.JTree tree)
public static java.awt.Color getForeground(javax.swing.JList<?> list, boolean selected)
public static java.awt.Color getForeground(javax.swing.JTable table, boolean selected)
public static java.awt.Color getForeground(javax.swing.JTree tree, boolean selected)
public static java.awt.Color getForeground(javax.swing.JList<?> list)
public static java.awt.Color getForeground(javax.swing.JTable table)
public static java.awt.Color getForeground(javax.swing.JTree tree)
public static java.awt.Color getSelectionForeground(javax.swing.JList<?> list)
public static java.awt.Color getSelectionForeground(javax.swing.JTable table)
public static java.awt.Color getSelectionForeground(javax.swing.JTree tree)
public static boolean isFocused(javax.swing.JComponent component)