org.concord.collisions.engine
Class ForceDraggable

java.lang.Object
  |
  +--org.concord.collisions.engine.ForceDraggable
All Implemented Interfaces:
CCDraggable

public class ForceDraggable
extends java.lang.Object
implements CCDraggable


Constructor Summary
ForceDraggable(JWorldElement draggableOwner, CCConstantForce force)
           
 
Method Summary
 void doDrag(CCCoordinateTuner tuner, int x, int y)
           
 void endDrag(CCCoordinateTuner tuner, int x, int y)
           
 java.lang.Object getDraggableOwner()
           
 int getDragMode()
           
 CCConstantForce getForce()
           
 boolean isDraggable()
           
 boolean isPressedState()
           
 void notifyMouseListeners(float x, float y, int evtType)
           
 boolean panelInfoSupport()
           
 void setDraggable(boolean draggable)
           
 void setDragMode(int m)
           
 void setInfoDrawer(CCInfoDrawer infoDrawer)
           
 void setPressedState(boolean pressedState)
           
 void startDrag(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForceDraggable

public ForceDraggable(JWorldElement draggableOwner,
                      CCConstantForce force)
Method Detail

getDragMode

public int getDragMode()
Specified by:
getDragMode in interface CCDraggable

setDragMode

public void setDragMode(int m)
Specified by:
setDragMode in interface CCDraggable

startDrag

public void startDrag(int x,
                      int y)
Specified by:
startDrag in interface CCDraggable

doDrag

public void doDrag(CCCoordinateTuner tuner,
                   int x,
                   int y)
Specified by:
doDrag in interface CCDraggable

endDrag

public void endDrag(CCCoordinateTuner tuner,
                    int x,
                    int y)
Specified by:
endDrag in interface CCDraggable

getDraggableOwner

public java.lang.Object getDraggableOwner()
Specified by:
getDraggableOwner in interface CCDraggable

panelInfoSupport

public boolean panelInfoSupport()
Specified by:
panelInfoSupport in interface CCDraggable

setInfoDrawer

public void setInfoDrawer(CCInfoDrawer infoDrawer)
Specified by:
setInfoDrawer in interface CCDraggable

setDraggable

public void setDraggable(boolean draggable)
Specified by:
setDraggable in interface CCDraggable

isDraggable

public boolean isDraggable()
Specified by:
isDraggable in interface CCDraggable

setPressedState

public void setPressedState(boolean pressedState)
Specified by:
setPressedState in interface CCDraggable

isPressedState

public boolean isPressedState()
Specified by:
isPressedState in interface CCDraggable

notifyMouseListeners

public void notifyMouseListeners(float x,
                                 float y,
                                 int evtType)
Specified by:
notifyMouseListeners in interface CCDraggable

getForce

public CCConstantForce getForce()