|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectt3.portfolios.commonbehaviours.RotateNTranslateWithTranslateOnlyRegion
public class RotateNTranslateWithTranslateOnlyRegion
This class allows portfolios to be translated and rotated by dragging with a specified pid type and button, using the RotateNTranslate idea.
Clicking within a certain area will result in translate-only behaviour. This area is rectangular and always PORT-space aligned, and centred on the bounding box of the portfolio and its children. The size of the area is either a specified fraction of the portfolio's tile dimensions, or a specified fraction of some specified dimensions.
See: Kruger, R., Carpendale, S., Scott, S.D., Tang, A. (2005). Fluid Integration of Rotation and Translation. In Proceedings of the ACM Conference on Human Factors in Computing Systems (CHI)'05, April 2-7, 2005, Portland, Oregon, USA.
Field Summary | |
---|---|
boolean |
guessPORTdimensionsFromOurTile
|
PointInputDeviceTypeAndButtonSet |
pidtbs
|
double |
PORTh
|
double |
PORTw
|
double |
translateOnlyProportion
|
Constructor Summary | |
---|---|
RotateNTranslateWithTranslateOnlyRegion()
|
|
RotateNTranslateWithTranslateOnlyRegion(PointInputDeviceTypeAndButtonSet pidtbs,
boolean guessPORTdimensionsFromOurTile,
double PORTw,
double PORTh,
double translateOnlyProportion)
|
|
RotateNTranslateWithTranslateOnlyRegion(PointInputDeviceTypeAndButtonSet pidtbs,
double translateOnlyProportion)
|
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 PointInputDeviceTypeAndButtonSet pidtbs
Constructor Detail |
---|
public RotateNTranslateWithTranslateOnlyRegion()
public RotateNTranslateWithTranslateOnlyRegion(PointInputDeviceTypeAndButtonSet pidtbs, double translateOnlyProportion)
public RotateNTranslateWithTranslateOnlyRegion(PointInputDeviceTypeAndButtonSet pidtbs, boolean guessPORTdimensionsFromOurTile, double PORTw, double PORTh, double translateOnlyProportion)
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 |