SysML

org.topcased.modeler.sysml.internalblockdiagram.figures
Class BlockPropertyFigure

java.lang.Object
  extended by org.topcased.draw2d.figures.ContainerFigure
      extended by org.topcased.modeler.sysml.internalblockdiagram.figures.BlockPropertyFigure

public class BlockPropertyFigure
extends org.topcased.draw2d.figures.ContainerFigure

Represents a < ? >Class Figure that is a simple rectangle aimed to contain other objects such as < ? >Interface, Port, Property and CollaborationUse Figures.

** Generated **

Field Summary
static int COMPOSITE_PROPERTY
           
static int NON_COMPOSITE_PROPERTY
           
 
Constructor Summary
BlockPropertyFigure()
          Constructor
BlockPropertyFigure(int t)
          Creates the contents of the figure : by default, it creates a layout manager, a header and a container
 
Method Summary
protected  org.eclipse.draw2d.IFigure createBackgroundFigure()
          Draws an inner rectangle that will be the real background figure.
protected  org.eclipse.draw2d.IFigure createContainer()
           
protected  void createContents()
           
protected  ILabel createLabel()
          Creates the label of the Figure.
 org.eclipse.draw2d.IFigure getBackgroundFigure()
          Returns the figure drawn behind the label.
 org.eclipse.draw2d.IFigure getContentPane()
           
 ILabel getLabel()
           
 void setType(int t)
          Change the type of the property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPOSITE_PROPERTY

public static final int COMPOSITE_PROPERTY
See Also:
Constant Field Values

NON_COMPOSITE_PROPERTY

public static final int NON_COMPOSITE_PROPERTY
See Also:
Constant Field Values
Constructor Detail

BlockPropertyFigure

public BlockPropertyFigure()
Constructor

** Generated **

BlockPropertyFigure

public BlockPropertyFigure(int t)
Creates the contents of the figure : by default, it creates a layout manager, a header and a container

** Generated **
NOT
Method Detail

createContainer

protected org.eclipse.draw2d.IFigure createContainer()
See Also:
org.topcased.draw2d.figures.ContainerFigure#createContainer()
** Generated **

createContents

protected void createContents()

createBackgroundFigure

protected org.eclipse.draw2d.IFigure createBackgroundFigure()
Draws an inner rectangle that will be the real background figure. The Anchor will be attached to this inner rectangle.

Returns:
the figure

getBackgroundFigure

public org.eclipse.draw2d.IFigure getBackgroundFigure()
Returns the figure drawn behind the label. In this case, we only return the inner rectangle drawn.

Returns:
the background figure

createLabel

protected ILabel createLabel()
Creates the label of the Figure.

Returns:
the label of the Figure

getLabel

public ILabel getLabel()
See Also:
org.topcased.draw2d.figures.ILabelFigure#getLabel()

getContentPane

public org.eclipse.draw2d.IFigure getContentPane()
See Also:
org.topcased.draw2d.figures.IContainerFigure#getContentPane()

setType

public void setType(int t)
Change the type of the property

Parameters:
t - the new type of the property (composite or not)

SysML

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