|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.core.DefaultPropertyChangeNotifier
org.ximtec.igesture.core.DefaultDataObject
org.ximtec.igesture.core.composite.DefaultConstraint
org.ximtec.igesture.core.composite.ConcurrencyConstraint
org.ximtec.igesture.core.composite.ProximityConcurrencyConstraint
public class ProximityConcurrencyConstraint
This class represents a two-fold constraint. First the gestures have to be performed concurrently and secondly, they have to be performed in each others vicinity. The minimum and maximum distance has to be defined. This distance is the diagonal of the rectangular bounding box of the gestures for 2D gestures, for 3D gestures it is the diagonal of each facet of a cubic bounding space.
| Nested Class Summary | |
|---|---|
static class |
ProximityConcurrencyConstraint.Config
|
| Field Summary |
|---|
| Fields inherited from class org.ximtec.igesture.core.composite.DefaultConstraint |
|---|
DEFAULT_CONFIGURATION, df, gestures, gestureTime, processingTime, PROPERTY_GESTURES, setterMapping |
| Fields inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
PROPERTY_ID |
| Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
propertyChangeSupport |
| Constructor Summary | |
|---|---|
ProximityConcurrencyConstraint()
|
|
| Method Summary | |
|---|---|
void |
addGestureClass(String gestureClass)
Add a gesture class to the composite gesture. |
void |
addGestureClass(String gestureClass,
int user)
Add a gesture class to the composite gesture and specify the user that performs it. |
void |
addGestureClass(String gestureClass,
int user,
String deviceType,
Set<String> devices)
Add a gesture class to the composite gesture and specify the user and the device type used to perform it. |
void |
addGestureClass(String gestureClass,
String deviceType,
Set<String> devices)
Add a gesture class to the composite gesture and specify the device type used to perform it. |
String |
getDistanceUnit()
Get the distance unit. |
double |
getMaxDistance()
Get the maximum distance between two gestures. |
double |
getMinDistance()
Get the minimum distance between two gestures. |
void |
setDistanceUnit(String distanceUnit)
Set the distance unit. |
void |
setMaxDistance(String maxDistance)
Set the maximum distance between two gestures. |
void |
setMinDistance(String minDistance)
Set the minimum distance between two gestures. |
String |
toString()
|
boolean |
validateConditions(List<Gesture<?>> gestures,
IDeviceManager manager)
Validate the constraint conditions. |
| Methods inherited from class org.ximtec.igesture.core.composite.ConcurrencyConstraint |
|---|
determineTimeWindows, generatePatterns |
| Methods inherited from class org.ximtec.igesture.core.composite.DefaultConstraint |
|---|
getDistinctGestureClasses, getGestureClasses, getGestureEntries, getGestureTime, getNumberOfGestures, getParameter, getParameters, getTimeStamp, removeAllGestureClasses, removeGestureClass, setGestureTime, setParameter |
| Methods inherited from class org.ximtec.igesture.core.DefaultDataObject |
|---|
accept, getId, setId |
| Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public ProximityConcurrencyConstraint()
| Method Detail |
|---|
public void addGestureClass(String gestureClass)
Constraint
addGestureClass in interface ConstraintaddGestureClass in class DefaultConstraint
public void addGestureClass(String gestureClass,
int user)
Constraint
addGestureClass in interface ConstraintaddGestureClass in class DefaultConstraint
public void addGestureClass(String gestureClass,
String deviceType,
Set<String> devices)
Constraint
addGestureClass in interface ConstraintaddGestureClass in class DefaultConstraint
public void addGestureClass(String gestureClass,
int user,
String deviceType,
Set<String> devices)
Constraint
addGestureClass in interface ConstraintaddGestureClass in class DefaultConstraintpublic double getMinDistance()
public void setMinDistance(String minDistance)
throws NumberFormatException
NumberFormatExceptionpublic double getMaxDistance()
public void setMaxDistance(String maxDistance)
throws NumberFormatException
NumberFormatExceptionpublic String getDistanceUnit()
Constraintpublic void setDistanceUnit(String distanceUnit)
Constraint
public boolean validateConditions(List<Gesture<?>> gestures,
IDeviceManager manager)
Constraint
validateConditions in interface ConstraintvalidateConditions in class ConcurrencyConstraintgestures - Gestures that possibly compose the composite gesture.manager - Device manager to check the associated users.
public String toString()
toString in interface ConstrainttoString in class ConcurrencyConstraint
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||