de.deepamehta.plugins.topicmaps
Class TopicmapsPlugin
java.lang.Object
de.deepamehta.core.osgi.PluginActivator
de.deepamehta.plugins.topicmaps.TopicmapsPlugin
- All Implemented Interfaces:
- de.deepamehta.core.osgi.PluginContext, TopicmapsService, org.osgi.framework.BundleActivator
public class TopicmapsPlugin
- extends de.deepamehta.core.osgi.PluginActivator
- implements TopicmapsService
| Fields inherited from class de.deepamehta.core.osgi.PluginActivator |
bundle, dms |
|
Method Summary |
void |
addAssociationToTopicmap(long topicmapId,
long assocId)
Adds an association to a topicmap. |
void |
addTopicToTopicmap(long topicmapId,
long topicId,
int x,
int y,
boolean visibility)
Convenience method to add a topic with the standard view properties. |
void |
addTopicToTopicmap(long topicmapId,
long topicId,
ViewProperties viewProps)
Adds a topic to a topicmap. |
de.deepamehta.core.Topic |
createTopicmap(String name,
String topicmapRendererUri)
|
TopicmapViewmodel |
getTopicmap(long topicmapId,
boolean includeChilds)
|
InputStream |
getTopicmapAndTopicInWebclient()
|
InputStream |
getTopicmapInWebclient()
|
boolean |
isAssociationInTopicmap(long topicmapId,
long assocId)
|
boolean |
isTopicInTopicmap(long topicmapId,
long topicId)
|
void |
registerTopicmapRenderer(TopicmapRenderer renderer)
|
void |
registerViewmodelCustomizer(ViewmodelCustomizer customizer)
|
void |
removeAssociationFromTopicmap(long topicmapId,
long assocId)
|
void |
setClusterPosition(long topicmapId,
ClusterCoords coords)
|
void |
setTopicmapTranslation(long topicmapId,
int transX,
int transY)
|
void |
setTopicPosition(long topicmapId,
long topicId,
int x,
int y)
Convenience method to update the "dm4.topicmaps.x" and "dm4.topicmaps.y" standard view properties. |
void |
setTopicVisibility(long topicmapId,
long topicId,
boolean visibility)
Convenience method to update the "dm4.topicmaps.visibility" standard view property. |
void |
setViewProperties(long topicmapId,
long topicId,
ViewProperties viewProps)
|
void |
unregisterViewmodelCustomizer(ViewmodelCustomizer customizer)
|
| Methods inherited from class de.deepamehta.core.osgi.PluginActivator |
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString |
TopicmapsPlugin
public TopicmapsPlugin()
createTopicmap
public de.deepamehta.core.Topic createTopicmap(String name,
String topicmapRendererUri)
- Specified by:
createTopicmap in interface TopicmapsService
getTopicmap
public TopicmapViewmodel getTopicmap(long topicmapId,
boolean includeChilds)
- Specified by:
getTopicmap in interface TopicmapsService
includeChilds - if true the topics contained in the topicmap will include their child topics.
isTopicInTopicmap
public boolean isTopicInTopicmap(long topicmapId,
long topicId)
- Specified by:
isTopicInTopicmap in interface TopicmapsService
isAssociationInTopicmap
public boolean isAssociationInTopicmap(long topicmapId,
long assocId)
- Specified by:
isAssociationInTopicmap in interface TopicmapsService
addTopicToTopicmap
public void addTopicToTopicmap(long topicmapId,
long topicId,
ViewProperties viewProps)
- Description copied from interface:
TopicmapsService
- Adds a topic to a topicmap. If the topic is added already an exception is thrown.
- Specified by:
addTopicToTopicmap in interface TopicmapsService
addTopicToTopicmap
public void addTopicToTopicmap(long topicmapId,
long topicId,
int x,
int y,
boolean visibility)
- Description copied from interface:
TopicmapsService
- Convenience method to add a topic with the standard view properties.
- Specified by:
addTopicToTopicmap in interface TopicmapsService
addAssociationToTopicmap
public void addAssociationToTopicmap(long topicmapId,
long assocId)
- Description copied from interface:
TopicmapsService
- Adds an association to a topicmap. If the association is added already an exception is thrown.
- Specified by:
addAssociationToTopicmap in interface TopicmapsService
setViewProperties
public void setViewProperties(long topicmapId,
long topicId,
ViewProperties viewProps)
- Specified by:
setViewProperties in interface TopicmapsService
setTopicPosition
public void setTopicPosition(long topicmapId,
long topicId,
int x,
int y)
- Description copied from interface:
TopicmapsService
- Convenience method to update the "dm4.topicmaps.x" and "dm4.topicmaps.y" standard view properties.
- Specified by:
setTopicPosition in interface TopicmapsService
setTopicVisibility
public void setTopicVisibility(long topicmapId,
long topicId,
boolean visibility)
- Description copied from interface:
TopicmapsService
- Convenience method to update the "dm4.topicmaps.visibility" standard view property.
- Specified by:
setTopicVisibility in interface TopicmapsService
removeAssociationFromTopicmap
public void removeAssociationFromTopicmap(long topicmapId,
long assocId)
- Specified by:
removeAssociationFromTopicmap in interface TopicmapsService
setClusterPosition
public void setClusterPosition(long topicmapId,
ClusterCoords coords)
- Specified by:
setClusterPosition in interface TopicmapsService
setTopicmapTranslation
public void setTopicmapTranslation(long topicmapId,
int transX,
int transY)
- Specified by:
setTopicmapTranslation in interface TopicmapsService
registerTopicmapRenderer
public void registerTopicmapRenderer(TopicmapRenderer renderer)
- Specified by:
registerTopicmapRenderer in interface TopicmapsService
registerViewmodelCustomizer
public void registerViewmodelCustomizer(ViewmodelCustomizer customizer)
- Specified by:
registerViewmodelCustomizer in interface TopicmapsService
unregisterViewmodelCustomizer
public void unregisterViewmodelCustomizer(ViewmodelCustomizer customizer)
- Specified by:
unregisterViewmodelCustomizer in interface TopicmapsService
getTopicmapInWebclient
public InputStream getTopicmapInWebclient()
getTopicmapAndTopicInWebclient
public InputStream getTopicmapAndTopicInWebclient()
Copyright © 2015. All rights reserved.