jdbreport.util
Class Utils

java.lang.Object
  extended by jdbreport.util.Utils

public class Utils
extends Object

Version:
2.0 20.01.2011
Author:
Andrey Kholmanskih

Field Summary
static and.util.ErrorHandler errorHandler
           
 
Constructor Summary
Utils()
           
 
Method Summary
static Color colorByName(String color)
           
static String colorToHex(Color color)
           
static int colorToInt(Color color)
           
static String colorToString(Color color)
           
static RenderedImage getRenderedImage(ImageIcon icon)
           
static void screenCenter(Window window)
          Center screen
static void screenCenter(Window window, Window parent)
           
static void showError(String message)
           
static void showError(Throwable e)
           
static Color stringToColor(String color)
           
static int strToBrushStyle(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorHandler

public static and.util.ErrorHandler errorHandler
Constructor Detail

Utils

public Utils()
Method Detail

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)