Package de.mhus.lib.core
Class MSwing
- java.lang.Object
-
- de.mhus.lib.core.MSwing
-
public class MSwing extends Object
-
-
Constructor Summary
Constructors Constructor Description MSwing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcenterDialog(Window _frame, JDialog _dialog)static voidcenterFrame(Window _frame)static String[]getLookAndFeels()static StringgetSelectedPart(JTextArea text)static voidhalfFrame(Window _frame)static voidsetLookAndFeel(int _nr)static BufferedImagetoBufferedImage(Image _in)Cast a Image to a Buffered Image.static BufferedImagetoBufferedImage(Image _in, int _width, int _height)static ColortoColor(String string, Color def)Convert string information to color.static StringtoString(Color _in)Convert Color information to string.static StringtoString(Font _in)Convert Font information to string.static voidtribleFrame(Window _frame)
-
-
-
Method Detail
-
toColor
public static Color toColor(String string, Color def)
Convert string information to color.- Parameters:
string-def-- Returns:
- the color
-
toBufferedImage
public static BufferedImage toBufferedImage(Image _in)
Cast a Image to a Buffered Image. The new image is a BufferedImage.TYPE_3BYTE_BGR type. Perhaps some informations of the origin image will be lost.- Parameters:
_in-- Returns:
- the image
-
toBufferedImage
public static BufferedImage toBufferedImage(Image _in, int _width, int _height)
-
toString
public static String toString(Color _in)
Convert Color information to string. Do not store alpha value.- Parameters:
_in-- Returns:
- color as string
-
toString
public static String toString(Font _in)
Convert Font information to string.- Parameters:
_in-- Returns:
- the font as string
-
halfFrame
public static void halfFrame(Window _frame)
-
tribleFrame
public static void tribleFrame(Window _frame)
-
centerFrame
public static void centerFrame(Window _frame)
-
getLookAndFeels
public static String[] getLookAndFeels()
-
setLookAndFeel
public static void setLookAndFeel(int _nr)
-
-