public class DarculaUIUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DarculaUIUtil.MouseHoverPropertyTrigger |
static class |
DarculaUIUtil.Outline |
Modifier and Type | Field and Description |
---|---|
static JBValue |
ARROW_BUTTON_WIDTH |
static JBValue |
BUTTON_ARC |
static JBValue |
BW |
static JBValue |
COMPACT_HEIGHT |
static java.lang.String |
COMPACT_PROPERTY |
static JBValue |
COMPONENT_ARC |
static JBValue |
LW |
static JBValue |
MINIMUM_HEIGHT |
static JBValue |
MINIMUM_WIDTH |
Constructor and Description |
---|
DarculaUIUtil() |
Modifier and Type | Method and Description |
---|---|
static float |
arc()
Deprecated.
use
COMPONENT_ARC .getFloat() instead |
static float |
buttonArc()
Deprecated.
use
BUTTON_ARC .get() instead |
static float |
bw()
Deprecated.
use
BW .get() instead |
static void |
doPaint(java.awt.Graphics2D g,
int width,
int height,
float arc,
boolean symmetric) |
static java.awt.Color |
getArrowButtonBackgroundColor(boolean enabled,
boolean editable)
Deprecated.
use
JBUI.CurrentTheme.Arrow#backgroundColor(boolean, boolean) |
static java.awt.Color |
getArrowButtonForegroundColor(boolean enabled)
Deprecated.
use
JBUI.CurrentTheme.Arrow#foregroundColor(boolean) |
static java.awt.Color |
getButtonTextColor(javax.swing.AbstractButton button) |
static java.awt.Color |
getOutlineColor(boolean enabled,
boolean focused) |
static int |
getPatchedNextVisualPositionFrom(javax.swing.text.JTextComponent t,
int pos,
int direction) |
static boolean |
isCompact(java.awt.Component c) |
static boolean |
isMultiLineHTML(java.lang.String text) |
static boolean |
isTableCellEditor(java.awt.Component c) |
static float |
lw(java.awt.Graphics2D g2)
Deprecated.
use
LW .get() instead |
static java.awt.Dimension |
maximize(java.awt.Dimension s1,
java.awt.Dimension s2) |
static java.awt.Insets |
paddings() |
static void |
paintCellEditorBorder(java.awt.Graphics2D g2,
java.awt.Component c,
java.awt.Rectangle r,
boolean hasFocus) |
static void |
paintErrorBorder(java.awt.Graphics2D g,
int width,
int height,
int arc,
boolean symmetric,
boolean hasFocus)
|
static void |
paintFocusBorder(java.awt.Graphics2D g,
int width,
int height,
float arc,
boolean symmetric) |
static void |
paintFocusOval(java.awt.Graphics2D g,
float x,
float y,
float width,
float height) |
static void |
paintFocusRing(java.awt.Graphics g,
java.awt.Rectangle r)
Deprecated.
|
static void |
paintOutlineBorder(java.awt.Graphics2D g,
int width,
int height,
float arc,
boolean symmetric,
boolean hasFocus,
DarculaUIUtil.Outline type) |
public static final java.lang.String COMPACT_PROPERTY
public static final JBValue MINIMUM_WIDTH
public static final JBValue MINIMUM_HEIGHT
public static final JBValue COMPACT_HEIGHT
public static final JBValue ARROW_BUTTON_WIDTH
public static final JBValue LW
public static final JBValue BW
public static final JBValue BUTTON_ARC
public static final JBValue COMPONENT_ARC
@Deprecated public static void paintFocusRing(java.awt.Graphics g, java.awt.Rectangle r)
paintFocusBorder(Graphics2D, int, int, float, boolean)
public static void paintFocusOval(java.awt.Graphics2D g, float x, float y, float width, float height)
@Deprecated public static void paintErrorBorder(java.awt.Graphics2D g, int width, int height, int arc, boolean symmetric, boolean hasFocus)
public static void paintOutlineBorder(java.awt.Graphics2D g, int width, int height, float arc, boolean symmetric, boolean hasFocus, DarculaUIUtil.Outline type)
public static void paintFocusBorder(java.awt.Graphics2D g, int width, int height, float arc, boolean symmetric)
public static void doPaint(java.awt.Graphics2D g, int width, int height, float arc, boolean symmetric)
public static int getPatchedNextVisualPositionFrom(javax.swing.text.JTextComponent t, int pos, int direction)
BasicTextUI.getNextVisualPositionFrom(JTextComponent, int, Position.Bias, int, Position.Bias[])
public static void paintCellEditorBorder(java.awt.Graphics2D g2, java.awt.Component c, java.awt.Rectangle r, boolean hasFocus)
public static boolean isCompact(java.awt.Component c)
public static boolean isTableCellEditor(java.awt.Component c)
@Deprecated public static float lw(java.awt.Graphics2D g2)
LW
.get() instead@Deprecated public static float bw()
BW
.get() instead@Deprecated public static float arc()
COMPONENT_ARC
.getFloat() instead@Deprecated public static float buttonArc()
BUTTON_ARC
.get() insteadpublic static java.awt.Insets paddings()
public static java.awt.Color getOutlineColor(boolean enabled, boolean focused)
@Deprecated public static java.awt.Color getArrowButtonBackgroundColor(boolean enabled, boolean editable)
JBUI.CurrentTheme.Arrow#backgroundColor(boolean, boolean)
@Deprecated public static java.awt.Color getArrowButtonForegroundColor(boolean enabled)
JBUI.CurrentTheme.Arrow#foregroundColor(boolean)
public static java.awt.Dimension maximize(java.awt.Dimension s1, java.awt.Dimension s2)
public static java.awt.Color getButtonTextColor(javax.swing.AbstractButton button)
public static boolean isMultiLineHTML(java.lang.String text)