GEF v2.0

org.eclipse.gef.palette
Class DefaultPaletteEntry

java.lang.Object
  |
  +--org.eclipse.gef.palette.DefaultPaletteEntry
All Implemented Interfaces:
PaletteEntry
Direct Known Subclasses:
DefaultPaletteContainer, DefaultPaletteToolEntry

public class DefaultPaletteEntry
extends Object
implements PaletteEntry


Fields inherited from interface org.eclipse.gef.palette.PaletteEntry
PALETTE_TYPE_UNKNOWN
 
Constructor Summary
DefaultPaletteEntry()
           
DefaultPaletteEntry(String label)
           
DefaultPaletteEntry(String label, String shortDescription)
           
DefaultPaletteEntry(String label, String shortDescription, Image iconSmall, Image iconLarge)
           
DefaultPaletteEntry(String label, String shortDescription, Image iconSmall, Image iconLarge, Object type)
           
DefaultPaletteEntry(String label, String shortDescription, Object type)
           
DefaultPaletteEntry(String label, String shortDescription, Object type, Image iconSmall, Image iconLarge)
           
 
Method Summary
 String getDescription()
          Returns a short desecription describing this entry.
 String getLabel()
          returns the label for this entry.
 Image getLargeIcon()
          returns a large icon representing this entry.
 Image getSmallIcon()
          Returns a small icon representing the entry.
 Object getType()
          Returns the type of this entry.
 boolean isDefault()
          Returns the default nature of the entry.
 void setDefault(boolean isDefault)
           
 void setDescription(String s)
           
 void setLabel(String s)
           
 void setLargeIcon(Image icon)
           
 void setSmallIcon(Image icon)
           
 void setType(Object type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultPaletteEntry

public DefaultPaletteEntry()

DefaultPaletteEntry

public DefaultPaletteEntry(String label)

DefaultPaletteEntry

public DefaultPaletteEntry(String label,
                           String shortDescription)

DefaultPaletteEntry

public DefaultPaletteEntry(String label,
                           String shortDescription,
                           Object type)

DefaultPaletteEntry

public DefaultPaletteEntry(String label,
                           String shortDescription,
                           Image iconSmall,
                           Image iconLarge)

DefaultPaletteEntry

public DefaultPaletteEntry(String label,
                           String shortDescription,
                           Object type,
                           Image iconSmall,
                           Image iconLarge)

DefaultPaletteEntry

public DefaultPaletteEntry(String label,
                           String shortDescription,
                           Image iconSmall,
                           Image iconLarge,
                           Object type)
Method Detail

getSmallIcon

public Image getSmallIcon()
Description copied from interface: PaletteEntry
Returns a small icon representing the entry.
Specified by:
getSmallIcon in interface PaletteEntry

getType

public Object getType()
Description copied from interface: PaletteEntry
Returns the type of this entry. Useful for different interpretations of the palette model.
Specified by:
getType in interface PaletteEntry

isDefault

public boolean isDefault()
Description copied from interface: PaletteEntry
Returns the default nature of the entry.
Specified by:
isDefault in interface PaletteEntry

getLargeIcon

public Image getLargeIcon()
Description copied from interface: PaletteEntry
returns a large icon representing this entry.
Specified by:
getLargeIcon in interface PaletteEntry

getLabel

public String getLabel()
Description copied from interface: PaletteEntry
returns the label for this entry.
Specified by:
getLabel in interface PaletteEntry

getDescription

public String getDescription()
Description copied from interface: PaletteEntry
Returns a short desecription describing this entry.
Specified by:
getDescription in interface PaletteEntry

setSmallIcon

public void setSmallIcon(Image icon)

setType

public void setType(Object type)

setLargeIcon

public void setLargeIcon(Image icon)

setLabel

public void setLabel(String s)

setDescription

public void setDescription(String s)

setDefault

public void setDefault(boolean isDefault)

toString

public String toString()
Overrides:
toString in class Object

GEF v2.0