|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectt3.portfolios.commonbehaviours.RNTWTORAndRegroupAndShrinkAndDestroy
public class RNTWTORAndRegroupAndShrinkAndDestroy
This class is like RotateNTranslateWithTranslateOnlyRegion but additionally any portfolios in the set containers act as containers. Portfolios dragged into containers will become children of the containers until dragged out.
Portfolios dragged into containers are shrunk (scaled down from 1.0 to scaleInContainerDESKtoPORT). This happens while the pen drags a distance scaleChangePerMM. Portfolios dragged into recycleBinPortfolioOrNull (which must also be in the containers set) are destroyed.
Rule re containing and shrinking: If point of contact goes in then whole lot shrinks. If whole thing comes out then whole thing unshrinks.
Field Summary | |
---|---|
java.util.Set<Portfolio> |
containers
|
boolean |
guessPORTdimensionsFromOurTile
|
PointInputDeviceTypeAndButtonSet |
pidtbs
|
java.util.Set<Portfolio> |
portfoliosBeingDragged
|
double |
PORTh
|
double |
PORTw
|
Portfolio |
recycleBinPortfolio
|
double |
scaleChangePerMM
|
double |
scaleInContainerDESKtoPORT
|
double |
translateOnlyProportion
|
Constructor Summary | |
---|---|
RNTWTORAndRegroupAndShrinkAndDestroy(PointInputDeviceTypeAndButtonSet pidtbs,
boolean guessPORTdimensionsFromOurTile,
double PORTw,
double PORTh,
double translateOnlyProportion,
double scaleInContainerPORTtoDESK,
double scaleChangePerMM,
Portfolio recycleBinPortfolioOrNull)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final double PORTw
public final double PORTh
public final double translateOnlyProportion
public final boolean guessPORTdimensionsFromOurTile
public final java.util.Set<Portfolio> containers
public final Portfolio recycleBinPortfolio
public final double scaleInContainerDESKtoPORT
public final double scaleChangePerMM
public final java.util.Set<Portfolio> portfoliosBeingDragged
public final PointInputDeviceTypeAndButtonSet pidtbs
Constructor Detail |
---|
public RNTWTORAndRegroupAndShrinkAndDestroy(PointInputDeviceTypeAndButtonSet pidtbs, boolean guessPORTdimensionsFromOurTile, double PORTw, double PORTh, double translateOnlyProportion, double scaleInContainerPORTtoDESK, double scaleChangePerMM, Portfolio recycleBinPortfolioOrNull)
Method Detail |
---|
public boolean customProcessEventForThisPortfolioNotChildren(Portfolio p, PortfolioEvent e, boolean bubbled)
PortfolioCommonBehaviour
customProcessEventForThisPortfolioNotChildren
in interface PortfolioCommonBehaviour
e
- Eventbubbled
- True iff the event did not occur on this portfolio's tile but has been bubbled from one of its children.
public boolean customProcessFDOPevent(Portfolio p, PortfolioEvent e, double PORTxWhenEnteredFDOPmode, double PORTyWhenEnteredFDOPmode)
PortfolioCommonBehaviour
customProcessFDOPevent
in interface PortfolioCommonBehaviour
e
- EventPORTxWhenEnteredFDOPmode
- PORT space coordinate of the PID when it entered FDOP mode.PORTyWhenEnteredFDOPmode
- PORT space coordinate of the PID when it entered FDOP mode.
public boolean customProcessEndOfFDOPmode(Portfolio p, PointInputDevice pid, int button)
PortfolioCommonBehaviour
customProcessEndOfFDOPmode
in interface PortfolioCommonBehaviour
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |