synergynetframework.appsystem.contentsystem.items
Class ContentItem

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
All Implemented Interfaces:
java.io.Serializable, IContentItemImplementation
Direct Known Subclasses:
OrthoContentItem, ThreeDContentItem

public class ContentItem
extends java.lang.Object
implements java.io.Serializable, IContentItemImplementation

The Class ContentItem.

See Also:
Serialized Form

Field Summary
 java.lang.String name
          The name.
 
Constructor Summary
ContentItem(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new content item.
 
Method Summary
 void addMultitouchListener()
          Adds the multitouch listener.
 void bindImplementationOjbect()
          Bind implementation ojbect.
 boolean canManipulate()
          Can manipulate.
 java.lang.Object clone()
           
 boolean contains(java.awt.geom.Point2D.Float point)
          Contains.
 java.lang.String generateUniqueName()
          Generate unique name.
 float getAngle()
          Gets the angle.
 Background getBackGround()
          Gets the back ground.
 java.awt.Color getBackgroundColour()
          Gets the background colour.
 Border getBorder()
          Gets the border.
 java.awt.Color getBorderColour()
          Gets the border colour.
 int getBorderSize()
          Gets the border size.
 ContentSystem getContentSystem()
          Gets the content system.
 java.lang.String getId()
          Gets the id.
 java.lang.Object getImplementationObject()
          Gets the implementation object.
 Location getLocalLocation()
          Gets the local location.
 java.lang.String getName()
          Gets the name.
 java.lang.String getNote()
          Gets the note.
 java.lang.String getResource()
          Gets the resource.
 float getScale()
          Gets the scale.
 boolean hasCollision(ContentItem otherItem)
          Checks for collision.
 void init()
          Inits the.
 void initImplementationObjet()
          Inits the implementation objet.
 boolean isBoundaryEnabled()
          Checks if is boundary enabled.
 boolean isVisible()
          Checks if is visible.
 void setAngle(float angle)
          Sets the angle.
 void setBackGround(Background backGround)
          Sets the back ground.
 void setBackgroundColour(java.awt.Color color)
          Sets the background colour.
 void setBorder(Border border)
          Sets the border.
 void setBorderColour(java.awt.Color color)
          Sets the border colour.
 void setBorderSize(int size)
          Sets the border size.
 void setBoundaryEnabled(boolean isBoundaryEnabled)
          Sets the boundary enabled.
 void setContentSystem(ContentSystem contentSystem)
          Sets the content system.
 void setId(java.lang.String id)
          Sets the id.
 void setLocalLocation(float x, float y)
          Sets the local location.
 void setLocalLocation(float x, float y, float z)
          Sets the local location.
 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 newName)
          Sets the name.
 void setNote(java.lang.String note)
          Sets the note.
 void setResource(java.lang.String resource)
          Sets the resource.
 void setScale(float scale)
          Sets the scale.
 void setScale(float scale, 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
 

Field Detail

name

public java.lang.String name
The name.

Constructor Detail

ContentItem

public ContentItem(ContentSystem contentSystem,
                   java.lang.String name)
Instantiates a new content item.

Parameters:
contentSystem - the content system
name - the name
Method Detail

addMultitouchListener

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

Specified by:
addMultitouchListener in interface IContentItemImplementation

bindImplementationOjbect

public void bindImplementationOjbect()
Bind implementation ojbect.


canManipulate

public boolean canManipulate()
Can manipulate.

Returns:
true, if successful

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

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

generateUniqueName

public java.lang.String generateUniqueName()
Generate unique name.

Returns:
the string

getAngle

public float getAngle()
Gets the angle.

Returns:
the angle

getBackGround

public Background getBackGround()
Gets the back ground.

Returns:
the back ground

getBackgroundColour

public java.awt.Color getBackgroundColour()
Gets the background colour.

Returns:
the background colour

getBorder

public Border getBorder()
Gets the border.

Returns:
the border

getBorderColour

public java.awt.Color getBorderColour()
Gets the border colour.

Returns:
the border colour

getBorderSize

public int getBorderSize()
Gets the border size.

Returns:
the border size

getContentSystem

public ContentSystem getContentSystem()
Gets the content system.

Returns:
the content system

getId

public java.lang.String getId()
Gets the id.

Returns:
the id

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

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

getNote

public java.lang.String getNote()
Gets the note.

Returns:
the note

getResource

public java.lang.String getResource()
Gets the resource.

Returns:
the resource

getScale

public float getScale()
Gets the scale.

Returns:
the scale

hasCollision

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

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

init

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

Specified by:
init in interface IContentItemImplementation

initImplementationObjet

public void initImplementationObjet()
Inits the implementation objet.


isBoundaryEnabled

public boolean isBoundaryEnabled()
Checks if is boundary enabled.

Returns:
true, if is boundary enabled

isVisible

public boolean isVisible()
Checks if is visible.

Returns:
true, if is visible

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

setBackgroundColour

public void setBackgroundColour(java.awt.Color color)
Sets the background colour.

Parameters:
color - the new background colour

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

setBorderColour

public void setBorderColour(java.awt.Color color)
Sets the border colour.

Parameters:
color - the new border colour

setBorderSize

public void setBorderSize(int size)
Sets the border size.

Parameters:
size - the new border size

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

setContentSystem

public void setContentSystem(ContentSystem contentSystem)
Sets the content system.

Parameters:
contentSystem - the new content system

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(float x,
                             float y)
Sets the local location.

Parameters:
x - the x
y - the y

setLocalLocation

public void setLocalLocation(float x,
                             float y,
                             float z)
Sets the local location.

Parameters:
x - the x
y - the y
z - the z

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 newName)
Description copied from interface: IContentItemImplementation
Sets the name.

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

setNote

public void setNote(java.lang.String note)
Sets the note.

Parameters:
note - the new note

setResource

public void setResource(java.lang.String resource)
Sets the resource.

Parameters:
resource - the new resource

setScale

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

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

setScale

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

Specified by:
setScale in interface IContentItemImplementation
Parameters:
scale - 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