public class ProjectorTransferUtilities
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addToTransferableContents(IItem item,
float width,
float height,
java.lang.String contentID)
Adds the to transferable contents.
|
void |
clearContents()
Clear contents.
|
static ProjectorTransferUtilities |
get()
Retrieve, and initialise if needed, a static instance of this class.
|
java.util.HashMap<IItem,com.jme3.math.Vector2f> |
getContentDimensions()
Gets the content dimensions.
|
java.lang.String |
getContentKey(IItem item)
Gets the content key.
|
java.util.HashMap<java.lang.String,IItem> |
getContents()
Gets the contents.
|
java.util.HashMap<IItem,GalleryItemDatabaseFormat> |
getContentTransferrableTypes()
Gets the content transferrable types.
|
float |
getDecelerationOnArrival()
Gets the deceleration on arrival.
|
void |
onContentArrival(java.util.ArrayList<ContentTransferedMessage> messages)
Retrieves details from the supplied message to recreate the transfered
item
|
java.util.ArrayList<ContentTransferedMessage> |
prepareToTransferAllContents(java.lang.String[] devicesToSendTo)
Prepare to transfer all contents.
|
void |
removeFromTransferableContents(IItem item)
Removes the from transferable contents.
|
void |
setDecelerationOnArrival(float decelerationOnArrival)
Sets the deceleration on arrival.
|
void |
transferIndividualItem(IItem item,
java.lang.String[] projectorsToSendTo,
float width,
float height)
Transfer individual item.
|
public static ProjectorTransferUtilities get()
public void addToTransferableContents(IItem item, float width, float height, java.lang.String contentID)
item
- the itemwidth
- the widthheight
- the heightcontentID
- the content idpublic void clearContents()
public java.util.HashMap<IItem,com.jme3.math.Vector2f> getContentDimensions()
public java.lang.String getContentKey(IItem item)
item
- the itempublic java.util.HashMap<java.lang.String,IItem> getContents()
public java.util.HashMap<IItem,GalleryItemDatabaseFormat> getContentTransferrableTypes()
public float getDecelerationOnArrival()
public void onContentArrival(java.util.ArrayList<ContentTransferedMessage> messages)
message
- Structured message detailing the details of an item's
arrival.public java.util.ArrayList<ContentTransferedMessage> prepareToTransferAllContents(java.lang.String[] devicesToSendTo)
devicesToSendTo
- the devices to send topublic void removeFromTransferableContents(IItem item)
item
- the itempublic void setDecelerationOnArrival(float decelerationOnArrival)
decelerationOnArrival
- the new deceleration on arrivalpublic void transferIndividualItem(IItem item, java.lang.String[] projectorsToSendTo, float width, float height)
item
- the itemprojectorsToSendTo
- the projectors to send towidth
- the widthheight
- the height