Package | Description |
---|---|
org.eclipse.gef.palette |
This package defines and implements the model used by the
PaletteViewer . |
org.eclipse.gef.ui.palette | |
org.eclipse.gef.ui.palette.customize |
Modifier and Type | Class and Description |
---|---|
class |
CombinedTemplateCreationEntry
A combination of a
PaletteTemplateEntry and ToolEntry . |
class |
ConnectionCreationToolEntry
A palette ToolEntry for a
ConnectionCreationTool . |
class |
CreationToolEntry
A palette ToolEntry for a
CreationTool . |
class |
MarqueeToolEntry
A palette ToolEntry for a
MarqueeSelectionTool . |
class |
PaletteContainer
Default implementation of PaletteContainer
|
class |
PaletteDrawer
A PaletteDrawer is a collapsible container that can have other non-container
palette entries.
|
class |
PaletteGroup
A PaletteGroup consists of a group of
PaletteEntry objects that are uncollapsible . |
class |
PaletteRoot
Serves as the root
PaletteEntry for the
palette model. |
class |
PaletteSeparator
A separator for the palette
Separators can also be used as markers. |
class |
PaletteStack
The model object for a PaletteStack - A stack of tools.
|
class |
PaletteTemplateEntry |
class |
PaletteToolbar
A PaletteGroup consists of a group of
PaletteEntry objects that are uncollapsible . |
class |
PanningSelectionToolEntry
A ToolEntry for a
PanningSelectionTool . |
class |
SelectionToolEntry
A ToolEntry for a
SelectionTool . |
class |
ToolEntry
A factory for returning Tools.
|
Modifier and Type | Method and Description |
---|---|
PaletteEntry |
PaletteStack.getActiveEntry()
Returns the PaletteEntry referring to the active entry that should be
shown in the palette.
|
Modifier and Type | Method and Description |
---|---|
void |
PaletteContainer.add(int index,
PaletteEntry entry)
Adds the given PaletteEntry at position
index . |
void |
PaletteStack.add(int index,
PaletteEntry entry) |
void |
PaletteContainer.add(PaletteEntry entry)
Adds the given entry to the end of this PaletteContainer
|
void |
PaletteStack.add(PaletteEntry entry) |
void |
PaletteContainer.appendToSection(java.lang.String id,
PaletteEntry entry)
Appends the given entry after the entry with the given id, but before the
next separator.
|
boolean |
PaletteContainer.moveDown(PaletteEntry entry)
Moves the given entry down, if possible.
|
boolean |
PaletteContainer.moveUp(PaletteEntry entry)
Moves the given entry up, if possible.
|
void |
PaletteContainer.remove(PaletteEntry entry)
Removes the given PaletteEntry from this PaletteContainer
|
void |
PaletteStack.remove(PaletteEntry entry) |
void |
PaletteStack.setActiveEntry(PaletteEntry entry)
Sets the "active" child entry to the given PaletteEntry.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
PaletteCustomizer.canAdd(PaletteContainer container,
PaletteEntry entry)
Return true if this container can accept this entry as a new child.
|
boolean |
PaletteCustomizer.canDelete(PaletteEntry entry)
Indicates whether the given entry can be deleted from the model or not.
|
boolean |
PaletteCustomizer.canMoveDown(PaletteEntry entry)
Indicates whether the given entry can be moved down or not.
|
boolean |
PaletteCustomizer.canMoveUp(PaletteEntry entry)
Indicates whether the given entry can be moved up or not.
|
EntryPage |
PaletteCustomizer.getPropertiesPage(PaletteEntry entry)
Returns an EntryPage that will display the custom properties of the given
entry.
|
void |
PaletteCustomizer.performDelete(PaletteEntry entry)
Updates the model by deleting the given entry from it.
|
void |
PaletteCustomizer.performMoveDown(PaletteEntry entry)
Updates the model by moving the entry down.
|
void |
PaletteCustomizer.performMoveUp(PaletteEntry entry)
Updates the model by moving the entry up.
|
Modifier and Type | Method and Description |
---|---|
protected PaletteEntry |
PaletteGroupFactory.createNewEntry(Shell shell) |
PaletteEntry |
PaletteSeparatorFactory.createNewEntry(Shell shell) |
protected PaletteEntry |
PaletteStackFactory.createNewEntry(Shell shell) |
protected abstract PaletteEntry |
PaletteEntryFactory.createNewEntry(Shell shell)
Create the PaletteEntry
|
protected PaletteEntry |
PaletteDrawerFactory.createNewEntry(Shell shell) |
PaletteEntry |
PaletteStackFactory.createNewEntry(Shell shell,
PaletteEntry selected) |
PaletteEntry |
PaletteEntryFactory.createNewEntry(Shell shell,
PaletteEntry selected)
This method is called when a new palette entry of the type supported by
this
PaletteEntryFactory is to be created. |
protected PaletteEntry |
DefaultEntryPage.getEntry()
Provides sub-classes with access to the entry this class is monitoring.
|
protected PaletteEntry |
PaletteCustomizerDialog.getSelectedPaletteEntry() |
Modifier and Type | Method and Description |
---|---|
boolean |
PaletteStackFactory.canCreate(PaletteEntry selected) |
boolean |
PaletteEntryFactory.canCreate(PaletteEntry selected)
This method is called by the
PaletteCustomizerDialog to
determine whether to enable or disable this action on the toolbar and the
context menu. |
boolean |
PaletteContainerFactory.canCreate(PaletteEntry selected)
You can always create a new container.
|
void |
DefaultEntryPage.createControl(Composite parent,
PaletteEntry entry) |
void |
DrawerEntryPage.createControl(Composite parent,
PaletteEntry entry) |
void |
EntryPage.createControl(Composite parent,
PaletteEntry entry)
Creates the Control that displays the properties of the given entry.
|
PaletteEntry |
PaletteStackFactory.createNewEntry(Shell shell,
PaletteEntry selected) |
PaletteEntry |
PaletteEntryFactory.createNewEntry(Shell shell,
PaletteEntry selected)
This method is called when a new palette entry of the type supported by
this
PaletteEntryFactory is to be created. |
protected PaletteContainer |
PaletteEntryFactory.determineContainerForNewEntry(PaletteEntry selected)
Given the current selection, this method determines the parent for the
new entry to be created.
|
protected PaletteContainer |
PaletteContainerFactory.determineContainerForNewEntry(PaletteEntry selected) |
protected int |
PaletteEntryFactory.determineIndexForNewEntry(PaletteContainer c,
PaletteEntry selected)
Calculates the index at which the new entry is to be created, given the
current selection.
|
protected int |
PaletteContainerFactory.determineIndexForNewEntry(PaletteContainer parent,
PaletteEntry selected) |
protected java.lang.Object |
PaletteSeparatorFactory.determineTypeForNewEntry(PaletteEntry selected) |
protected java.lang.Object |
PaletteStackFactory.determineTypeForNewEntry(PaletteEntry selected) |
protected java.lang.Object |
PaletteEntryFactory.determineTypeForNewEntry(PaletteEntry selected)
Given the current selection, this method determines the type of the new
entry to be created.
|
protected java.lang.Object |
PaletteDrawerFactory.determineTypeForNewEntry(PaletteEntry selected) |
protected EntryPage |
PaletteCustomizerDialog.getEntryPage(PaletteEntry entry)
Returns the
EntryPage for the given
PaletteEntry . |
protected void |
PaletteCustomizerDialog.setActiveEntry(PaletteEntry entry)
This methods sets the active entry.
|
void |
PaletteCustomizerDialog.setDefaultSelection(PaletteEntry entry)
Sets the given PaletteEntry as the one to be selected when the dialog
opens.
|
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.