|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.contentsystem.ContentSystem
public abstract class ContentSystem
Main layer in producing multi-touch capable content for an application. This avoids application developers having to deal with the intricacies of managing multi-touch interactions for graphical compoments.
| Constructor Summary | |
|---|---|
ContentSystem()
|
|
| Method Summary | |
|---|---|
abstract void |
addContentItem(ContentItem contentItem)
Adds the content item. |
void |
addUpdateableListener(Updateable l)
Adds the updateable listener. |
abstract ContentItem |
createContentItem(java.lang.Class<? extends ContentItem> contentItemType)
Creates the content item. |
abstract ContentItem |
createContentItem(java.lang.Class<? extends ContentItem> contentItemType,
java.lang.String itemName)
Create a content item with a specific name. |
java.lang.String |
generateUniqueName()
Generate unique name. |
java.util.Map<java.lang.String,ContentItem> |
getAllContentItems()
Gets the all content items. |
ContentItem |
getContentItem(java.lang.String name)
Gets the content item. |
int |
getContentItemsCount()
Gets the content items count. |
static ContentSystem |
getContentSystemForSynergyNetApp(SynergyNetApp app)
Gets the content system for synergy net app. |
IImplementationItemFactory |
getImplementationItemFactory()
Gets the implementation item factory. |
abstract int |
getScreenHeight()
Gets the screen height. |
abstract int |
getScreenWidth()
Gets the screen width. |
abstract boolean |
isTopLevelContainer(java.lang.Object implementationObject)
Checks if is top level container. |
java.util.Set<ContentItem> |
loadContentItems(java.lang.String xmlFilePath)
Load content items. |
abstract void |
removeAllContentItems()
Removes the all content items. |
abstract void |
removeContentItem(ContentItem contentItem)
Removes the content item. |
abstract void |
removeContentItem(ContentItem contentItem,
boolean releaseTextures)
Removes the content item. |
void |
removeUpdateableListener(Updateable l)
Removes the updateable listener. |
abstract void |
setItemName(ContentItem item,
java.lang.String nameName)
Sets the item name. |
abstract void |
update(float tpf)
Update. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentSystem()
| Method Detail |
|---|
public static ContentSystem getContentSystemForSynergyNetApp(SynergyNetApp app)
app - the app
public abstract void addContentItem(ContentItem contentItem)
contentItem - the content itempublic void addUpdateableListener(Updateable l)
l - the lpublic abstract ContentItem createContentItem(java.lang.Class<? extends ContentItem> contentItemType)
contentItemType - the content item type
public abstract ContentItem createContentItem(java.lang.Class<? extends ContentItem> contentItemType,
java.lang.String itemName)
contentItemType - the content item typeitemName - the item name
public java.lang.String generateUniqueName()
public java.util.Map<java.lang.String,ContentItem> getAllContentItems()
public ContentItem getContentItem(java.lang.String name)
name - the name
public int getContentItemsCount()
public IImplementationItemFactory getImplementationItemFactory()
public abstract int getScreenHeight()
public abstract int getScreenWidth()
public abstract boolean isTopLevelContainer(java.lang.Object implementationObject)
implementationObject - the implementation object
public java.util.Set<ContentItem> loadContentItems(java.lang.String xmlFilePath)
xmlFilePath - the xml file path
public abstract void removeAllContentItems()
public abstract void removeContentItem(ContentItem contentItem)
contentItem - the content item
public abstract void removeContentItem(ContentItem contentItem,
boolean releaseTextures)
contentItem - the content itemreleaseTextures - the release texturespublic void removeUpdateableListener(Updateable l)
l - the l
public abstract void setItemName(ContentItem item,
java.lang.String nameName)
item - the itemnameName - the name namepublic abstract void update(float tpf)
tpf - the tpf
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||