org.apache.pivot.wtk.content
Class ListViewColorItemRenderer.ColorBadge
java.lang.Object
org.apache.pivot.wtk.media.Image
org.apache.pivot.wtk.content.ListViewColorItemRenderer.ColorBadge
- All Implemented Interfaces:
- Visual
- Enclosing class:
- ListViewColorItemRenderer
public static class ListViewColorItemRenderer.ColorBadge
- extends Image
Internal image class for rendering color swatches.
Field Summary |
static int |
SIZE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
ListViewColorItemRenderer.ColorBadge
public ListViewColorItemRenderer.ColorBadge()
getWidth
public int getWidth()
- Description copied from interface:
Visual
- Returns the visual's width.
getHeight
public int getHeight()
- Description copied from interface:
Visual
- Returns the visual's height.
getColor
public Color getColor()
setColor
public void setColor(Color color)
paint
public void paint(Graphics2D graphics)
- Description copied from interface:
Visual
- Paints the visual.
- Parameters:
graphics
- The graphics context in which to paint the visual.