org.eclipse.gef.ui.palette
Class SliderPaletteEditPart
java.lang.Object
|
+--org.eclipse.gef.editparts.AbstractEditPart
|
+--org.eclipse.gef.editparts.AbstractGraphicalEditPart
|
+--org.eclipse.gef.ui.palette.PaletteEditPart
|
+--org.eclipse.gef.ui.palette.SliderPaletteEditPart
- All Implemented Interfaces:
- EditPart, GraphicalEditPart, IAdaptable, RequestConstants
- public class SliderPaletteEditPart
- extends org.eclipse.gef.ui.palette.PaletteEditPart
| Fields inherited from interface org.eclipse.gef.RequestConstants |
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILD, REQ_ALIGN_CHILDREN, REQ_ANCESTOR_DELETED, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_BENDPOINT, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILD, REQ_MOVE_CHILDREN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_END, REQ_RECONNECT_SOURCE, REQ_RECONNECT_START, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILD, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER, REQ_SOURCE_DELETED, REQ_TARGET_DELETED |
| Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
activate, addSourceConnection, addTargetConnection, deactivate, dispose, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, getContentPane, getDragTracker, getFigure, getLayer, getModelSourceConnections, getModelTargetConnections, getParentingFigure, getSourceConnections, getTargetConnections, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, shouldInitialize, unregister |
| Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart |
activateEditPolicies, addChild, addEditPartListener, createChild, createConnection, createOrFindConnection, deactivateEditPolicies, debug, debugFeedback, doInitialize, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getChildren, getCommand, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getKeyHandler, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, initialize, installEditPolicy, isActive, isSelectable, performRequest, refreshChildren, refreshVisuals, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregisterAccessibility, unregisterModel |
| Methods inherited from interface org.eclipse.gef.EditPart |
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getKeyHandler, getModel, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
triangleSide
protected static int triangleSide
SliderPaletteEditPart
public SliderPaletteEditPart(PaletteRoot paletteRoot)
createFigure
public IFigure createFigure()
- Description copied from class:
AbstractGraphicalEditPart
- Returns the figure to be used as this part's visuals.
- Overrides:
createFigure in class AbstractGraphicalEditPart
getModelChildren
public List getModelChildren()
- Description copied from class:
AbstractEditPart
Returns a List containing the children model objects.
Iff this EditPart's model is a composite, this method should be overridden
to returns its children.
AbstractEditPart.refreshChildren() requires that this List be non-null.
- Overrides:
getModelChildren in class org.eclipse.gef.ui.palette.PaletteEditPart
addChildVisual
protected void addChildVisual(EditPart childEditPart,
int index)
- Description copied from class:
AbstractGraphicalEditPart
- Before performing the addition of the child EditPart to
the model structure in super, its Figure is added to the
graphical model.
- Overrides:
addChildVisual in class AbstractGraphicalEditPart
- Following copied from class:
org.eclipse.gef.editparts.AbstractGraphicalEditPart
- Parameters:
childEditPart - EditPart being added to the structureindex - Psotion the EditPart is being added into.
createAccessible
protected AccessibleEditPart createAccessible()
- returns the AccessibleEditPart for this EditPart. This method is called lazily from
PaletteEditPart.getAccessibleEditPart().
createEditPolicies
public void createEditPolicies()
- Description copied from class:
AbstractEditPart
Creates
the initial EditPolicies and reserves slots for dynamic ones.
Should be overridden to install the inital edit policies based on the
model's initial state.
null can be used to reserve a "slot", should there be
some desire to guarantee the ordering of EditPolcies.
- Overrides:
createEditPolicies in class AbstractEditPart
- Following copied from class:
org.eclipse.gef.editparts.AbstractEditPart
- See Also:
AbstractEditPart.doInitialize(),
AbstractEditPart.installEditPolicy(Object, EditPolicy)
getAccessibleEditPart
protected AccessibleEditPart getAccessibleEditPart()
- Overrides:
getAccessibleEditPart in class AbstractEditPart