public class ContentTransferedMessage extends PerformActionMessage implements java.io.Serializable, java.lang.Comparable<ContentTransferedMessage>
PerformActionMessage.MESSAGESTATE
Constructor and Description |
---|
ContentTransferedMessage()
Empty Constructor used to initialise value in the network cluster.
|
ContentTransferedMessage(java.lang.String[] targetDeviceIDs,
GalleryItemDatabaseFormat galleryItem,
float x,
float y,
float targetAngle,
float targetScale,
int zOrder,
boolean visible,
java.lang.String itemName)
Create a structured network flick message for transmission through the
cluster.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ContentTransferedMessage other)
Allows sorting of items by their Z-Orders.
|
GalleryItemDatabaseFormat |
getGalleryItem()
Get the object representing the transfered item and its attached
feedback.
|
java.lang.String |
getItemName()
Get the item name.
|
float |
getRotation()
Get the rotation of the transfered item on arrival.
|
float |
getScale()
Get the scale of the transfered item on arrival.
|
java.lang.String[] |
getTargetDeviceIDs()
Get the target device's IDs in the cluster.
|
float |
getX()
Get the X value of the transfered item's arrival location.
|
float |
getY()
Get the Y value of the transfered item's arrival location.
|
int |
getZOrder()
Get the transfered item's z level.
|
boolean |
isVisible() |
void |
setGalleryItem(GalleryItemDatabaseFormat galleryItem)
Set the object representing the transfered item and its attached
feedback.
|
void |
setItemName(java.lang.String itemName)
Set the item name.
|
void |
setRotation(float rotation)
Set the rotation of the transfered item on arrival.
|
void |
setScale(float scale)
Set the scale of the transfered item on arrival.
|
void |
setTargetDeviceIDs(java.lang.String[] targetDeviceIDs)
Set the target device's IDs in the cluster.
|
void |
setVisible(boolean visible) |
void |
setX(float x)
Set the X value of the transfered item's arrival location.
|
void |
setY(float y)
Set the Y value of the transfered item's arrival location.
|
void |
setZOrder(int zOrder)
Set the transfered item's z level.
|
getMessageID, getMessageState, messageAlreadyReceived, regenerateID
public ContentTransferedMessage()
public ContentTransferedMessage(java.lang.String[] targetDeviceIDs, GalleryItemDatabaseFormat galleryItem, float x, float y, float targetAngle, float targetScale, int zOrder, boolean visible, java.lang.String itemName)
targetDeviceIDs
- List of target table's identity in the cluster.galleryItem
- Object representing the transfered item and its
attached feedback.x
- The X value of the transfered item's arrival location.y
- The Y value of the transfered item's arrival location.targetAngle
- Rotation of the transfered item on arrival.targetScale
- Scale of the transfered item on arrival. *zOrder
- the zOrder ID of the transfered item.Visibility
- of the item being transferred.itemName
- the unique ID of the transfered item.public int compareTo(ContentTransferedMessage other)
compareTo
in interface java.lang.Comparable<ContentTransferedMessage>
other
- Another instance of ContentTransferedMessage.public GalleryItemDatabaseFormat getGalleryItem()
public java.lang.String getItemName()
public float getRotation()
public float getScale()
public java.lang.String[] getTargetDeviceIDs()
public float getX()
public float getY()
public int getZOrder()
public boolean isVisible()
public void setGalleryItem(GalleryItemDatabaseFormat galleryItem)
galleryItem
- Object representing the transfered item and its
attached feedback.public void setItemName(java.lang.String itemName)
itemName
- Name of the item.public void setRotation(float rotation)
rotation
- The rotation of the transfered item on arrival.public void setScale(float scale)
scale
- The scale of the transfered item on arrival.public void setTargetDeviceIDs(java.lang.String[] targetDeviceIDs)
targetDeviceIDs
- The target devices' IDspublic void setVisible(boolean visible)
visible
- the visible to setpublic void setX(float x)
x
- The X value of the transfered item's arrival location.public void setY(float y)
y
- The Y value of the transfered item's arrival location.public void setZOrder(int zOrder)
sourceID
- Z level of the transfered item.