Class VizConfigurationManager

java.lang.Object
net.ontopia.topicmaps.viz.VizConfigurationManager
Direct Known Subclasses:
VizGeneralConfigurationManager, VizTopicMapConfigurationManager

public abstract class VizConfigurationManager extends Object
INTERNAL: Abstract configuration manager class.
  • Field Details

  • Constructor Details

    • VizConfigurationManager

      public VizConfigurationManager()
      Creates an empty configuration manager where everything is set to default.
    • VizConfigurationManager

      public VizConfigurationManager(File tmfile) throws IOException
      Constructor initializes the configuration by loading a topic map from the URL given in the parameter.
      Throws:
      IOException
    • VizConfigurationManager

      public VizConfigurationManager(URL tmurl) throws IOException
      Constructor initializes the configuration by loading a topic map from the URL given in the parameter.
      Throws:
      IOException
  • Method Details

    • getOccurrence

      protected OccurrenceIF getOccurrence(TopicIF topic, TopicIF type)
      Returns the occurrence of the given type, if there is one.
    • removeOccurrence

      protected boolean removeOccurrence(TopicIF topic, TopicIF type)
      Removes the occurrence of a given type from a given configuration topic. Returns true iff the occurrence was found and removed.
    • getTopic

      protected TopicIF getTopic(String indicator, String basename)
      Looks up a topic by subject indicator, creating it if it can't be found. If a new topic is created, assign "basename" as a basename.
    • getTopic

      protected TopicIF getTopic(String indicator)
      Looks up a topic by subject indicator, creating it if it can't be found.
    • getTopicMap

      public TopicMapIF getTopicMap()
    • removeOccurence

      protected void removeOccurence(TopicIF type, TopicIF occtype)
    • setOccurenceValue

      protected void setOccurenceValue(TopicIF type, TopicIF occtype, String value)
    • setOccurrenceValue

      protected void setOccurrenceValue(TopicIF type, TopicIF occtype, int integer)
      Sets the Shape setting for this association or topic type in the topic map.
    • setOccurenceValue

      protected void setOccurenceValue(TopicIF type, TopicIF occtype, boolean value)
      Sets the visibility setting for this association or topic type in the topic map.
    • getOccurrenceValue

      public String getOccurrenceValue(TopicIF type, TopicIF occtype)
    • getOccurrenceValue

      protected boolean getOccurrenceValue(TopicIF type, TopicIF occtype, boolean defaultBoolean)
    • getOccurrenceValue

      protected int getOccurrenceValue(TopicIF type, TopicIF occtype, int defaultInt)
    • save

      public void save(File f) throws IOException
      Throws:
      IOException
    • init

      protected void init()
    • getConfigTopic

      protected TopicIF getConfigTopic(TopicIF real)
      Looks up the corresponding topic (from the visualized topic map) in the configuration topic map, creating one if it doesn't exist.