public class FlickMessage extends PerformActionMessage implements java.io.Serializable
PerformActionMessage.MESSAGESTATE
Constructor and Description |
---|
FlickMessage()
Empty Constructor used to initialise value in the network cluster.
|
FlickMessage(java.lang.String targetTableID,
java.lang.String sourceTableID,
GalleryItemDatabaseFormat galleryItem,
float x,
float y,
float targetAngle,
float targetScale,
float xDir,
float yDir)
Create a structured network flick message for transmission through the
cluster.
|
Modifier and Type | Method and Description |
---|---|
GalleryItemDatabaseFormat |
getGalleryItem()
Get the object representing the flicked item and its attached feedback.
|
float |
getRotation()
Get the rotation of the flicked item on arrival.
|
float |
getScale()
Get the scale of the flicked item on arrival.
|
java.lang.String |
getSourceTableID()
Get the source table's ID in the cluster.
|
java.lang.String |
getTargetTableID()
Get the target table's ID in the cluster.
|
float |
getXDir()
Get the X value of the flicked item's direction on arrival.
|
float |
getXinMetres()
Get the X value of the flicked item's arrival location.
|
float |
getYDir()
Get the Y value of the flicked item's direction on arrival.
|
float |
getYinMetres()
Get the Y value of the flicked item's arrival location.
|
void |
setGalleryItem(GalleryItemDatabaseFormat galleryItem)
Set the object representing the flicked item and its attached feedback.
|
void |
setRotation(float rotation)
Set the rotation of the flicked item on arrival.
|
void |
setScale(float scale)
Set the scale of the flicked item on arrival.
|
void |
setSourceTableID(java.lang.String sourceTableID)
Set the source table's ID in the cluster.
|
void |
setTargetTableID(java.lang.String targetTableID)
Set the target table's ID in the cluster.
|
void |
setXDir(float xDir)
Set the X value of the flicked item's direction on arrival.
|
void |
setXinMetres(float x)
Set the X value of the flicked item's arrival location.
|
void |
setYDir(float yDir)
Set the Y value of the flicked item's direction on arrival.
|
void |
setYinMetres(float y)
Set the Y value of the flicked item's arrival location.
|
getMessageID, getMessageState, messageAlreadyReceived, regenerateID
public FlickMessage()
public FlickMessage(java.lang.String targetTableID, java.lang.String sourceTableID, GalleryItemDatabaseFormat galleryItem, float x, float y, float targetAngle, float targetScale, float xDir, float yDir)
targetTableIdentity
- Target table's identity in the cluster.galleryItem
- Object representing the flicked item and its attached
feedback.x
- The X value of the flicked item's arrival location.y
- The Y value of the flicked item's arrival location.targetAngle
- Rotation of the flicked item on arrival.targetScale
- Scale of the flicked item on arrival.xDir
- The X value of the flicked item's direction on arrival.yDir
- The Y value of the flicked item's direction on arrival.flickID
- The unique ID of the flick message.public GalleryItemDatabaseFormat getGalleryItem()
public float getRotation()
public float getScale()
public java.lang.String getSourceTableID()
public java.lang.String getTargetTableID()
public float getXDir()
public float getXinMetres()
public float getYDir()
public float getYinMetres()
public void setGalleryItem(GalleryItemDatabaseFormat galleryItem)
galleryItem
- Object representing the flicked item and its attached
feedback.public void setRotation(float rotation)
rotation
- The rotation of the flicked item on arrival.public void setScale(float scale)
scale
- The scale of the flicked item on arrival.public void setSourceTableID(java.lang.String sourceTableID)
sourceTableID
- The source table's IDpublic void setTargetTableID(java.lang.String targetTableID)
targetTableID
- The target table's IDpublic void setXDir(float xDir)
xDir
- The X value of the flicked item's direction on arrival.public void setXinMetres(float x)
x
- The X value of the flicked item's arrival location.public void setYDir(float yDir)
yDir
- The Y value of the flicked item's direction on arrival.public void setYinMetres(float y)
y
- The Y value of the flicked item's arrival location.