org.eclipse.gef.palette
Class ToolEntry
java.lang.Object
|
+--org.eclipse.gef.palette.PaletteEntry
|
+--org.eclipse.gef.palette.ToolEntry
- Direct Known Subclasses:
- CreationToolEntry, MarqueeToolEntry, SelectionToolEntry
- public abstract class ToolEntry
- extends PaletteEntry
A factory for returning Tools.
Fields inherited from class org.eclipse.gef.palette.PaletteEntry |
listeners, PALETTE_TYPE_UNKNOWN, PERMISSION_FULL_MODIFICATION, PERMISSION_HIDE_ONLY, PERMISSION_LIMITED_MODIFICATION, PERMISSION_NO_MODIFICATION, PROPERTY_DEFAULT, PROPERTY_DESCRIPTION, PROPERTY_LABEL, PROPERTY_LARGE_ICON, PROPERTY_PARENT, PROPERTY_SMALL_ICON, PROPERTY_TYPE, PROPERTY_VISIBLE |
Method Summary |
abstract Tool |
createTool()
Handles the creation of a new Tool. |
Methods inherited from class org.eclipse.gef.palette.PaletteEntry |
addPropertyChangeListener, getDescription, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible, toString |
PALETTE_TYPE_TOOL
public static final Object PALETTE_TYPE_TOOL
- Type Identifier
ToolEntry
public ToolEntry(String label,
String shortDesc,
ImageDescriptor iconSmall,
ImageDescriptor iconLarge)
- Creates a new ToolEntry.
- See Also:
PaletteEntry.PaletteEntry(String, String, ImageDescriptor, ImageDescriptor, Object)
createTool
public abstract Tool createTool()
- Handles the creation of a new Tool. Subclasses must implement.
- Returns:
- the new Tool
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.