org.diamondspin
Class DSInertiaManagerBlob
java.lang.Object
org.diamondspin.DSInertiaManagerBlob
public class DSInertiaManagerBlob
- extends Object
an inertiaManager is a dselement helper to make it move when dropped with given inertia
- Author:
- vernier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FRICTION
public static final double DEFAULT_FRICTION
- See Also:
- Constant Field Values
frame
protected DSFrame frame
pane
protected DSTabletopPane pane
view
protected DSDefaultView view
timer
protected Timer timer
listener
protected DSInertiaManagerBlob.DSInertiaListener listener
wantX
protected double wantX
wantY
protected double wantY
wantB
protected double wantB
internalSpeedX
protected double internalSpeedX
internalSpeedY
protected double internalSpeedY
fingerX
protected double fingerX
fingerY
protected double fingerY
speedX
protected double speedX
speedY
protected double speedY
accelX
protected double accelX
accelY
protected double accelY
meshAttachX
protected double meshAttachX
meshAttachY
protected double meshAttachY
autoMove
protected boolean autoMove
doneByUs
protected boolean doneByUs
firstMoveAfterGrab
protected boolean firstMoveAfterGrab
touching
protected boolean touching
initialX
protected double initialX
initialY
protected double initialY
factor
protected double factor
inertiaType
protected int inertiaType
DSInertiaManagerBlob
public DSInertiaManagerBlob(DSElement el,
DSTabletopPane p)
updateFrame
protected void updateFrame(boolean first)
updateElem
protected void updateElem()
updateWantedPosition
protected void updateWantedPosition()
startAutoMove
protected void startAutoMove()
stopAutoMove
protected void stopAutoMove()
detach
public void detach()
setFrictionFactor
public void setFrictionFactor(double frictionFactor)
- between 0 and 1
Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.