org.jmol.multitouch
Class JmolMultiTouchClientAdapter

java.lang.Object
  extended by org.jmol.multitouch.JmolMultiTouchClientAdapter
All Implemented Interfaces:
JmolMultiTouchAdapter
Direct Known Subclasses:
JmolJniClientAdapter, JmolSparshClientAdapter

public abstract class JmolMultiTouchClientAdapter
extends Object
implements JmolMultiTouchAdapter


Field Summary
protected  JmolMultiTouchClient actionManager
           
protected  Component display
           
protected  boolean isServer
           
protected  Point3f ptTemp
           
private static int screenHeight
           
private static int screenWidth
           
protected  Point xyTemp
           
 
Constructor Summary
JmolMultiTouchClientAdapter()
           
 
Method Summary
abstract  void dispose()
           
protected  void fixXY(float x, float y, boolean isAbsolute)
           
 boolean isServer()
           
 void mouseMoved(int x, int y)
           
 boolean setMultiTouchClient(Viewer viewer, JmolMultiTouchClient client, boolean isSimulation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionManager

protected JmolMultiTouchClient actionManager

display

protected Component display

isServer

protected boolean isServer

screenWidth

private static int screenWidth

screenHeight

private static int screenHeight

xyTemp

protected Point xyTemp

ptTemp

protected Point3f ptTemp
Constructor Detail

JmolMultiTouchClientAdapter

public JmolMultiTouchClientAdapter()
Method Detail

isServer

public boolean isServer()
Specified by:
isServer in interface JmolMultiTouchAdapter

dispose

public abstract void dispose()
Specified by:
dispose in interface JmolMultiTouchAdapter

setMultiTouchClient

public boolean setMultiTouchClient(Viewer viewer,
                                   JmolMultiTouchClient client,
                                   boolean isSimulation)
Specified by:
setMultiTouchClient in interface JmolMultiTouchAdapter

mouseMoved

public void mouseMoved(int x,
                       int y)
Specified by:
mouseMoved in interface JmolMultiTouchAdapter

fixXY

protected void fixXY(float x,
                     float y,
                     boolean isAbsolute)