001package de.deepamehta.core.model.topicmaps;
002
003import de.deepamehta.core.model.TopicModel;
004
005
006
007/**
008 * A topic viewmodel as contained in a topicmap viewmodel.
009 * <p>
010 * That is a generic topic model enriched by view properties. Standard view properties are "dm4.topicmaps.x",
011 * "dm4.topicmaps.y", and "dm4.topicmaps.visibility". Additional view properties can be added by plugins (by
012 * implementing a Viewmodel Customizer).
013 */
014public interface TopicViewModel extends TopicModel {
015
016    ViewProperties getViewProperties();
017
018    // ---
019
020    /**
021     * Convencience method to access the "dm4.topicmaps.x" standard view property.
022     */
023    int getX();
024
025    /**
026     * Convencience method to access the "dm4.topicmaps.y" standard view property.
027     */
028    int getY();
029
030    /**
031     * Convencience method to access the "dm4.topicmaps.visibility" standard view property.
032     */
033    boolean getVisibility();
034}