public class Smarties extends Observable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT_SMARTIES
Default port that mobile devices should use to send message to
the server (you should note really care ...
|
static int |
SMARTIES_DEVICE_ORIENTATION_LANDSCAPE |
static int |
SMARTIES_DEVICE_ORIENTATION_PORTRAIT |
static int |
SMARTIES_OSC_OUT_PORT
Default port that the server should use to send message to
the mobile devices (you should note really care ...
|
static int |
SMARTIES_PUCK_STATUS_FREE |
static int |
SMARTIES_PUCK_STATUS_LOCKED |
static int |
SMARTIES_PUCK_STATUS_SELECTED |
static int |
SMARTIES_SOUND_ALARM |
static int |
SMARTIES_SOUND_NONE |
static int |
SMARTIES_SOUND_NOTIFICATION |
static int |
SMARTIES_SOUND_RINGTONE |
Constructor and Description |
---|
Smarties(int aw,
int ah,
int tilew,
int tileh)
Create a Smarties object for running with an application of the given size
running (eventually) with a wall/large display consituted by a tile of
screen.
|
Smarties(int port,
int aw,
int ah,
int tilew,
int tileh)
Create a Smarties object using an other port than the default "incoming" Smarties port
DEFAULT_PORT_SMARTIES (WARNING the mobile clients should be aware of that!) |
Modifier and Type | Method and Description |
---|---|
void |
addItemInWidgetList(int wid,
String item,
int pos)
Add an item in the list of items of a
SmartiesWidget that contains a list
of items (PopupMenu, Spinner, etc.), the change is persistent,
i.e., affect the widget for novel connection. |
SmartiesWidget |
addWidget(int type,
String label,
float x,
float y,
float w,
float h)
Add a widget of a given type, given size and at a given position in
the widget area of the mobile clients.
|
void |
createOnePuckByDevice(boolean v)
Set to true so that the server create automatically a new puck for each new
connected client.
|
SmartiesPuck |
createPuck(SmartiesDevice d,
float x,
float y,
boolean select)
Create a puck at position x,y that is become selected on device d (if not null and select is true).
|
void |
deletePuck(int id)
Definitively delete the
SmartiesPuck with identifier id. |
void |
deletePuck(SmartiesPuck p)
Definitively delete the
SmartiesPuck p. |
SmartiesDevice |
getDevice(String ip)
Return the
SmartiesDevice with IP address ip or null if there is
no device with such an IP address. |
Map<String,SmartiesDevice> |
getDevicesMapping()
Return a map from the IP addresses to the
SmartiesDevice 's. |
SmartiesPuck |
getPuck(int id)
Return the
SmartiesPuck with identifier id or null if there is
no puck with such an identifier. |
Map<Integer,SmartiesPuck> |
getPuckMapping()
Return a map from the identifiers to the
SmartiesPuck 's. |
SmartiesWidget |
getWidget(int wid)
Return the
SmartiesWidget with the given identifier. |
void |
initWidgets(int wgridw,
int wgridh)
Define the size of the grid with which the geometry of the widgets are defined.
|
void |
movePuck(int id,
float x,
float y)
Move the
SmartiesPuck with identifier id. |
void |
movePuck(SmartiesPuck p,
float x,
float y)
Move the
SmartiesPuck p. |
void |
removeItemInWidgetList(int wid,
int pos)
Remove an item in the list of items of a
SmartiesWidget that contains a list
of items (PopupMenu, Spinner, etc.), the change is persistent,
i.e., affect the widget for novel connection. |
void |
replaceWidgetItemsList(int wid,
Vector<String> items)
Replace the list of items of a
SmartiesWidget that contains a list of items
(PopupMenu, Spinner, etc.). |
void |
Run()
Start listenning and sending message to the mobile clients
|
void |
sendNotification(int soundType,
int soundDuration,
int vibration,
String str)
Send a notification to all the devices.
|
void |
sendNotification(int soundType,
int soundDuration,
int vibration,
String str,
SmartiesDevice dev)
Send a notification to the device dev or to all the devices if dev is null.
|
void |
sendNotification(int soundType,
int soundDuration,
int vibration,
String str,
String ip)
Send a notification to the device with IP ip or to all the devices if ip is null.
|
void |
sendPuckColor(SmartiesPuck p,
String ip,
int color)
Send (and set) to the device with IP adress ip, or to all the devices if ip is null,
the color for the puck p (in hexadecimal, e.g.
|
void |
sendPuckCursorType(SmartiesPuck p,
String ip,
int cursor_type)
Send (and set) to the device with IP adress ip, or to all the devices if ip is null,
the cursor type of the puck p.
|
void |
sendWidgetCheckedItems(int wid,
Vector<Boolean> checked_items)
Send/change the checked items of the widget (e.g., multi-choice popup) with identifier
wid for all the devices (the change is persistent, i.e., affect the widget for
novel connection).
|
void |
sendWidgetCheckedItems(int wid,
Vector<Boolean> checked_items,
SmartiesDevice dev)
Send/change the checked values of the widget (e.g., multi-choice popup) with identifier wid for
the device dev, or for all the devices if dev is null (if dev is null the change is
persistent, i.e., affect the widget for novel connection).
|
void |
sendWidgetCheckedItems(int wid,
Vector<Boolean> checked_items,
String ip)
Send/change the checked items of the widget (e.g., multi-choice popup) with identifier wid for
the device with IP address ip, or for all the devices if ip is null (if ip is null
the change is persistent, i.e., affect the widget for novel connection).
|
void |
sendWidgetFontSize(int wid,
int size)
Send/change the font size for the widget with identifier wid for
all the devices (the change is persistent, i.e., affect the widget
for novel connection).
|
void |
sendWidgetFontSize(int wid,
int size,
SmartiesDevice dev)
Send/change the font size for the widget with identifier wid for device dev,
or for all the devices if dev is null (if dev is null the change is persistent,
i.e., affect the widget for novel connection).
|
void |
sendWidgetFontSize(int wid,
int size,
String ip)
Send/change the font size for the widget with identifier wid for
the device with IP address ip, or for all the devices if ip is null
(if ip is null the change is persistent, i.e., affect the widget
for novel connection).
|
void |
sendWidgetItem(int wid,
int item)
Send/change the selected item of the widget with identifier wid
for all the devices.
|
void |
sendWidgetItem(int wid,
int item,
SmartiesDevice dev)
Send/change the selected item of the widget with identifier wid for
the device dev, or for all the devices if dev is null (if dev is null the
change is persistent, i.e., affect the widget for novel connection).
|
void |
sendWidgetItem(int wid,
int item,
String ip)
Send/change the selected item of the widget with identifier wid for
the device with IP address ip, or for all the devices if ip is null.
|
void |
sendWidgetLabel(int wid,
String str)
Send/change the label of the widget with identifier wid for
all the devices (the change is persistent, i.e., affect the widget
for novel connection).
|
void |
sendWidgetLabel(int wid,
String str,
SmartiesDevice dev)
Send/change the label of the widget with identifier wid for device dev,
or for all the devices if dev is null (if dev is null the change is persistent,
i.e., affect the widget for novel connection).
|
void |
sendWidgetLabel(int wid,
String str,
String ip)
Send/change the label of the widget with identifier wid for
the device with IP address ip, or for all the devices (if ip is null
(if ip is null the change is persistent, i.e., affect the widget
for novel connection).
|
void |
sendWidgetOnState(int wid,
boolean onstate)
Send/change the on/off value of the widget (e.g., a toggle button) with identifier
wid for all the devices (the change is persistent, i.e., affect the widget for
novel connection).
|
void |
sendWidgetOnState(int wid,
boolean onstate,
SmartiesDevice dev)
Send/change the on/off value of the widget (e.g., a toggle button) with identifier wid for
the device dev, or for all the devices if dev is null (if dev is null the change is
persistent, i.e., affect the widget for novel connection).
|
void |
sendWidgetOnState(int wid,
boolean onstate,
String ip)
Send/change the on/off value of the widget (e.g., a toggle button) with identifier wid for
the device with IP address ip, or for all the devices if ip is null (if ip is null
the change is persistent, i.e., affect the widget for novel connection).
|
void |
sendWidgetState(int wid,
int state)
Send/change the state (enabled/disabled/hidden) of the widget with identifier wid for
all the devices (the change is persistent, i.e., affect the widget for novel
connection).
|
void |
sendWidgetState(int wid,
int state,
SmartiesDevice dev)
Send/change the state (enabled/disabled/hidden) of the widget with identifier wid for
the device dev, or for all the devices if dev is null (if dev is null the change is
persistent, i.e., affect the widget for novel connection).
|
void |
sendWidgetState(int wid,
int state,
String ip)
Send/change the state (enabled/disabled/hidden) of the widget with identifier wid for
the device with IP address ip, or for all the devices if ip is null (if ip is null
the change is persistent, i.e., affect the widget for novel connection).
|
void |
sendWidgetValue(int wid,
int value)
Send/change the value of the widget (e.g., a slider) with identifier wid for
all the devices (the change is persistent, i.e., affect the widget for novel
connection) .
|
void |
sendWidgetValue(int wid,
int value,
SmartiesDevice dev)
Send/change the value of the widget (e.g., a slider) with identifier wid for
the device dev, or for all the devices if dev is null.
|
void |
sendWidgetValue(int wid,
int value,
String ip)
Send/change the value of the widget (e.g., a slider) with identifier wid for
the device with IP address ip, or for all the devices if ip is null (if ip is
null the change is persistent, i.e., affect the widget for novel connection).
|
void |
setAccelerationParameters(float maxCDgainFactor,
float minCDgainMM)
Set the acceleration parameters for indirect one finger touch for all connected
device (and all future devices that will connect to the server).
|
void |
setAccelerationParameters(float maxCDgainFactor,
float minCDgainMM,
SmartiesDevice dev)
Set the acceleration parameters for indirect one finger touch for the device dev
(or all connected device if dev is null).
|
void |
setDeviceOrientation(int v)
Set the orientation of the clients, could be Smarties.SMARTIES_DEVICE_ORIENTATION_LANDSCAPE
or Smarties.SMARTIES_DEVICE_ORIENTATION_PORTRAIT.
|
void |
setHideLockedPucks(boolean v)
Instruct all connected device (and all future devices that will connect to the server) to hide or not
the locked pucks.
|
void |
setHideLockedPucks(boolean v,
SmartiesDevice dev)
Instruct the device dev (or all connected device if dev is null) to hide or not the locked
pucks.
|
void |
setInterfaceButtons(boolean pb,
boolean sb,
boolean di,
boolean si)
Define the standard interface buttons and icons that appear in the clients interface.
|
void |
setPureTouchpad(boolean v)
Set to true to only have the touchpad area in the clients.
|
void |
setPureWidgetArea(boolean v)
Set to true to only have the widget area in the clients (no touchpad!).
|
void |
setRawTouchEventsConf(boolean v)
Disable/Enable the multi-touch raw events for all
the devices (and all future devices that will connect to the server).
|
void |
setRawTouchEventsConf(boolean v,
SmartiesDevice dev)
Disable/Enable the multi-touch raw events for the device dev or for all
the devices if dev is null.
|
void |
setSharingPolicyCustom()
Set the Sharing policy to "custom"
|
void |
setSharingPolicyMedium()
Set the Sharing policy to "medium"
|
void |
setSharingPolicyPermissive()
Set the Sharing policy to "medium"
|
void |
setSharingPolicyStrict()
Set the Sharing policy to "strict"
|
void |
setSmartiesTouchEventsConf(boolean v)
Disable/Enable the multi-touch "high-level" Smarties events for all
the devices (and all future devices that will connect to the server).
|
void |
setSmartiesTouchEventsConf(boolean v,
SmartiesDevice dev)
Disable/Enable the multi-touch "high-level" Smarties events for the device dev or for all
the devices if dev is null.
|
void |
showKeyboard(int id,
SmartiesDevice d)
Ask the
SmartiesDevice dev to map a keyboard. |
void |
showKeyboard(int id,
SmartiesDevice d,
int num_keys)
Ask the
SmartiesDevice dev to map a keyboard and to unmap it
after a certain number of keys has been typed. |
void |
showKeyboard(int id,
String ip)
Ask the device with IP address ip to map a keyboard.
|
void |
showKeyboard(int id,
String ip,
int num_keys)
Ask the device with IP address ip to map a keyboard and to unmap it
after a certain number of keys has been typed.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final int DEFAULT_PORT_SMARTIES
public static final int SMARTIES_OSC_OUT_PORT
public static final int SMARTIES_PUCK_STATUS_FREE
public static final int SMARTIES_PUCK_STATUS_LOCKED
public static final int SMARTIES_PUCK_STATUS_SELECTED
public static final int SMARTIES_DEVICE_ORIENTATION_LANDSCAPE
public static final int SMARTIES_DEVICE_ORIENTATION_PORTRAIT
public static final int SMARTIES_SOUND_NONE
public static final int SMARTIES_SOUND_NOTIFICATION
public static final int SMARTIES_SOUND_RINGTONE
public static final int SMARTIES_SOUND_ALARM
public Smarties(int port, int aw, int ah, int tilew, int tileh)
DEFAULT_PORT_SMARTIES
(WARNING the mobile clients should be aware of that!)port
- port numberaw
- full screen/window/wall widthah
- full screen/window/wall heighttilew
- number of screens in the horizontal directiontileh
- number of screens in the vertical directionSmarties(int aw, int ah, int tilew, int tileh)
public Smarties(int aw, int ah, int tilew, int tileh)
The "geometry" of the tile (that could be 1x1) is only used to draw a grid in the mobile clients (at least for now) ... its not essential.
aw
- full screen/window/wall widthah
- full screen/window/wall heighttilew
- number of screens in the horizontal directiontileh
- number of screens in the verctical directionpublic SmartiesPuck getPuck(int id)
SmartiesPuck
with identifier id or null if there is
no puck with such an identifier.id
- identifierSmartiesPuck
or nullpublic Map<Integer,SmartiesPuck> getPuckMapping()
SmartiesPuck
's.SmartiesPuck
'spublic SmartiesDevice getDevice(String ip)
SmartiesDevice
with IP address ip or null if there is
no device with such an IP address.ip
- IP addressSmartiesDevice
or nullpublic Map<String,SmartiesDevice> getDevicesMapping()
SmartiesDevice
's.SmartiesDevice
'spublic void movePuck(int id, float x, float y)
SmartiesPuck
with identifier id.
The position is relative, i.e., specified by a point in [0,1]x[0,1]. The point (0,0) is top-left.
id
- identifierx
- x coordinatey
- y coordinatepublic void movePuck(SmartiesPuck p, float x, float y)
SmartiesPuck
p.
The position is relative, i.e., specified by a point in [0,1]x[0,1]. The point (0,0) is top-left.
p
- the puck to movex
- x coordinatey
- y coordinatepublic void deletePuck(int id)
SmartiesPuck
with identifier id.
id
- identifierpublic void deletePuck(SmartiesPuck p)
SmartiesPuck
p.
p
- the SmartiesPuck
public void sendPuckCursorType(SmartiesPuck p, String ip, int cursor_type)
p
- the SmartiesPuck
ip
- an IP address or nullcursor_type
- the cursor typepublic void sendPuckColor(SmartiesPuck p, String ip, int color)
p
- the SmartiesPuck
ip
- an IP address or nullcolor
- the colorpublic SmartiesPuck createPuck(SmartiesDevice d, float x, float y, boolean select)
The position is relative, i.e., specified by a point in [0,1]x[0,1]. The point (0,0) is top-left. WAENING: this will not generate a SMARTIES_EVENTS_TYPE_CREATE event
d
- a SmatiesDevice or nullx
- x coordinatey
- y coordinateselect
- make the new puck selected in device d (if not null)public void showKeyboard(int id, String ip, int num_keys)
If the number of keys is 0, then the keyboard will be not automatically unmapped.
id
- identifier of a puckip
- IP addressnum_keys
- number of key for umappingpublic void showKeyboard(int id, String ip)
id
- identifier of a puckip
- IP addresspublic void showKeyboard(int id, SmartiesDevice d, int num_keys)
SmartiesDevice
dev to map a keyboard and to unmap it
after a certain number of keys has been typed.
If the number of keys is 0, then the keyboard will be not automatically unmapped.
id
- identifier of a puckd
- the SmartiesDevice
num_keys
- number of key for umappingpublic void showKeyboard(int id, SmartiesDevice d)
SmartiesDevice
dev to map a keyboard.id
- identifier of a puckd
- the SmartiesDevice
public void sendWidgetLabel(int wid, String str, SmartiesDevice dev)
wid
- widget identifierstr
- the new labeldev
- a SmartiesDevice
or nullpublic void sendWidgetLabel(int wid, String str, String ip)
wid
- widget identifierstr
- the new labelip
- IP address or nullpublic void sendWidgetLabel(int wid, String str)
wid
- widget identifierstr
- the new labelpublic void sendWidgetFontSize(int wid, int size, SmartiesDevice dev)
wid
- widget identifiersize
- the new font size in dpdev
- a SmartiesDevice
or nullpublic void sendWidgetFontSize(int wid, int size, String ip)
wid
- widget identifiersize
- the new font sizeip
- IP address or nullpublic void sendWidgetFontSize(int wid, int size)
wid
- widget identifiersize
- the new font sizepublic void sendWidgetItem(int wid, int item, SmartiesDevice dev)
wid
- widget identifieritem
- the selected item (first item is 0)dev
- a SmartiesDevice
or nullpublic void sendWidgetItem(int wid, int item, String ip)
wid
- widget identifieritem
- the selected item (first item is 0)ip
- IP address or nullpublic void sendWidgetItem(int wid, int item)
wid
- widget identifieritem
- the selected item (first item is 0)public void sendWidgetValue(int wid, int value, SmartiesDevice dev)
wid
- widget identifiervalue
- the value (from 0 to 100)dev
- a SmartiesDevice
or nullpublic void sendWidgetValue(int wid, int value, String ip)
wid
- widget identifiervalue
- the value (from 0 to 100)ip
- IP address or nullpublic void sendWidgetValue(int wid, int value)
wid
- widget identifiervalue
- the value (from 0 to 100)public void sendWidgetOnState(int wid, boolean onstate, SmartiesDevice dev)
wid
- widget identifieronstate
- on (true), off (false)dev
- a SmartiesDevice
or nullpublic void sendWidgetOnState(int wid, boolean onstate, String ip)
wid
- widget identifieronstate
- on (true), off (false)ip
- IP address or nullpublic void sendWidgetOnState(int wid, boolean onstate)
wid
- widget identifieronstate
- on (true), off (false)public void replaceWidgetItemsList(int wid, Vector<String> items)
SmartiesWidget
that contains a list of items
(PopupMenu, Spinner, etc.). (the change is persistent,
i.e., affect the widget for novel connection)
You might need to re-set the selected item(s) with sendWidgetItem.
wid
- the id of the SmartiesWidgetitems
- the new items listsendWidgetItem(int wid, int item)
public void addItemInWidgetList(int wid, String item, int pos)
SmartiesWidget
that contains a list
of items (PopupMenu, Spinner, etc.), the change is persistent,
i.e., affect the widget for novel connection.
You might need to re-set the selected item(s) with sendWidgetItem.
wid
- the id of the SmartiesWidgetitem
- the new itempos
- position in the list, -1 will append the itemsendWidgetItem(int wid, int item)
public void removeItemInWidgetList(int wid, int pos)
SmartiesWidget
that contains a list
of items (PopupMenu, Spinner, etc.), the change is persistent,
i.e., affect the widget for novel connection.
You might need to re-set the selected item(s) with sendWidgetItem.
wid
- the id of the SmartiesWidgetpos
- position of the item to be removed, -1 will remove the last itemsendWidgetItem(int wid, int item)
public void sendWidgetCheckedItems(int wid, Vector<Boolean> checked_items, SmartiesDevice dev)
wid
- widget identifierchecked_items
- Vector of booleansdev
- a SmartiesDevice
or nullpublic void sendWidgetCheckedItems(int wid, Vector<Boolean> checked_items, String ip)
wid
- widget identifierchecked_items
- what is checked or notip
- IP address or nullpublic void sendWidgetCheckedItems(int wid, Vector<Boolean> checked_items)
wid
- widget identifierchecked_items
- what is checked or notpublic void sendWidgetState(int wid, int state, SmartiesDevice dev)
The possible state are SmartiesWidget.SMARTIES_WIDGET_STATE_ENABLED
, SmartiesWidget.SMARTIES_WIDGET_STATE_DISABLED
or SmartiesWidget.SMARTIES_WIDGET_STATE_HIDDEN
,
wid
- widget identifierstate
- the statedev
- a SmartiesDevice
or nullSmartiesWidget.SMARTIES_WIDGET_STATE_ENABLED
,
SmartiesWidget.SMARTIES_WIDGET_STATE_DISABLED
,
SmartiesWidget.SMARTIES_WIDGET_STATE_HIDDEN
public void sendWidgetState(int wid, int state, String ip)
The possible state are SmartiesWidget.SMARTIES_WIDGET_STATE_ENABLED
, SmartiesWidget.SMARTIES_WIDGET_STATE_DISABLED
or SmartiesWidget.SMARTIES_WIDGET_STATE_HIDDEN
,
wid
- widget identifierstate
- the stateip
- IP address or nullSmartiesWidget.SMARTIES_WIDGET_STATE_ENABLED
,
SmartiesWidget.SMARTIES_WIDGET_STATE_DISABLED
,
SmartiesWidget.SMARTIES_WIDGET_STATE_HIDDEN
public void sendWidgetState(int wid, int state)
The possible state are SmartiesWidget.SMARTIES_WIDGET_STATE_ENABLED
, SmartiesWidget.SMARTIES_WIDGET_STATE_DISABLED
or SmartiesWidget.SMARTIES_WIDGET_STATE_HIDDEN
,
wid
- widget identifierstate
- the stateSmartiesWidget.SMARTIES_WIDGET_STATE_ENABLED
,
SmartiesWidget.SMARTIES_WIDGET_STATE_DISABLED
,
SmartiesWidget.SMARTIES_WIDGET_STATE_HIDDEN
public void sendNotification(int soundType, int soundDuration, int vibration, String str, SmartiesDevice dev)
soundType
- sound type see the SMARTIES_SOUND_*soundDuration
- sound duration in ms (0 to cancel a sound notification)vibration
- vibration duration in ms (0 to cancel a vibration notification)str
- text to be displayed in the notification dialog (null or "" for no dialog)dev
- devicepublic void sendNotification(int soundType, int soundDuration, int vibration, String str, String ip)
soundType
- sound type see the SMARTIES_SOUND_*soundDuration
- sound duration in ms (0 to cancel a sound notification)vibration
- vibration duration in ms (0 to cancel a vibration notification)str
- text to be displayed in the notification dialog (null or "" for no dialog)ip
- IP address or nullpublic void sendNotification(int soundType, int soundDuration, int vibration, String str)
soundType
- sound type see the SMARTIES_SOUND_*soundDuration
- sound duration in ms (0 to cancel a sound notification)vibration
- vibration duration in ms (0 to cancel a vibration notification)str
- text to be displayed in the notification dialog (null or "" for no dialog)public void initWidgets(int wgridw, int wgridh)
Note that a mobile client can/might take adavantage of this to adjust the size of the widget area. The default values are 1 and 1.
wgridw
- width of the gridwgridh
- height of the gridaddWidget(int type, String label, float x, float y, float w, float h)
public SmartiesWidget addWidget(int type, String label, float x, float y, float w, float h)
See SmartiesWidget
for the list of the possible widget types. Depending on the
widget type, you have to directly use the returned SmartiesWidget
to finish its initialisation
(e.g., list of items, the attached callback, etc.).
The position and the size (that could be floats) are relative to the grid [1, wgridw+1] x [1, wgridh+1]
(by default [1, 2] x [1, 2]) that is defined using the initWidgets(int, int)
method -- (1,1) is top-left.
This function is not dynamic and should be call before Run()
, if it is call after only the newly
connected devices will display the added widget.
type
- the widget type, see SmartiesWidget
label
- the label of the widgetx
- x position in the gridy
- y position in the gridw
- width of the widget in the gridh
- height of the widget in the gridSmartiesWidget
SmartiesWidget
public SmartiesWidget getWidget(int wid)
SmartiesWidget
with the given identifier.wid
- widget identifieraddWidget(int type, String label, float x, float y, float w, float h)
public void setPureTouchpad(boolean v)
v
- true for a pure touchpad (default to false)public void createOnePuckByDevice(boolean v)
v
- see abovepublic void setInterfaceButtons(boolean pb, boolean sb, boolean di, boolean si)
pb
- the create puck button. Set to false to remove it (default is true).sb
- the share button. Set to false to remove it (default is true).di
- the delete icon. Set to false to remove it (default is true).si
- the store icon. Set to false to remove it (default is true).public void setPureWidgetArea(boolean v)
v
- see abovepublic void setDeviceOrientation(int v)
v
- see abovepublic void setSharingPolicyMedium()
public void setSharingPolicyStrict()
public void setSharingPolicyPermissive()
public void setSharingPolicyCustom()
Let the application developer to manage the lock/unlock status of the pucks by itself.
public void setSmartiesTouchEventsConf(boolean v, SmartiesDevice dev)
v
- true enable, false disabledev
- the device or null for all the devicepublic void setSmartiesTouchEventsConf(boolean v)
v
- true enable, false disablepublic void setRawTouchEventsConf(boolean v, SmartiesDevice dev)
v
- true enable, false disabledev
- the device or null for all the devicepublic void setRawTouchEventsConf(boolean v)
v
- true enable, false disablepublic void setHideLockedPucks(boolean v, SmartiesDevice dev)
v
- true hide, false do not hidedev
- the device or null for all the devicepublic void setHideLockedPucks(boolean v)
v
- true hide, false do not hidepublic void setAccelerationParameters(float maxCDgainFactor, float minCDgainMM, SmartiesDevice dev)
100/maxCDgainFact is the portion in % of the width of the mobile that should be passed through to pass through the full wall width at a reasonably fast speed (0.37 pixels by ms). A priori the default is maxCDgainFactor = 1.0. Lesser/Bigger values provide a more gentle/aggressive ("slow/fast") acceleration function, and should lead to less/more clutching for long distance pointing.
minCDgainMM is the number of pixels moved in the wall for a movement of 1 mm in the mobile device at very low speed. A priori the default is minCDgainMM = 1.0. Smaller values allow to more easily access small targets. Bigger values make this less easy, but will make the acceleration function smoother.
A priori the defaults are maxCDgainFactor = 1.0 and minCDgainMM = 1.0. Give a value of -1 to to reset a default value.
public void setAccelerationParameters(float maxCDgainFactor, float minCDgainMM)
100/maxCDgainFact is the portion in % of the width of the mobile that should be passed through to pass through the full wall width at a reasonably fast speed (0.37 pixels by ms). A priori the default is maxCDgainFactor = 1.0. Lesser/Bigger values provide a more gentle/aggressive ("slow/fast") acceleration function, and should lead to less/more clutching for long distance pointing.
minCDgainMM is the number of pixels moved in the wall for a movement of 1 mm in the mobile device at very low speed. A priori the default is minCDgainMM = 1.0. Smaller values allow to more easily access small targets. Bigger values make this less easy, but will make the acceleration function smoother.
A priori the defaults are maxCDgainFactor = 1.0 and minCDgainMM = 1.0. Give a value of -1 to to reset a default value.
public void Run()
Copyright © 2017. All rights reserved.