|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.contentsystem.ContentSystem
synergynetframework.appsystem.contentsystem.jme.JMEContentSystem
public class JMEContentSystem
The Class JMEContentSystem.
Constructor Summary | |
---|---|
JMEContentSystem()
Instantiates a new JME content system. |
|
JMEContentSystem(com.jme.scene.Node orthoNode)
Instantiates a new JME content system. |
Method Summary | |
---|---|
void |
addContentItem(ContentItem contentItem)
Adds the content item. |
ContentItem |
createContentItem(java.lang.Class<? extends ContentItem> contentItemType)
Create a content item where the name will be auto-generated. |
ContentItem |
createContentItem(java.lang.Class<? extends ContentItem> contentItemType,
java.lang.String itemName)
Create a content item with a specific name. |
ContentItem |
getContentItem(com.jme.scene.Spatial spatial)
Gets the content item. |
com.jme.scene.Spatial |
getOrthoRootNode()
Gets the ortho root node. |
int |
getScreenHeight()
Gets the screen height. |
int |
getScreenWidth()
Gets the screen width. |
boolean |
isTopLevelContainer(java.lang.Object item)
Checks if is top level container. |
void |
removeAllContentItems()
Removes the all content items. |
void |
removeContentItem(ContentItem contentItem)
Removes the content item. |
void |
removeContentItem(ContentItem contentItem,
boolean releaseTextures)
Removes the content item. |
void |
setItemName(ContentItem item,
java.lang.String newName)
Sets the item name. |
void |
update(float tpf)
Update. |
Methods inherited from class synergynetframework.appsystem.contentsystem.ContentSystem |
---|
addUpdateableListener, generateUniqueName, getAllContentItems, getContentItem, getContentItemsCount, getContentSystemForSynergyNetApp, getImplementationItemFactory, loadContentItems, removeUpdateableListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMEContentSystem()
public JMEContentSystem(com.jme.scene.Node orthoNode)
orthoNode
- the ortho nodeMethod Detail |
---|
public void addContentItem(ContentItem contentItem)
ContentSystem
addContentItem
in class ContentSystem
contentItem
- the content itempublic ContentItem createContentItem(java.lang.Class<? extends ContentItem> contentItemType)
createContentItem
in class ContentSystem
contentItemType
- the content item type
public ContentItem createContentItem(java.lang.Class<? extends ContentItem> contentItemType, java.lang.String itemName)
createContentItem
in class ContentSystem
contentItemType
- the content item typeitemName
- the item name
public ContentItem getContentItem(com.jme.scene.Spatial spatial)
spatial
- the spatial
public com.jme.scene.Spatial getOrthoRootNode()
public int getScreenHeight()
ContentSystem
getScreenHeight
in class ContentSystem
public int getScreenWidth()
ContentSystem
getScreenWidth
in class ContentSystem
public boolean isTopLevelContainer(java.lang.Object item)
ContentSystem
isTopLevelContainer
in class ContentSystem
item
- the implementation object
public void removeAllContentItems()
ContentSystem
removeAllContentItems
in class ContentSystem
public void removeContentItem(ContentItem contentItem)
ContentSystem
removeContentItem
in class ContentSystem
contentItem
- the content itempublic void removeContentItem(ContentItem contentItem, boolean releaseTextures)
ContentSystem
removeContentItem
in class ContentSystem
contentItem
- the content itemreleaseTextures
- the release texturespublic void setItemName(ContentItem item, java.lang.String newName)
ContentSystem
setItemName
in class ContentSystem
item
- the itemnewName
- the name namepublic void update(float tpf)
ContentSystem
update
in class ContentSystem
tpf
- the tpf
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |