|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.ResizableCompartmentEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart
A generic (sub) shape container that holds instances of
ShapeNodeEditParts and manages the display of
ConnectionNodeEditParts anchored to these shape editpart
instances.
| Nested Class Summary | |
static class |
ShapeCompartmentEditPart.ConnectionRefreshMgr
Class used to refresh the connections associated to the shape compartment's children. |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractEditPart |
AbstractEditPart.EditPolicyIterator |
| Field Summary |
| Fields inherited from class org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart |
accessibleEP, elementGuid |
| Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
figure, sourceConnections, targetConnections |
| Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart |
children, FLAG_ACTIVE, FLAG_FOCUS, 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_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER |
| Constructor Summary | |
ShapeCompartmentEditPart(View view)
Constructor for ShapeCompartmentEditPart. |
|
| Method Summary | |
void |
addNotify()
|
protected ShapeCompartmentEditPart.ConnectionRefreshMgr |
createConnectionRefreshMgr()
Factory method to create a refresh connection. |
protected void |
createDefaultEditPolicies()
Adds the following editpolicies: EditPolicyRoles.CREATION_ROLE :: CreationEditPolicy
EditPolicy.LAYOUT_ROLE :: XYLayoutEditPolicy
EditPolicy.CONTAINER_ROLE :: ContainerEditPolicy
EditPolicyRoles.DRAG_DROP_ROLE ::
DiagramLinkDragDropEditPolicy
EditPolicy.GRAPHICAL_NODE_ROLE ::
ContainerNodeEditPolicy
EditPolicyRoles.SNAP_FEEDBACK_ROLE ::
SnapFeedbackPolicy
EditPolicyRoles.DRAG_DROP_ROLE ::
ShapeCompartmentDropEditPolicy
EditPolicyRoles.POPUPBAR_ROLE :: PopupBarEditPolicy
|
protected IFigure |
createFigure()
Creates a scrollpane (with auto scrollbars) in which the children are drawn. |
protected void |
forceRefreshConnections()
Refresh the connections associated the the children of this shape compartment. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Adds the ability to adapt to SnapToHelper. |
protected ShapeCompartmentEditPart.ConnectionRefreshMgr |
getConnectionRefreshMgr()
Returns the connection refresh manager. |
IFigure |
getContentPane()
Return the container in which shape editparts are added. |
DragTracker |
getDragTracker(Request req)
|
protected LayoutManager |
getLayoutManager()
Returns the layout manager to be used by this shape compartment. |
java.util.List |
getPrimaryEditParts()
Gets the primary editparts on this surface, that is, the top-level shapes and connectors. |
ShapeCompartmentFigure |
getShapeCompartmentFigure()
Convenience method to retrieve the shape compartment figure. |
protected void |
handleNotificationEvent(Notification event)
Refreshes the connections inside the shape compartment if the supplied event is for an element inserted or removed from the editpart. |
protected void |
handlePropertyChangeEvent(java.beans.PropertyChangeEvent event)
Handles property change callbacks. |
boolean |
isSupportingViewActions()
Returns true if the surface edit part is to support the view actions. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Handles the passed property changed event only if the editpart's view is not deleted. |
protected void |
refreshConnections()
Refresh the connections associated the the children of this shape compartment. |
protected void |
refreshVisibility()
Also calls ShapeCompartmentEditPart.refreshConnections(). |
protected void |
registerVisuals()
Registers this instance as a PropertyChangeListener on its figure. |
void |
removeNotify()
|
void |
setIsSupportingViewActions(boolean supportsViewActions)
Setter for isSupportingViewActions |
protected boolean |
supportsDragSelection()
Determines if the shape compartment supports drag selection of it's children. |
protected void |
unregister()
Unregisters this instance as a PropertyChangeListener on its figure. |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.editparts.ResizableCompartmentEditPart |
addNotationalListeners, getCompartmentFigure, getCompartmentName, isSelectable, refreshCollapsed, refreshRatio, refreshShowCompartmentTitle, refreshVisuals, removeNotationalListeners, setCollapsed, setFont, setFontColor, setRatio, setShowCompartmentTitle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart |
findEditPart, getChildBySemanticHint, getDiagramEditDomain, getDiagramPreferencesHint, getEditingDomain, getNotationView, getPreferredValue, getPrimaryChildEditPart, getPrimaryView, getStructuralFeatureValue, getTopGraphicEditPart, resolveSemanticElement, setStructuralFeatureValue |
| Methods inherited from interface org.eclipse.gef.GraphicalEditPart |
addNodeListener, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint |
| Methods inherited from interface org.eclipse.gef.EditPart |
activate, addEditPartListener, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, refresh, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
| Methods inherited from interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.IEditableEditPart |
disableEditMode, enableEditMode, isEditModeEnabled |
| Constructor Detail |
public ShapeCompartmentEditPart(View view)
view - the view controlled by this editpart.| Method Detail |
protected final ShapeCompartmentEditPart.ConnectionRefreshMgr getConnectionRefreshMgr()
ConnectionRefreshMgrprotected ShapeCompartmentEditPart.ConnectionRefreshMgr createConnectionRefreshMgr()
ShapeCompartmentEditPart.ConnectionRefreshMgr instance.
ConnectionRefreshMgrprotected LayoutManager getLayoutManager()
FreeformLayout instance.
protected IFigure createFigure()
createFigure in class ResizableCompartmentEditPartAbstractGraphicalEditPart.createFigure()public ShapeCompartmentFigure getShapeCompartmentFigure()
(ShapeCompartmentFigure)getCompartmentFigure().
ShapeCompartmentFigurepublic IFigure getContentPane()
getContentPane in interface GraphicalEditPartgetContentPane in class ResizableCompartmentEditPartGraphicalEditPart.getContentPane()protected void createDefaultEditPolicies()
EditPolicyRoles.CREATION_ROLE :: CreationEditPolicy
EditPolicy.LAYOUT_ROLE :: XYLayoutEditPolicy
EditPolicy.CONTAINER_ROLE :: ContainerEditPolicy
EditPolicyRoles.DRAG_DROP_ROLE ::
DiagramLinkDragDropEditPolicy
EditPolicy.GRAPHICAL_NODE_ROLE ::
ContainerNodeEditPolicy
EditPolicyRoles.SNAP_FEEDBACK_ROLE ::
SnapFeedbackPolicy
EditPolicyRoles.DRAG_DROP_ROLE ::
ShapeCompartmentDropEditPolicy
EditPolicyRoles.POPUPBAR_ROLE :: PopupBarEditPolicy
createDefaultEditPolicies in class CompartmentEditPartprotected void handlePropertyChangeEvent(java.beans.PropertyChangeEvent event)
event - a property change event.protected void handleNotificationEvent(Notification event)
handleNotificationEvent in class ResizableCompartmentEditPartevent - a model server event.ShapeCompartmentEditPart.refreshConnections()protected void refreshConnections()
protected void forceRefreshConnections()
protected void unregister()
protected void registerVisuals()
protected boolean supportsDragSelection()
boolean true if shape compartment
supports drag selection of it's children, false
otherwise.public DragTracker getDragTracker(Request req)
getDragTracker in interface EditPartgetDragTracker in class CompartmentEditPartEditPart.getDragTracker(org.eclipse.gef.Request)public java.lang.Object getAdapter(java.lang.Class adapter)
SnapToHelper.
getAdapter in interface IAdaptablegetAdapter in class ResizableCompartmentEditPartIAdaptable.getAdapter(java.lang.Class)protected void refreshVisibility()
ShapeCompartmentEditPart.refreshConnections().
refreshVisibility in class GraphicalEditPartpublic boolean isSupportingViewActions()
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPart
isSupportingViewActions in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPartpublic void setIsSupportingViewActions(boolean supportsViewActions)
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPart
setIsSupportingViewActions in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPartpublic final void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpublic java.util.List getPrimaryEditParts()
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPart
getPrimaryEditParts in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPartpublic void addNotify()
addNotify in interface EditPartpublic void removeNotify()
removeNotify in interface EditPartremoveNotify in class GraphicalEditPart
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.