Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.editparts.impl
Class SystemNodeEditPart

java.lang.Object
  extended by ShapeNodeEditPart
      extended by com.ibm.etools.systems.application.visual.editor.editparts.impl.SystemNodeEditPart
All Implemented Interfaces:
INamedEditPart
Direct Known Subclasses:
BinaryArtifactEditPart, CallableBlockEditPart, SourceContainerEditPart

public class SystemNodeEditPart
extends ShapeNodeEditPart
implements INamedEditPart

Default node editpart for Application Diagram model element.


Field Summary
 
Fields inherited from interface com.ibm.etools.systems.application.visual.editor.editparts.INamedEditPart
copyright
 
Constructor Summary
SystemNodeEditPart(View view)
          Constructor.
 
Method Summary
protected  void createDefaultEditPolicies()
          Install edit policies
protected  NodeFigure createNodeFigure()
          Creates a note figure.
 String createTooltipText()
          Create tooltip text.
protected  AccessibleEditPart getAccessibleEditPart()
           
 Artifact getArtifact()
          Return model element.
 Command getCommand(Request request)
          Get command.
protected  View getDelegatedPrimaryView()
          Get interested notation view.
 String getDisplayName()
          Return name displayed in figure.
protected  WrappingLabel getFigureNamedLabel()
          Get the label in figure.
protected  IconRetriever getIconRetriever()
          Get icon retriever.
 EditPolicy getPrimaryDragEditPolicy()
          Return customized drag edit policy.
protected  void handleNotificationEvent(Notification event)
           
protected  void refreshFont()
          Refresh the editpart's figure font.
protected  void refreshFontColor()
          Refresh the editpart's figure font colour.
protected  void refreshStrikeThrough()
          Refresh the editpart's figure font strikethrough effect.
protected  void refreshUnderline()
          Refresh the editpart's figure font underline effect.
protected  void refreshVisuals()
           
 Image retrieveIcon(Artifact artifact, int flags)
          Retrieve icon.
protected  void setFontColor(Color color)
          Refresh the editpart's figure font color.
protected  void setVisibility(boolean vis)
          sets the visibility of this edit part
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemNodeEditPart

public SystemNodeEditPart(View view)
Constructor.

Method Detail

createNodeFigure

protected NodeFigure createNodeFigure()
Creates a note figure.


getArtifact

public Artifact getArtifact()
Return model element.


getDisplayName

public String getDisplayName()
Return name displayed in figure.

Specified by:
getDisplayName in interface INamedEditPart

createTooltipText

public String createTooltipText()
Create tooltip text.


refreshVisuals

protected void refreshVisuals()

handleNotificationEvent

protected void handleNotificationEvent(Notification event)
See Also:
org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart#handleNotificationEvent(Notification)

refreshFont

protected void refreshFont()
Refresh the editpart's figure font.


refreshFontColor

protected void refreshFontColor()
Refresh the editpart's figure font colour.


refreshUnderline

protected void refreshUnderline()
Refresh the editpart's figure font underline effect.


refreshStrikeThrough

protected void refreshStrikeThrough()
Refresh the editpart's figure font strikethrough effect.


getDelegatedPrimaryView

protected View getDelegatedPrimaryView()
Get interested notation view. In most case, this is the primary view of this editpart. However, this could be primary view of other editpart, such as its parent.


setFontColor

protected void setFontColor(Color color)
Refresh the editpart's figure font color.


createDefaultEditPolicies

protected void createDefaultEditPolicies()
Install edit policies


getCommand

public Command getCommand(Request request)
Get command.


getPrimaryDragEditPolicy

public EditPolicy getPrimaryDragEditPolicy()
Return customized drag edit policy.


getAccessibleEditPart

protected AccessibleEditPart getAccessibleEditPart()

getFigureNamedLabel

protected WrappingLabel getFigureNamedLabel()
Get the label in figure.


retrieveIcon

public Image retrieveIcon(Artifact artifact,
                          int flags)
Retrieve icon.

Parameters:
artifact -
flags -

getIconRetriever

protected IconRetriever getIconRetriever()
Get icon retriever.


setVisibility

protected void setVisibility(boolean vis)
sets the visibility of this edit part

Parameters:
vis - the new value of the visibility

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.