org.talend.designer.core.ui.editor.nodes
Class NodeLabelEditPart

java.lang.Object
  extended by org.eclipse.gef.editparts.AbstractEditPart
      extended by org.eclipse.gef.editparts.AbstractGraphicalEditPart
          extended by org.talend.designer.core.ui.editor.nodes.NodeLabelEditPart
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.gef.RequestConstants

public class NodeLabelEditPart
extends org.eclipse.gef.editparts.AbstractGraphicalEditPart
implements java.beans.PropertyChangeListener

Graphical part of the node label of Gef.
$Id: NodeLabelEditPart.java 2738 2007-03-28 13:12:27 +0000 (mer., 28 mars 2007) plegall $


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart.AccessibleGraphicalEditPart, org.eclipse.gef.editparts.AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider
 
Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractEditPart.EditPolicyIterator
 
Field Summary
protected  NodePart nodePart
           
 
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
NodeLabelEditPart()
           
 
Method Summary
 void activate()
           
 void createEditPolicies()
           
 org.eclipse.draw2d.IFigure createFigure()
           
 void deactivate()
           
 java.lang.Object getAdapter(java.lang.Class key)
           
 org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
           
 NodePart getNodePart()
          Gives the EditPart of the node where is attached the label.
 boolean isSelectable()
           
 void performRequest(org.eclipse.gef.Request request)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
protected  void refreshVisuals()
           
 void setSelected(int value)
           
 
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getContentPane, getFigure, getLayer, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisuals
 
Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart
activateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getChildren, getCommand, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getModel, getModelChildren, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, refreshChildren, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregister, 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, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, showSourceFeedback, showTargetFeedback, understandsRequest
 

Field Detail

nodePart

protected NodePart nodePart
Constructor Detail

NodeLabelEditPart

public NodeLabelEditPart()
Method Detail

activate

public void activate()
Specified by:
activate in interface org.eclipse.gef.EditPart
Overrides:
activate in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

getAdapter

public java.lang.Object getAdapter(java.lang.Class key)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

deactivate

public void deactivate()
Specified by:
deactivate in interface org.eclipse.gef.EditPart
Overrides:
deactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

getNodePart

public NodePart getNodePart()
Gives the EditPart of the node where is attached the label.

Returns:

createFigure

public org.eclipse.draw2d.IFigure createFigure()
Specified by:
createFigure in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

createEditPolicies

public void createEditPolicies()
Specified by:
createEditPolicies in class org.eclipse.gef.editparts.AbstractEditPart

getDragTracker

public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
Specified by:
getDragTracker in interface org.eclipse.gef.EditPart
Overrides:
getDragTracker in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

refreshVisuals

protected void refreshVisuals()
Overrides:
refreshVisuals in class org.eclipse.gef.editparts.AbstractEditPart

performRequest

public void performRequest(org.eclipse.gef.Request request)
Specified by:
performRequest in interface org.eclipse.gef.EditPart
Overrides:
performRequest in class org.eclipse.gef.editparts.AbstractEditPart

setSelected

public void setSelected(int value)
Specified by:
setSelected in interface org.eclipse.gef.EditPart
Overrides:
setSelected in class org.eclipse.gef.editparts.AbstractEditPart

isSelectable

public boolean isSelectable()
Specified by:
isSelectable in interface org.eclipse.gef.EditPart
Overrides:
isSelectable in class org.eclipse.gef.editparts.AbstractEditPart