001package systems.dmx.topicmaps;
002
003import systems.dmx.core.model.ChildTopicsModel;
004import systems.dmx.core.service.ModelFactory;
005
006
007
008// ### TODO: rename to "DefaultTopicmap"
009class DefaultTopicmapRenderer implements TopicmapRenderer {
010
011    @Override
012    public String getUri() {
013        // ### TODO: change to "dmx.topicmaps.default_topicmap"
014        return "dmx.webclient.default_topicmap_renderer";
015    }
016
017    @Override
018    public ChildTopicsModel initialTopicmapState(ModelFactory mf) {
019        return mf.newChildTopicsModel()
020            .put("dmx.topicmaps.translation", mf.newChildTopicsModel()
021                .put("dmx.topicmaps.translation_x", 0)
022                .put("dmx.topicmaps.translation_y", 0)
023            );
024    }
025}