org.openbp.cockpit.modeler.drawing
Class SelectionDecorator.OverlayDecorator

java.lang.Object
  extended by org.openbp.jaspira.decoration.FilteredDecorator
      extended by org.openbp.cockpit.modeler.drawing.SelectionDecorator.OverlayDecorator
All Implemented Interfaces:
Decorator
Enclosing class:
SelectionDecorator

public class SelectionDecorator.OverlayDecorator
extends FilteredDecorator

Decorater for an overlay. The overlay is decorated if itself is selected.


Constructor Summary
SelectionDecorator.OverlayDecorator()
           
 
Method Summary
 java.lang.Object doDecorate(java.lang.Object owner, java.lang.String key, java.lang.Object value)
          Performs the actual decoration.
 boolean qualifies(java.lang.Object owner)
          The actual filter method.
 
Methods inherited from class org.openbp.jaspira.decoration.FilteredDecorator
decorate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionDecorator.OverlayDecorator

public SelectionDecorator.OverlayDecorator()
Method Detail

doDecorate

public java.lang.Object doDecorate(java.lang.Object owner,
                                   java.lang.String key,
                                   java.lang.Object value)
Description copied from class: FilteredDecorator
Performs the actual decoration.

Specified by:
doDecorate in class FilteredDecorator
Parameters:
owner - Owner of the object
key - Key under which the decorator is accessed
value - Object to decorate (also passed to the DecorationMgr.decorate(java.lang.Object, java.lang.String, java.lang.Object) method)
Returns:
The decorated object. The decorator may either modify the original object and return it or return a new object. The returned object will be passed to the next decorator.

qualifies

public boolean qualifies(java.lang.Object owner)
Description copied from class: FilteredDecorator
The actual filter method.

Specified by:
qualifies in class FilteredDecorator
Parameters:
owner - Owner of the object. This parameter is passed to the DecorationMgr.decorate(java.lang.Object, java.lang.String, java.lang.Object) method.
Returns:
true If owner qualifies as source for decoration.
false If the decoration should not be applied.


Copyright © 2011. All Rights Reserved.