SysML

org.topcased.modeler.sysml.blockdefinitiondiagram.edit
Class BlockEditPart

java.lang.Object
  extended by EMFGraphNodeEditPart
      extended by org.topcased.modeler.sysml.blockdefinitiondiagram.edit.ElementEditPart
          extended by org.topcased.modeler.sysml.blockdefinitiondiagram.edit.NamedElementEditPart
              extended by org.topcased.modeler.sysml.blockdefinitiondiagram.edit.TypeEditPart
                  extended by org.topcased.modeler.sysml.blockdefinitiondiagram.edit.ClassifierEditPart
                      extended by org.topcased.modeler.sysml.blockdefinitiondiagram.edit.BehavioredClassifierEditPart
                          extended by org.topcased.modeler.sysml.blockdefinitiondiagram.edit.BlockEditPart
Direct Known Subclasses:
ConstraintBlockEditPart

public class BlockEditPart
extends BehavioredClassifierEditPart

The Block object controller

** Generated **

Constructor Summary
BlockEditPart(GraphNode obj)
          Constructor
 
Method Summary
protected  void addChildVisual(org.eclipse.gef.EditPart childEditPart, int index)
          This method is overriden because of ports which are stored in the figure and not in the content pane
protected  void createEditPolicies()
          Creates edit policies and associates these with roles
protected  org.eclipse.draw2d.IFigure createFigure()
           
protected  org.eclipse.swt.graphics.Color getDefaultBackgroundColor()
          This method is overriden because BlockEditPart inherits from BehavioredClassifierEditPart which has been modified from the generate code.
protected  org.eclipse.swt.graphics.Font getDefaultFont()
          Datatype label is bold
protected  void refreshHeaderLabel()
           
protected  void removeChildVisual(org.eclipse.gef.EditPart childEditPart)
          This method is overriden because of ports which are stored in the figure and not in the content pane
protected  void reorderChild(org.eclipse.gef.EditPart child, int index)
          This method is overriden because of ports which are stored in the figure and not in the content pane
 
Methods inherited from class org.topcased.modeler.sysml.blockdefinitiondiagram.edit.ElementEditPart
activate, deactivate, handleModelChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockEditPart

public BlockEditPart(GraphNode obj)
Constructor

Parameters:
obj - the graph node
** Generated **
Method Detail

createEditPolicies

protected void createEditPolicies()
Creates edit policies and associates these with roles

Overrides:
createEditPolicies in class BehavioredClassifierEditPart
** Generated **

createFigure

protected org.eclipse.draw2d.IFigure createFigure()

Overrides:
createFigure in class BehavioredClassifierEditPart
See Also:
org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
** Generated **
NOT

reorderChild

protected void reorderChild(org.eclipse.gef.EditPart child,
                            int index)
This method is overriden because of ports which are stored in the figure and not in the content pane

See Also:
org.eclipse.gef.editparts.AbstractEditPart#reorderChild(EditPart, int)

addChildVisual

protected void addChildVisual(org.eclipse.gef.EditPart childEditPart,
                              int index)
This method is overriden because of ports which are stored in the figure and not in the content pane

See Also:
org.eclipse.gef.AbstractGraphicalEditPart#addChildVisual(org.eclipse.gef.EditPart, int)

removeChildVisual

protected void removeChildVisual(org.eclipse.gef.EditPart childEditPart)
This method is overriden because of ports which are stored in the figure and not in the content pane

See Also:
org.eclipse.gef.AbstractGraphicalEditPart#removeChildVisual(org.eclipse.gef.EditPart)

refreshHeaderLabel

protected void refreshHeaderLabel()
Overrides:
refreshHeaderLabel in class BehavioredClassifierEditPart

getDefaultBackgroundColor

protected org.eclipse.swt.graphics.Color getDefaultBackgroundColor()
This method is overriden because BlockEditPart inherits from BehavioredClassifierEditPart which has been modified from the generate code.

Overrides:
getDefaultBackgroundColor in class BehavioredClassifierEditPart

getDefaultFont

protected org.eclipse.swt.graphics.Font getDefaultFont()
Description copied from class: TypeEditPart
Datatype label is bold

Overrides:
getDefaultFont in class BehavioredClassifierEditPart
See Also:
org.topcased.modeler.edit.GraphNodeEditPart#getDefaultFont()

SysML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.