projectviewer.vpt
Class IconComposer

java.lang.Object
  extended byprojectviewer.vpt.IconComposer

public final class IconComposer
extends java.lang.Object

Create decorated icons for VPT nodes

Version:
$Id: IconComposer.java 8932 2007-02-09 05:29:17Z vanza $
Author:
Stefan Kost

Nested Class Summary
static interface IconComposer.VCProvider
          Version control plugins that want to provide file status info to PV should implement this interface.
 
Field Summary
static int FILE_STATE_CHANGED
           
static int FILE_STATE_NORMAL
           
static int FILE_STATE_NOT_FOUND
           
static int FILE_STATE_READONLY
           
static int MSG_STATE_ERRORS
           
static int MSG_STATE_MESSAGES
           
static int MSG_STATE_NONE
           
static int VC_STATE_CONFLICT
           
static int VC_STATE_LOCAL_ADD
           
static int VC_STATE_LOCAL_MOD
           
static int VC_STATE_LOCAL_RM
           
static int VC_STATE_NEED_UPDATE
           
static int VC_STATE_NONE
           
 
Constructor Summary
IconComposer()
           
 
Method Summary
static javax.swing.Icon composeIcon(java.io.File f, java.lang.String path, javax.swing.Icon baseIcon)
           
static void setVersionControlProvider(IconComposer.VCProvider vc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_STATE_NORMAL

public static final int FILE_STATE_NORMAL
See Also:
Constant Field Values

FILE_STATE_CHANGED

public static final int FILE_STATE_CHANGED
See Also:
Constant Field Values

FILE_STATE_READONLY

public static final int FILE_STATE_READONLY
See Also:
Constant Field Values

FILE_STATE_NOT_FOUND

public static final int FILE_STATE_NOT_FOUND
See Also:
Constant Field Values

VC_STATE_NONE

public static final int VC_STATE_NONE
See Also:
Constant Field Values

VC_STATE_LOCAL_MOD

public static final int VC_STATE_LOCAL_MOD
See Also:
Constant Field Values

VC_STATE_LOCAL_ADD

public static final int VC_STATE_LOCAL_ADD
See Also:
Constant Field Values

VC_STATE_LOCAL_RM

public static final int VC_STATE_LOCAL_RM
See Also:
Constant Field Values

VC_STATE_NEED_UPDATE

public static final int VC_STATE_NEED_UPDATE
See Also:
Constant Field Values

VC_STATE_CONFLICT

public static final int VC_STATE_CONFLICT
See Also:
Constant Field Values

MSG_STATE_NONE

public static final int MSG_STATE_NONE
See Also:
Constant Field Values

MSG_STATE_MESSAGES

public static final int MSG_STATE_MESSAGES
See Also:
Constant Field Values

MSG_STATE_ERRORS

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

IconComposer

public IconComposer()
Method Detail

setVersionControlProvider

public static void setVersionControlProvider(IconComposer.VCProvider vc)

composeIcon

public static javax.swing.Icon composeIcon(java.io.File f,
                                           java.lang.String path,
                                           javax.swing.Icon baseIcon)