org.dishevelled.iconbundle.impl
Class IconBundleUtils

java.lang.Object
  extended by org.dishevelled.iconbundle.impl.IconBundleUtils

public final class IconBundleUtils
extends java.lang.Object

IconBundle static utility class.

Version:
$Revision: 404 $ $Date: 2008-01-02 13:19:59 -0600 (Wed, 02 Jan 2008) $
Author:
Michael Heuer

Method Summary
static java.awt.Image makeActive(java.awt.image.BufferedImage src)
          Make the specified source image active.
static java.awt.Image makeDisabled(java.awt.image.BufferedImage src)
          Make the specified source image disabled.
static java.awt.Image makeDragging(java.awt.image.BufferedImage src)
          Make the specified source image dragging.
static java.awt.Image makeMouseover(java.awt.image.BufferedImage src)
          Make the specified source image mouseover.
static java.awt.Image makeSelected(java.awt.image.BufferedImage src, java.awt.Color selectionColor)
          Make the specified source image selected.
static java.awt.image.BufferedImage readSVG(java.net.URL url, int width, int height)
          Read the specified SVG URL and render it to a BufferedImage of the specified width and height.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readSVG

public static java.awt.image.BufferedImage readSVG(java.net.URL url,
                                                   int width,
                                                   int height)
Read the specified SVG URL and render it to a BufferedImage of the specified width and height.

Parameters:
url - url
width - width
height - height
Returns:
the specified SVG URL rendered to a BufferedImage of the specified width and height

makeActive

public static java.awt.Image makeActive(java.awt.image.BufferedImage src)
Make the specified source image active.

Parameters:
src - source image
Returns:
filtered source image

makeDisabled

public static java.awt.Image makeDisabled(java.awt.image.BufferedImage src)
Make the specified source image disabled.

Parameters:
src - source image
Returns:
filtered source image

makeDragging

public static java.awt.Image makeDragging(java.awt.image.BufferedImage src)
Make the specified source image dragging.

Parameters:
src - source image
Returns:
filtered source image

makeMouseover

public static java.awt.Image makeMouseover(java.awt.image.BufferedImage src)
Make the specified source image mouseover.

Parameters:
src - source image
Returns:
filtered source image

makeSelected

public static java.awt.Image makeSelected(java.awt.image.BufferedImage src,
                                          java.awt.Color selectionColor)
Make the specified source image selected.

Parameters:
src - source image
selectionColor - selection color
Returns:
filtered source image


Copyright (c) 2003-2008 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).