jdbreport.util
Class Utils
java.lang.Object
jdbreport.util.Utils
public class Utils
- extends Object
- Version:
- 2.0 20.01.2011
- Author:
- Andrey Kholmanskih
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
errorHandler
public static and.util.ErrorHandler errorHandler
Utils
public Utils()
colorToInt
public static int colorToInt(Color color)
colorToHex
public static String colorToHex(Color color)
colorToString
public static String colorToString(Color color)
colorByName
public static Color colorByName(String color)
stringToColor
public static Color stringToColor(String color)
strToBrushStyle
public static int strToBrushStyle(String s)
getRenderedImage
public static RenderedImage getRenderedImage(ImageIcon icon)
- Parameters:
icon
-
- Returns:
- RendereImage
screenCenter
public static void screenCenter(Window window)
- Center screen
- Parameters:
window
-
screenCenter
public static void screenCenter(Window window,
Window parent)
showError
public static void showError(Throwable e)
showError
public static void showError(String message)