de.cau.cs.kieler.synccharts.custom
Class SyncchartsFigureProvider

java.lang.Object
  extended by de.cau.cs.kieler.synccharts.custom.SyncchartsFigureProvider
All Implemented Interfaces:
IRenderingProvider

public class SyncchartsFigureProvider
extends Object
implements IRenderingProvider

This class provides figures for the graphical synccharts representation.

Rating red

Field Summary
static int ENTRYACTIONS
           
static int EXITACTIONS
           
static int INSIDEACTIONS
           
static int INTERFACEDECL
           
static int POLYLINE
           
static int REGION
           
static int SIGNALS
           
static int STATELABEL
          the layout elements resp.
static int SUSPENDTRIGGER
           
 
Constructor Summary
SyncchartsFigureProvider()
           
 
Method Summary
 org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator getBorderItemLocatorByString(String input, IFigure parent, Object locator, EObject object)
          Method that returns a BorderItemLocator according to a given string.
 IFigure getDefaultFigure()
          
 IFigure getFigureByString(String input, IFigure oldFigure, EObject object, EditPart part)
          Method that returns a figure according to a given string.
 LayoutManager getLayoutManagerByString(String input, LayoutManager oldLayoutManager, EObject object)
          Method that returns a LayoutManager according to a given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATELABEL

public static final int STATELABEL
the layout elements resp. the indices of the children

See Also:
Constant Field Values

POLYLINE

public static final int POLYLINE
See Also:
Constant Field Values

INTERFACEDECL

public static final int INTERFACEDECL
See Also:
Constant Field Values

SIGNALS

public static final int SIGNALS
See Also:
Constant Field Values

ENTRYACTIONS

public static final int ENTRYACTIONS
See Also:
Constant Field Values

INSIDEACTIONS

public static final int INSIDEACTIONS
See Also:
Constant Field Values

EXITACTIONS

public static final int EXITACTIONS
See Also:
Constant Field Values

SUSPENDTRIGGER

public static final int SUSPENDTRIGGER
See Also:
Constant Field Values

REGION

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

SyncchartsFigureProvider

public SyncchartsFigureProvider()
Method Detail

getDefaultFigure

public IFigure getDefaultFigure()


getFigureByString

public IFigure getFigureByString(String input,
                                 IFigure oldFigure,
                                 EObject object,
                                 EditPart part)
Method that returns a figure according to a given string.

Specified by:
getFigureByString in interface IRenderingProvider
Parameters:
input - a string representation of the figure
oldFigure - the old figure
object - the model element
part - the corresponding editPart
Returns:
the figure

getLayoutManagerByString

public LayoutManager getLayoutManagerByString(String input,
                                              LayoutManager oldLayoutManager,
                                              EObject object)
Method that returns a LayoutManager according to a given string.

Specified by:
getLayoutManagerByString in interface IRenderingProvider
Parameters:
input - a string representation of the LayoutManager
oldLayoutManager - the old LayoutManager
object - the model element
Returns:
the new LayoutManager

getBorderItemLocatorByString

public org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator getBorderItemLocatorByString(String input,
                                                                                                 IFigure parent,
                                                                                                 Object locator,
                                                                                                 EObject object)
Description copied from interface: IRenderingProvider
Method that returns a BorderItemLocator according to a given string.

Specified by:
getBorderItemLocatorByString in interface IRenderingProvider
Parameters:
input - a string representation of the BorderItemLocator
parent - the parentFigure
locator - the old BorderItemLocator
object - the model element
Returns:
the new BorderItemLocator