GEF v2.0

org.eclipse.gef.ui.palette
Class GroupEditPart

java.lang.Object
  |
  +--org.eclipse.gef.editparts.AbstractEditPart
        |
        +--org.eclipse.gef.editparts.AbstractGraphicalEditPart
              |
              +--org.eclipse.gef.ui.palette.PaletteEditPart
                    |
                    +--org.eclipse.gef.ui.palette.GroupEditPart
All Implemented Interfaces:
EditPart, GraphicalEditPart, IAdaptable, RequestConstants

public class GroupEditPart
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
GroupEditPart(PaletteContainer group)
           
 
Method Summary
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()
           
 IFigure getContentPane()
          The figure into which children will be placed.
 List getModelChildren()
           Returns a List containing the children model objects.
 
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
activate, addChildVisual, addSourceConnection, addTargetConnection, deactivate, dispose, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, 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

GroupEditPart

public GroupEditPart(PaletteContainer group)
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

getContentPane

public IFigure getContentPane()
Description copied from interface: GraphicalEditPart
The figure into which children will be placed. Should not return null, but may return the same figure as getFigure(). An example would be a GraphicalEditPart that uses a ScrollPane, which looks like this:
ScrollPane - returned by getFigure()
Viewport - (internal, does the scrolling)
View - returned by getContentPane()

A ScrollPane already has a special child, so the GraphicalEditPart's children will get added to the View

Overrides:
getContentPane in class AbstractGraphicalEditPart

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

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 AbstractEditPart

GEF v2.0