org.dishevelled.iconbundle.impl
Class ShapeIconBundle

java.lang.Object
  extended by org.dishevelled.iconbundle.impl.ShapeIconBundle
All Implemented Interfaces:
IconBundle

public final class ShapeIconBundle
extends java.lang.Object
implements IconBundle

Shape icon bundle.

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

Constructor Summary
ShapeIconBundle(java.awt.Shape shape, java.awt.Stroke stroke, java.awt.Paint fillPaint, java.awt.Paint strokePaint)
          Create a new shape icon bundle with the specified shape, stroke, and paints.
 
Method Summary
 java.awt.Image getImage(java.awt.Component component, IconTextDirection direction, IconState state, IconSize size)
          Return an icon image in the specified icon text direction, size, and state suitable for the specified component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeIconBundle

public ShapeIconBundle(java.awt.Shape shape,
                       java.awt.Stroke stroke,
                       java.awt.Paint fillPaint,
                       java.awt.Paint strokePaint)
Create a new shape icon bundle with the specified shape, stroke, and paints.

Parameters:
shape - shape, must not be null
stroke - stroke
fillPaint - fill paint
strokePaint - stroke paint
Method Detail

getImage

public java.awt.Image getImage(java.awt.Component component,
                               IconTextDirection direction,
                               IconState state,
                               IconSize size)
Return an icon image in the specified icon text direction, size, and state suitable for the specified component. The specified AWT or Swing component may be null.

Specified by:
getImage in interface IconBundle
Parameters:
component - AWT or Swing component hint, if any
direction - icon text direction, must not be null
state - icon state, must not be null
size - icon size, must not be null
Returns:
an icon image suitable for the specified component


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