pivot.wtk.content
Class ListViewColorRenderer.ColorBadge

java.lang.Object
  extended by pivot.wtk.media.Image
      extended by pivot.wtk.content.ListViewColorRenderer.ColorBadge
All Implemented Interfaces:
Visual
Enclosing class:
ListViewColorRenderer

public static class ListViewColorRenderer.ColorBadge
extends Image

Internal image class for rendering color swatches.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.media.Image
Image.LoadTask
 
Field Summary
static int SIZE
           
 
Constructor Summary
ListViewColorRenderer.ColorBadge()
           
 
Method Summary
 java.awt.Color getColor()
           
 int getHeight()
          Returns the visual's height.
 int getWidth()
          Returns the visual's width.
 void paint(java.awt.Graphics2D graphics)
          Paints the visual.
 void setColor(java.awt.Color color)
           
 
Methods inherited from class pivot.wtk.media.Image
getSize, load, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

public static final int SIZE
See Also:
Constant Field Values
Constructor Detail

ListViewColorRenderer.ColorBadge

public ListViewColorRenderer.ColorBadge()
Method Detail

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 java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)

paint

public void paint(java.awt.Graphics2D graphics)
Description copied from interface: Visual
Paints the visual.

Parameters:
graphics - The graphics context in which to paint the visual.