t3.portfolios
Interface PortfolioCommonBehaviour

All Known Implementing Classes:
BasicDragMode, CannotDragWRTParent, RNTWTORAndRegroup, RNTWTORAndRegroupAndShrinkAndDestroy, RotateNTranslate, RotateNTranslateWithTranslateOnlyRegion

public interface PortfolioCommonBehaviour

Implementors of this interface provide behaviour that can be applied to many portfolios, such as dragging or rotateNtranslate. See PortfolioServer for more information on the event model.

Author:
pjt40

Method Summary
 boolean customProcessEndOfFDOPmode(Portfolio p, PointInputDevice pid, int button)
          Implement this method to be notified when a PID stops being in FDOP mode.
 boolean customProcessEventForThisPortfolioNotChildren(Portfolio p, PortfolioEvent e, boolean bubbled)
          Implement this method to receive events.
 boolean customProcessFDOPevent(Portfolio p, PortfolioEvent e, double PORTxWhenEnteredFDOPmode, double PORTyWhenEnteredFDOPmode)
          Implement this method to receive FDOP mode events.
 

Method Detail

customProcessEventForThisPortfolioNotChildren

boolean customProcessEventForThisPortfolioNotChildren(Portfolio p,
                                                      PortfolioEvent e,
                                                      boolean bubbled)
Implement this method to receive events. See PortfolioServer for more information on the event model.

Parameters:
e - Event
bubbled - True iff the event did not occur on this portfolio's tile but has been bubbled from one of its children.
Returns:
True iff the event should not be passed to the portfolio.

customProcessFDOPevent

boolean customProcessFDOPevent(Portfolio p,
                               PortfolioEvent e,
                               double PORTxWhenEnteredFDOPmode,
                               double PORTyWhenEnteredFDOPmode)
Implement this method to receive FDOP mode events. See PortfolioServer for more information on the event model.

Parameters:
e - Event
PORTxWhenEnteredFDOPmode - PORT space coordinate of the PID when it entered FDOP mode.
PORTyWhenEnteredFDOPmode - PORT space coordinate of the PID when it entered FDOP mode.
Returns:
True iff the event should not be passed to the portfolio.

customProcessEndOfFDOPmode

boolean customProcessEndOfFDOPmode(Portfolio p,
                                   PointInputDevice pid,
                                   int button)
Implement this method to be notified when a PID stops being in FDOP mode. See PortfolioServer for more information on the event model.

Parameters:
pid -
button -
Returns:
True iff the event should not be passed to the portfolio.