org.dishevelled.iconbundle.impl
Class ShapeIconBundle
java.lang.Object
org.dishevelled.iconbundle.impl.ShapeIconBundle
- All Implemented Interfaces:
- IconBundle
public final class ShapeIconBundle
- extends Object
- implements IconBundle
Shape icon bundle.
- Version:
- $Revision: 741 $ $Date: 2010-01-02 20:23:15 -0600 (Sat, 02 Jan 2010) $
- Author:
- Michael Heuer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeIconBundle
public ShapeIconBundle(Shape shape,
Stroke stroke,
Paint fillPaint,
Paint strokePaint)
- Create a new shape icon bundle with the specified shape,
stroke, and paints.
- Parameters:
shape - shape, must not be nullstroke - strokefillPaint - fill paintstrokePaint - stroke paint
getImage
public Image getImage(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 anydirection - icon text direction, must not be nullstate - icon state, must not be nullsize - icon size, must not be null
- Returns:
- an icon image suitable for the specified component
Copyright (c) 2003-2010 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).