|
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.TopGraphicEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart
Controller for all label that deals with interactions bewteen the label figure the underline editpart
| Nested Class Summary |
| 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 | |
LabelEditPart(View view)
constructor |
|
| Method Summary | |
protected void |
addNotationalListeners()
This method adds all listeners to the notational world (views, figures, editpart...etc) Override this method to add more notational listeners down the hierarchy |
protected void |
createDefaultEditPolicies()
Should be overridden to install editpolicies programmatically. |
protected IFigure |
createFigure()
|
protected AccessibleEditPart |
getAccessibleEditPart()
|
protected java.lang.String |
getAccessibleText()
Concatenates the text of all the text compartment children of this editpart to be used as the accessible text. |
java.lang.Object |
getAdapter(java.lang.Class key)
Returns an object which is an instance of the given class associated with this object. |
DragTracker |
getDragTracker(Request request)
Return a DragTracker instance. |
int |
getKeyPoint()
Returns a ConnectionLocator.MIDDLE as the key point. |
Point |
getReferencePoint()
Returns a Point located on the parent which is
used by the LabelEditPart to orient itself. |
protected java.lang.String |
getSemanticType()
Returns the model's semantic hint. |
static Point |
getSnapBackPosition(java.lang.String propertyName)
Retrieves the default snap back position for this label that was registered using using the LabelEditPart.registerSnapBackPosition(String, Point) method. |
protected void |
handleNotificationEvent(Notification notification)
Handles the property changed event. |
boolean |
isSnapBackNeeded()
Method isSnapBackNeeded. |
void |
refresh()
Invoke the editpart's refresh mechanism. |
void |
refreshBounds()
Updates the locator based on the changes to the offset. |
protected void |
refreshVisuals()
Refresh the editpart's figure visual properties. |
static void |
registerSnapBackPosition(java.lang.String propertyName,
Point offset)
Registers the default snap back position for this label that is retrievable from the editpolicy that creates the command to move the label back to it's original position. |
protected void |
removeNotationalListeners()
This method removes all listeners to the notational world (views, figures, editpart...etc) Override this method to remove notational listeners down the hierarchy |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.editparts.TopGraphicEditPart |
getResizableCompartments, getResizableNotationViews, performDirectEditRequest, understandsRequest |
| Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart |
activateEditPolicies, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getChildren, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getParent, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, refreshChildren, register, registerAccessibility, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setParent, setSelected, toString, unregister, unregisterAccessibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.GraphicalEditPart |
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint |
| Methods inherited from interface org.eclipse.gef.EditPart |
addEditPartListener, addNotify, getChildren, getEditPolicy, getParent, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, setFocus, setParent, setSelected |
| Constructor Detail |
public LabelEditPart(View view)
view - this edit part's view| Method Detail |
public static void registerSnapBackPosition(java.lang.String propertyName,
Point offset)
LabelEditPart should call this to register their labels default
position.
propertyName - String that is usually the property identifier for the label or
it can be any unique identifier the label subclass desires.offset - Point that is the offset Point position from the keypoint.public static Point getSnapBackPosition(java.lang.String propertyName)
LabelEditPart.registerSnapBackPosition(String, Point) method.
propertyName - String that is usually the property identifier for the label or
it can be any unique identifier the label subclass desires.
Point that is the offset Point position from the keypoint.protected IFigure createFigure()
createFigure in class GraphicalEditPartprotected java.lang.String getSemanticType()
public void refresh()
GraphicalEditPart
refresh in interface EditPartrefresh in class GraphicalEditPartpublic void refreshBounds()
protected void createDefaultEditPolicies()
GraphicalEditPart
createDefaultEditPolicies in class TopGraphicEditPartGraphicalEditPart.createDefaultEditPolicies()public DragTracker getDragTracker(Request request)
DragTracker instance.
getDragTracker in interface EditPartgetDragTracker in class GraphicalEditPartEditPart.getDragTracker(org.eclipse.gef.Request)public boolean isSnapBackNeeded()
protected void refreshVisuals()
GraphicalEditPart
refreshVisuals in class GraphicalEditPartAbstractEditPart.refreshVisuals()protected void handleNotificationEvent(Notification notification)
GraphicalEditPart
handleNotificationEvent in class GraphicalEditPartnotification - the Notification object that is the property changed eventorg.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart#handlePropertyChangeEvent(java.beans.PropertyChangeEvent)protected void addNotationalListeners()
GraphicalEditPart
addNotationalListeners in class GraphicalEditPartprotected void removeNotationalListeners()
GraphicalEditPart
removeNotationalListeners in class GraphicalEditPartprotected AccessibleEditPart getAccessibleEditPart()
getAccessibleEditPart in class GraphicalEditPartAbstractEditPart.getAccessibleEditPart()protected java.lang.String getAccessibleText()
public java.lang.Object getAdapter(java.lang.Class key)
IPropertySource
is delegated to the connection editpart so that the property pages
reflect the connection when the label is selected). Otherwise,
the adapter from this editpart is first retrieved; if this is
null, then the adapter from the connection editpart is returned.
This means if a client asks for IView the label view
will be returned, but if a client asks for IPrimaryView
the owner view will be returned.
getAdapter in interface IAdaptablegetAdapter in class GraphicalEditPartIAdaptable.getAdapter(java.lang.Class)public int getKeyPoint()
public Point getReferencePoint()
Point located on the parent which is
used by the LabelEditPart to orient itself.
|
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.