synergynetframework.appsystem.contentsystem.jme.items
Class JMEContentItem

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
All Implemented Interfaces:
IContentItemImplementation
Direct Known Subclasses:
JMEOrthoContentItem, JMEThreeDContentItem

public class JMEContentItem
extends java.lang.Object
implements IContentItemImplementation

The Class JMEContentItem.


Constructor Summary
JMEContentItem(ContentItem contentItem, com.jme.scene.Spatial spatial)
          Instantiates a new JME content item.
 
Method Summary
 void addMultitouchListener()
          Adds the multitouch listener.
 boolean contains(java.awt.geom.Point2D.Float point)
          Contains.
 java.lang.Object getImplementationObject()
          Gets the implementation object.
 Location getLocalLocation()
          Gets the local location.
 boolean hasCollision(ContentItem contentItem)
          Checks for collision.
 void init()
          Inits the.
 void setAngle(float angle)
          Sets the angle.
 void setBackGround(Background backGround)
          Sets the back ground.
 void setBorder(Border border)
          Sets the border.
 void setBoundaryEnabled(boolean isBoundaryEnabled)
          Sets the boundary enabled.
 void setId(java.lang.String id)
          Sets the id.
 void setLocalLocation(Location location)
          Sets the local location.
 void setLocation(Location location)
          Sets the location.
 void setManipulate(boolean manipulate)
          Sets the manipulate.
 void setName(java.lang.String name)
          Sets the name.
 void setScale(float scaleFactor)
          Sets the scale.
 void setScale(float scaleFactor, Direction direction)
          Sets the scale.
 void setVisible(boolean isVisible)
          Sets the visible.
 void setVisible(boolean isVisible, boolean isUntouchable)
          Sets the visible.
 void update()
          Update.
 void update(float interpolation)
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMEContentItem

public JMEContentItem(ContentItem contentItem,
                      com.jme.scene.Spatial spatial)
Instantiates a new JME content item.

Parameters:
contentItem - the content item
spatial - the spatial
Method Detail

addMultitouchListener

public void addMultitouchListener()
Description copied from interface: IContentItemImplementation
Adds the multitouch listener.

Specified by:
addMultitouchListener in interface IContentItemImplementation

contains

public boolean contains(java.awt.geom.Point2D.Float point)
Description copied from interface: IContentItemImplementation
Contains.

Specified by:
contains in interface IContentItemImplementation
Parameters:
point - the point
Returns:
true, if successful

getImplementationObject

public java.lang.Object getImplementationObject()
Description copied from interface: IContentItemImplementation
Gets the implementation object.

Specified by:
getImplementationObject in interface IContentItemImplementation
Returns:
the implementation object

getLocalLocation

public Location getLocalLocation()
Gets the local location.

Returns:
the local location

hasCollision

public boolean hasCollision(ContentItem contentItem)
Description copied from interface: IContentItemImplementation
Checks for collision.

Specified by:
hasCollision in interface IContentItemImplementation
Parameters:
contentItem - the content item
Returns:
true, if successful

init

public void init()
Description copied from interface: IContentItemImplementation
Inits the.

Specified by:
init in interface IContentItemImplementation

setAngle

public void setAngle(float angle)
Description copied from interface: IContentItemImplementation
Sets the angle.

Specified by:
setAngle in interface IContentItemImplementation
Parameters:
angle - the new angle

setBackGround

public void setBackGround(Background backGround)
Description copied from interface: IContentItemImplementation
Sets the back ground.

Specified by:
setBackGround in interface IContentItemImplementation
Parameters:
backGround - the new back ground

setBorder

public void setBorder(Border border)
Description copied from interface: IContentItemImplementation
Sets the border.

Specified by:
setBorder in interface IContentItemImplementation
Parameters:
border - the new border

setBoundaryEnabled

public void setBoundaryEnabled(boolean isBoundaryEnabled)
Description copied from interface: IContentItemImplementation
Sets the boundary enabled.

Specified by:
setBoundaryEnabled in interface IContentItemImplementation
Parameters:
isBoundaryEnabled - the new boundary enabled

setId

public void setId(java.lang.String id)
Description copied from interface: IContentItemImplementation
Sets the id.

Specified by:
setId in interface IContentItemImplementation
Parameters:
id - the new id

setLocalLocation

public void setLocalLocation(Location location)
Description copied from interface: IContentItemImplementation
Sets the local location.

Specified by:
setLocalLocation in interface IContentItemImplementation
Parameters:
location - the new local location

setLocation

public void setLocation(Location location)
Description copied from interface: IContentItemImplementation
Sets the location.

Specified by:
setLocation in interface IContentItemImplementation
Parameters:
location - the new location

setManipulate

public void setManipulate(boolean manipulate)
Description copied from interface: IContentItemImplementation
Sets the manipulate.

Specified by:
setManipulate in interface IContentItemImplementation
Parameters:
manipulate - the new manipulate

setName

public void setName(java.lang.String name)
Description copied from interface: IContentItemImplementation
Sets the name.

Specified by:
setName in interface IContentItemImplementation
Parameters:
name - the new name

setScale

public void setScale(float scaleFactor)
Description copied from interface: IContentItemImplementation
Sets the scale.

Specified by:
setScale in interface IContentItemImplementation
Parameters:
scaleFactor - the new scale

setScale

public void setScale(float scaleFactor,
                     Direction direction)
Description copied from interface: IContentItemImplementation
Sets the scale.

Specified by:
setScale in interface IContentItemImplementation
Parameters:
scaleFactor - the scale factor
direction - the direction

setVisible

public void setVisible(boolean isVisible)
Description copied from interface: IContentItemImplementation
Sets the visible.

Specified by:
setVisible in interface IContentItemImplementation
Parameters:
isVisible - the new visible

setVisible

public void setVisible(boolean isVisible,
                       boolean isUntouchable)
Description copied from interface: IContentItemImplementation
Sets the visible.

Specified by:
setVisible in interface IContentItemImplementation
Parameters:
isVisible - the is visible
isUntouchable - the is untouchable

update

public void update()
Description copied from interface: IContentItemImplementation
Update.

Specified by:
update in interface IContentItemImplementation

update

public void update(float interpolation)
Description copied from interface: IContentItemImplementation
Update.

Specified by:
update in interface IContentItemImplementation
Parameters:
interpolation - the interpolation