Class SwingHelpers
java.lang.Object
net.thevpc.echo.swing.helpers.SwingHelpers
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SwingHelpers.NamedFunction<JComponent, Color> static final SwingHelpers.NamedFunction<JComponent, Color> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BoundsfromAwtBounds(Rectangle newValue) static AppColorfromAwtColor(Color newValue, Application app) static AppFontfromAwtFont(Font f, Application app) static Dimensionstatic voidrefreshPanel(Component c, int lvl) static DimensionsizeOf(DisplayMode dm) static Dimensionstatic DimensionsizePercent(Dimension size, float w, float h) static RectangletoAwtBounds(Bounds newValue) static ColortoAwtColor(AppColor color) static ColortoAwtColor(AppColor color, JComponent c, SwingHelpers.NamedFunction<JComponent, Color> def) static Dimensionstatic Fontstatic FonttoAwtFont(AppFont font, JComponent c, SwingHelpers.NamedFunction<JComponent, Font> def) static Iconstatic Image
-
Field Details
-
DEF_COLOR_FOREGROUND
-
DEF_COLOR_BACKGROUND
-
-
Constructor Details
-
SwingHelpers
public SwingHelpers()
-
-
Method Details
-
toAwtIcon
-
toAwtImage
-
toAwtDimension
-
refreshPanel
-
toAwtColor
public static Color toAwtColor(AppColor color, JComponent c, SwingHelpers.NamedFunction<JComponent, Color> def) -
toAwtFont
public static Font toAwtFont(AppFont font, JComponent c, SwingHelpers.NamedFunction<JComponent, Font> def) -
toAwtColor
-
toAwtFont
-
fromAwtColor
-
toAwtBounds
-
fromAwtBounds
-
fromAwtFont
-
minDim
-
sizePercent
-
sizeOf
-
sizeOf
-