|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.lite.edit.parts.decorations.AbstractDecorationManager
org.eclipse.gmf.runtime.lite.edit.parts.decorations.PaneDecorationManager
public class PaneDecorationManager
Decoration manager that places decorations as children of a given figure.
The actual position of the decoration
is controlled by the getDecorationPosition(String)
method.
Constructor Summary | |
---|---|
PaneDecorationManager(org.eclipse.draw2d.IFigure decorationParent)
|
Method Summary | |
---|---|
protected Object |
getConstraint(String key,
org.eclipse.draw2d.IFigure decoration)
Returns the constraint with which the decoration will be added to the parent figure. |
protected int |
getDecorationPosition(String key)
Returns the position where the decorator with the given key
should appear. |
protected int |
getDefaultDecorationPosition()
Returns the position where the decorator with an unregistered key should appear. |
void |
installDecorationPosition(String key,
int decorationPosition)
Registers the given position for the given key. |
void |
uninstallDecorationPosition(String key)
Unregisters the given position for the given key. |
Methods inherited from class org.eclipse.gmf.runtime.lite.edit.parts.decorations.AbstractDecorationManager |
---|
getDecoration, getDecorationParent, installDecoration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaneDecorationManager(org.eclipse.draw2d.IFigure decorationParent)
Method Detail |
---|
protected Object getConstraint(String key, org.eclipse.draw2d.IFigure decoration)
AbstractDecorationManager
getConstraint
in class AbstractDecorationManager
protected int getDecorationPosition(String key)
position
where the decorator with the given key
should appear.
Positions for keys may be installed using installDecorationPosition(String, int)
If the key is unknown (was never installed or was uninstalled),
the default position
is used.
Subclasses may reimplement.
key
- the key which is used to install the decoratorprotected int getDefaultDecorationPosition()
position
where the decorator with an unregistered key should appear.
By default, all decorators are positioned to the north-west of the parent figure.
Subclasses may reimplement.
public void installDecorationPosition(String key, int decorationPosition)
key
- the key which is used to install a decoratordecorationPosition
- position where the decorator with this key should appear.public void uninstallDecorationPosition(String key)
key
- the key which is used to install a decorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |