org.diamondspin
Class DSApplication

java.lang.Object
  extended by org.diamondspin.DSApplication

public class DSApplication
extends Object

DSApplication provides all the basic features to start an application using DiamondSpin.

Copyright 2002-2009 DiamondSpin project. All Rights Reserved.

Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies.

To request Permission to incorporate this software into commercial products contact one of the authors of the project.
  • Frederic Vernier (frederic.vernier@limsi.fr)
  • Chia Shen (chia_shen@harvard.edu)
  • Guillaume Besacier (guillaume.besacier@limsi.fr)
  • Daniel Wigdor (dwigdor@microsoft.com)

IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHORS HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

Creation date : 27 june 2002

Version:
: 1.0
Author:
: Frederic vernier

Nested Class Summary
static class DSApplication.CursorInfo
           
protected  class DSApplication.LogAngle
           
 
Field Summary
protected static int[] cursorState
           
protected static DisplayMode dispMode
           
protected static int doubleTapBetweenTapTime
           
protected static int doubleTapDistTolerance
           
protected static int doubleTapShortTapTime
           
protected static Properties DSprops
           
protected static DSTabletopPane dsTabletopPane
           
protected static String evtsource
           
protected static GraphicsDevice graphicDevice
           
static boolean integrationWithTime
           
protected static Point[] lastDragPosition
           
protected static List<DSApplication.LogAngle>[] lastFingerAngles
           
protected static Point[] lastPressPosition
           
protected static long[] lastPressTime
           
protected static Point[] lastReleasePosition
           
protected static long[] lastReleaseTime
           
static int MAX_FINGER_ANGLES
           
static int MAX_FINGERS
           
static int MAX_USERS
           
protected static int[] tapCount
           
protected static Window window
           
 
Constructor Summary
DSApplication()
           
 
Method Summary
static void displayInfos()
          display usefull information when the program begins
static void exit()
          exit the application
static String getEvtsource()
           
static int getFingerSize()
          Gets the window attribute of the DSApplication class
static GraphicsDevice getGraphicsDevice()
           
static Window getWindow()
          Gets the window attribute of the DSApplication class
static void init(DSTabletopPane dsTabletopPane_Arg, boolean Fullscreen_Arg, int bitNumber_Arg)
          initialize an application using a given DSTabletopPane.
static boolean isFullscreen()
           
static void setEvtsource(String aEvtsource)
           
static void setFullscreen(boolean Fullscreen_Arg)
          set the application in fullscreen mode or in windowed mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DSprops

protected static Properties DSprops

window

protected static Window window

dsTabletopPane

protected static DSTabletopPane dsTabletopPane

dispMode

protected static DisplayMode dispMode

graphicDevice

protected static GraphicsDevice graphicDevice

MAX_USERS

public static final int MAX_USERS
See Also:
Constant Field Values

MAX_FINGERS

public static final int MAX_FINGERS
See Also:
Constant Field Values

doubleTapBetweenTapTime

protected static int doubleTapBetweenTapTime

doubleTapShortTapTime

protected static int doubleTapShortTapTime

doubleTapDistTolerance

protected static int doubleTapDistTolerance

lastPressPosition

protected static Point[] lastPressPosition

lastReleasePosition

protected static Point[] lastReleasePosition

lastDragPosition

protected static Point[] lastDragPosition

MAX_FINGER_ANGLES

public static int MAX_FINGER_ANGLES

integrationWithTime

public static boolean integrationWithTime

lastFingerAngles

protected static List<DSApplication.LogAngle>[] lastFingerAngles

cursorState

protected static int[] cursorState

lastPressTime

protected static long[] lastPressTime

lastReleaseTime

protected static long[] lastReleaseTime

tapCount

protected static int[] tapCount

evtsource

protected static String evtsource
Constructor Detail

DSApplication

public DSApplication()
Method Detail

getEvtsource

public static String getEvtsource()
Returns:
the evtsource

setEvtsource

public static void setEvtsource(String aEvtsource)
Parameters:
aEvtsource - the evtsource to set

getGraphicsDevice

public static GraphicsDevice getGraphicsDevice()

exit

public static void exit()
exit the application


init

public static void init(DSTabletopPane dsTabletopPane_Arg,
                        boolean Fullscreen_Arg,
                        int bitNumber_Arg)
initialize an application using a given DSTabletopPane.

Parameters:
dsTabletopPane_Arg - the DSTabletopPane
Fullscreen_Arg - whether it runs fullscreen

setFullscreen

public static void setFullscreen(boolean Fullscreen_Arg)
set the application in fullscreen mode or in windowed mode

Parameters:
Fullscreen_Arg - The new fullscreen value

isFullscreen

public static boolean isFullscreen()
Returns:
if the application is in fullscreen mode or in windowed mode

displayInfos

public static void displayInfos()
display usefull information when the program begins


getWindow

public static Window getWindow()
Gets the window attribute of the DSApplication class

Returns:
The window value

getFingerSize

public static int getFingerSize()
Gets the window attribute of the DSApplication class

Returns:
The window value


Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.