GEF v2.0

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


Inner classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider
 
Inner classes inherited from class org.eclipse.gef.editparts.AbstractEditPart
AbstractEditPart.EditPolicyIterator
 
Field Summary
protected static int triangleSide
           
 
Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
figure, handles, sourceConnections, targetConnections
 
Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart
children, eventListeners, FLAG_ACTIVE, FLAG_FOCUS, FLAG_INITIALIZED, MAX_FLAG
 
Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
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
 
Constructor Summary
SliderPaletteEditPart(PaletteRoot paletteRoot)
           
 
Method Summary
protected  void addChildVisual(EditPart childEditPart, int index)
          Before performing the addition of the child EditPart to the model structure in super, its Figure is added to the graphical model.
protected  AccessibleEditPart createAccessible()
          returns the AccessibleEditPart for this EditPart.
 void createEditPolicies()
          Creates the initial EditPolicies and reserves slots for dynamic ones.
 IFigure createFigure()
          Returns the figure to be used as this part's visuals.
protected  AccessibleEditPart getAccessibleEditPart()
           
 List getModelChildren()
           Returns a List containing the children model objects.
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Field Detail

triangleSide

protected static int triangleSide
Constructor Detail

SliderPaletteEditPart

public SliderPaletteEditPart(PaletteRoot paletteRoot)
Method Detail

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 structure
index - 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

GEF v2.0