projectviewer.vpt
Class IconComposer

java.lang.Object
  extended by projectviewer.vpt.IconComposer

public final class IconComposer
extends java.lang.Object

Create decorated icons for VPT nodes

Author:
Stefan Kost

Method Summary
 javax.swing.Icon composeIcon(VPTNode node, javax.swing.Icon baseIcon)
          Composes a new icon by overlaying status icons on top of the given base icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

composeIcon

public javax.swing.Icon composeIcon(VPTNode node,
                                    javax.swing.Icon baseIcon)
Composes a new icon by overlaying status icons on top of the given base icon. Currently, three status icons are supported:

Parameters:
node - Node to query.
baseIcon - Icon where to overlay status icons.
Returns:
A new icon with the overlayed status icons.