net.nexttext.behaviour.control
Class ApplyToGlyph

java.lang.Object
  extended by net.nexttext.behaviour.AbstractAction
      extended by net.nexttext.behaviour.control.ApplyToGlyph
All Implemented Interfaces:
Action

public class ApplyToGlyph
extends AbstractAction

Perform the given action on the TextObject's glyphs.

The given action is not performed on the TextObject passed to the behave method, but rather on its glyphs.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Constructor Summary
ApplyToGlyph(Action descendantAction)
           
 
Method Summary
 Action.ActionResult behave(TextObject to)
          Apply the given action to the TextObject's descendants.
 void complete(TextObject to)
          End this action for this object and end the passed in action for all its descendants.
 
Methods inherited from class net.nexttext.behaviour.AbstractAction
behave, behave, getDisplayName, getRequiredProperties, makeBehaviour, properties, setDisplayName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyToGlyph

public ApplyToGlyph(Action descendantAction)
Method Detail

behave

public Action.ActionResult behave(TextObject to)
Apply the given action to the TextObject's descendants.

The results of the action calls are combined using the method described in Action.ActionResult.

Specified by:
behave in interface Action
Overrides:
behave in class AbstractAction

complete

public void complete(TextObject to)
End this action for this object and end the passed in action for all its descendants.

Specified by:
complete in interface Action
Overrides:
complete in class AbstractAction