|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.contentsystem.items.ContentItem
public class ContentItem
The Class ContentItem.
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 |
---|
public java.lang.String name
Constructor Detail |
---|
public ContentItem(ContentSystem contentSystem, java.lang.String name)
contentSystem
- the content systemname
- the nameMethod Detail |
---|
public void addMultitouchListener()
IContentItemImplementation
addMultitouchListener
in interface IContentItemImplementation
public void bindImplementationOjbect()
public boolean canManipulate()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean contains(java.awt.geom.Point2D.Float point)
IContentItemImplementation
contains
in interface IContentItemImplementation
point
- the point
public java.lang.String generateUniqueName()
public float getAngle()
public Background getBackGround()
public java.awt.Color getBackgroundColour()
public Border getBorder()
public java.awt.Color getBorderColour()
public int getBorderSize()
public ContentSystem getContentSystem()
public java.lang.String getId()
public java.lang.Object getImplementationObject()
IContentItemImplementation
getImplementationObject
in interface IContentItemImplementation
public Location getLocalLocation()
public java.lang.String getName()
public java.lang.String getNote()
public java.lang.String getResource()
public float getScale()
public boolean hasCollision(ContentItem otherItem)
IContentItemImplementation
hasCollision
in interface IContentItemImplementation
otherItem
- the content item
public void init()
IContentItemImplementation
init
in interface IContentItemImplementation
public void initImplementationObjet()
public boolean isBoundaryEnabled()
public boolean isVisible()
public void setAngle(float angle)
IContentItemImplementation
setAngle
in interface IContentItemImplementation
angle
- the new anglepublic void setBackGround(Background backGround)
IContentItemImplementation
setBackGround
in interface IContentItemImplementation
backGround
- the new back groundpublic void setBackgroundColour(java.awt.Color color)
color
- the new background colourpublic void setBorder(Border border)
IContentItemImplementation
setBorder
in interface IContentItemImplementation
border
- the new borderpublic void setBorderColour(java.awt.Color color)
color
- the new border colourpublic void setBorderSize(int size)
size
- the new border sizepublic void setBoundaryEnabled(boolean isBoundaryEnabled)
IContentItemImplementation
setBoundaryEnabled
in interface IContentItemImplementation
isBoundaryEnabled
- the new boundary enabledpublic void setContentSystem(ContentSystem contentSystem)
contentSystem
- the new content systempublic void setId(java.lang.String id)
IContentItemImplementation
setId
in interface IContentItemImplementation
id
- the new idpublic void setLocalLocation(float x, float y)
x
- the xy
- the ypublic void setLocalLocation(float x, float y, float z)
x
- the xy
- the yz
- the zpublic void setLocalLocation(Location location)
IContentItemImplementation
setLocalLocation
in interface IContentItemImplementation
location
- the new local locationpublic void setLocation(Location location)
IContentItemImplementation
setLocation
in interface IContentItemImplementation
location
- the new locationpublic void setManipulate(boolean manipulate)
IContentItemImplementation
setManipulate
in interface IContentItemImplementation
manipulate
- the new manipulatepublic void setName(java.lang.String newName)
IContentItemImplementation
setName
in interface IContentItemImplementation
newName
- the new namepublic void setNote(java.lang.String note)
note
- the new notepublic void setResource(java.lang.String resource)
resource
- the new resourcepublic void setScale(float scale)
IContentItemImplementation
setScale
in interface IContentItemImplementation
scale
- the new scalepublic void setScale(float scale, Direction direction)
IContentItemImplementation
setScale
in interface IContentItemImplementation
scale
- the scale factordirection
- the directionpublic void setVisible(boolean isVisible)
IContentItemImplementation
setVisible
in interface IContentItemImplementation
isVisible
- the new visiblepublic void setVisible(boolean isVisible, boolean isUntouchable)
IContentItemImplementation
setVisible
in interface IContentItemImplementation
isVisible
- the is visibleisUntouchable
- the is untouchablepublic void update()
IContentItemImplementation
update
in interface IContentItemImplementation
public void update(float interpolation)
IContentItemImplementation
update
in interface IContentItemImplementation
interpolation
- the interpolation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |