org.eclipse.gmf.runtime.lite.edit.parts.decorations
Class AbstractDecorationManager

java.lang.Object
  extended by org.eclipse.gmf.runtime.lite.edit.parts.decorations.AbstractDecorationManager
All Implemented Interfaces:
IDecorationManager
Direct Known Subclasses:
ConnectionDecorationManager, PaneDecorationManager

public abstract class AbstractDecorationManager
extends Object
implements IDecorationManager

Author:
bblajer

Constructor Summary
AbstractDecorationManager(org.eclipse.draw2d.IFigure decorationParent)
           
 
Method Summary
protected abstract  Object getConstraint(String key, org.eclipse.draw2d.IFigure decoration)
          Returns the constraint with which the decoration will be added to the parent figure.
 org.eclipse.draw2d.IFigure getDecoration(String key)
           
protected  org.eclipse.draw2d.IFigure getDecorationParent()
           
 void installDecoration(String key, org.eclipse.draw2d.IFigure decoration)
          Installs the decoration with the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDecorationManager

public AbstractDecorationManager(org.eclipse.draw2d.IFigure decorationParent)
Method Detail

installDecoration

public void installDecoration(String key,
                              org.eclipse.draw2d.IFigure decoration)
Description copied from interface: IDecorationManager
Installs the decoration with the given key.

Specified by:
installDecoration in interface IDecorationManager

getDecoration

public org.eclipse.draw2d.IFigure getDecoration(String key)

getDecorationParent

protected org.eclipse.draw2d.IFigure getDecorationParent()

getConstraint

protected abstract Object getConstraint(String key,
                                        org.eclipse.draw2d.IFigure decoration)
Returns the constraint with which the decoration will be added to the parent figure.

Parameters:
key -
decoration -
Returns:


Copyright © 2012. All Rights Reserved.