public class SwingHelpers extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SwingHelpers.NamedFunction<A,B> |
| Modifier and Type | Field and Description |
|---|---|
static SwingHelpers.NamedFunction<JComponent,Color> |
DEF_COLOR_BACKGROUND |
static SwingHelpers.NamedFunction<JComponent,Color> |
DEF_COLOR_FOREGROUND |
| Constructor and Description |
|---|
SwingHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static net.thevpc.echo.Bounds |
fromAwtBounds(Rectangle newValue) |
static net.thevpc.echo.api.AppColor |
fromAwtColor(Color newValue,
net.thevpc.echo.Application app) |
static net.thevpc.echo.api.AppFont |
fromAwtFont(Font f,
net.thevpc.echo.Application app) |
static Dimension |
minDim(Dimension... all) |
static void |
refreshPanel(Component c,
int lvl) |
static Dimension |
sizeOf(DisplayMode dm) |
static Dimension |
sizeOf(GraphicsConfiguration gc) |
static Dimension |
sizePercent(Dimension size,
float w,
float h) |
static Rectangle |
toAwtBounds(net.thevpc.echo.Bounds newValue) |
static Color |
toAwtColor(net.thevpc.echo.api.AppColor color) |
static Color |
toAwtColor(net.thevpc.echo.api.AppColor color,
JComponent c,
SwingHelpers.NamedFunction<JComponent,Color> def) |
static Dimension |
toAwtDimension(net.thevpc.echo.Dimension d) |
static Font |
toAwtFont(net.thevpc.echo.api.AppFont color) |
static Font |
toAwtFont(net.thevpc.echo.api.AppFont color,
JComponent c,
SwingHelpers.NamedFunction<JComponent,Font> def) |
static Icon |
toAwtIcon(net.thevpc.echo.api.AppImage i) |
static Image |
toAwtImage(net.thevpc.echo.api.AppImage i) |
public static final SwingHelpers.NamedFunction<JComponent,Color> DEF_COLOR_FOREGROUND
public static final SwingHelpers.NamedFunction<JComponent,Color> DEF_COLOR_BACKGROUND
public static Icon toAwtIcon(net.thevpc.echo.api.AppImage i)
public static Image toAwtImage(net.thevpc.echo.api.AppImage i)
public static Dimension toAwtDimension(net.thevpc.echo.Dimension d)
public static void refreshPanel(Component c, int lvl)
public static Color toAwtColor(net.thevpc.echo.api.AppColor color, JComponent c, SwingHelpers.NamedFunction<JComponent,Color> def)
public static Font toAwtFont(net.thevpc.echo.api.AppFont color, JComponent c, SwingHelpers.NamedFunction<JComponent,Font> def)
public static Color toAwtColor(net.thevpc.echo.api.AppColor color)
public static Font toAwtFont(net.thevpc.echo.api.AppFont color)
public static net.thevpc.echo.api.AppColor fromAwtColor(Color newValue, net.thevpc.echo.Application app)
public static Rectangle toAwtBounds(net.thevpc.echo.Bounds newValue)
public static net.thevpc.echo.Bounds fromAwtBounds(Rectangle newValue)
public static net.thevpc.echo.api.AppFont fromAwtFont(Font f, net.thevpc.echo.Application app)
public static Dimension sizeOf(GraphicsConfiguration gc)
public static Dimension sizeOf(DisplayMode dm)
Copyright © 2022 vpc open source initiative. All rights reserved.