freemind.modes
Class MindIcon

java.lang.Object
  extended by freemind.modes.MindIcon
All Implemented Interfaces:
IconInformation, java.lang.Comparable

public class MindIcon
extends java.lang.Object
implements java.lang.Comparable, IconInformation

This class represents a MindIcon than can be applied to a node or a whole branch.


Field Summary
static int LAST
           
static java.lang.String PROPERTY_STRING_ICONS_LIST
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
static MindIcon factory(java.lang.String iconName)
           
static MindIcon factory(java.lang.String iconName, javax.swing.ImageIcon icon)
           
static java.util.Vector getAllIconNames()
           
 java.lang.String getDescription()
           
 javax.swing.ImageIcon getIcon()
           
 java.lang.String getIconBaseFileName()
           
 java.lang.String getIconFileName()
           
static java.lang.String getIconsPath()
           
 javax.swing.KeyStroke getKeyStroke()
           
 java.lang.String getKeystrokeResourceName()
           
 java.lang.String getName()
          Get the value of name.
 javax.swing.JComponent getRendererComponent()
           
protected  void setIcon(javax.swing.ImageIcon _associatedIcon)
          Set the value of icon.
 void setName(java.lang.String name)
          Set the value of name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_STRING_ICONS_LIST

public static final java.lang.String PROPERTY_STRING_ICONS_LIST
See Also:
Constant Field Values

LAST

public static final int LAST
See Also:
Constant Field Values
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Get the value of name.

Returns:
Value of name.

setName

public void setName(java.lang.String name)
Set the value of name.

Parameters:
name - Value to assign to name.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IconInformation

getIconFileName

public java.lang.String getIconFileName()

getIconBaseFileName

public java.lang.String getIconBaseFileName()

getIconsPath

public static java.lang.String getIconsPath()

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in interface IconInformation

setIcon

protected void setIcon(javax.swing.ImageIcon _associatedIcon)
Set the value of icon.

Parameters:
_associatedIcon - Value to assign to icon.

getAllIconNames

public static java.util.Vector getAllIconNames()

factory

public static MindIcon factory(java.lang.String iconName)

factory

public static MindIcon factory(java.lang.String iconName,
                               javax.swing.ImageIcon icon)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getRendererComponent

public javax.swing.JComponent getRendererComponent()

getKeystrokeResourceName

public java.lang.String getKeystrokeResourceName()
Specified by:
getKeystrokeResourceName in interface IconInformation

getKeyStroke

public javax.swing.KeyStroke getKeyStroke()
Specified by:
getKeyStroke in interface IconInformation