Package net.ontopia.topicmaps.viz
Class VizConfigurationManager
java.lang.Object
net.ontopia.topicmaps.viz.VizConfigurationManager
- Direct Known Subclasses:
VizGeneralConfigurationManager,VizTopicMapConfigurationManager
INTERNAL: Abstract configuration manager class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected TopicMapBuilderIFprotected static final Stringprotected static final Stringprotected TopicIFprotected TopicIFprotected static final Stringprotected TopicIFprotected TopicMapIFprotected static final Stringprotected TopicIF -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty configuration manager where everything is set to default.VizConfigurationManager(File tmfile) Constructor initializes the configuration by loading a topic map from the URL given in the parameter.VizConfigurationManager(URL tmurl) Constructor initializes the configuration by loading a topic map from the URL given in the parameter. -
Method Summary
Modifier and TypeMethodDescriptionprotected TopicIFgetConfigTopic(TopicIF real) Looks up the corresponding topic (from the visualized topic map) in the configuration topic map, creating one if it doesn't exist.protected OccurrenceIFgetOccurrence(TopicIF topic, TopicIF type) Returns the occurrence of the given type, if there is one.getOccurrenceValue(TopicIF type, TopicIF occtype) protected booleangetOccurrenceValue(TopicIF type, TopicIF occtype, boolean defaultBoolean) protected intgetOccurrenceValue(TopicIF type, TopicIF occtype, int defaultInt) protected TopicIFLooks up a topic by subject indicator, creating it if it can't be found.protected TopicIFLooks up a topic by subject indicator, creating it if it can't be found.protected voidinit()protected voidremoveOccurence(TopicIF type, TopicIF occtype) protected booleanremoveOccurrence(TopicIF topic, TopicIF type) Removes the occurrence of a given type from a given configuration topic.voidprotected voidsetOccurenceValue(TopicIF type, TopicIF occtype, boolean value) Sets the visibility setting for this association or topic type in the topic map.protected voidsetOccurenceValue(TopicIF type, TopicIF occtype, String value) protected voidsetOccurrenceValue(TopicIF type, TopicIF occtype, int integer) Sets the Shape setting for this association or topic type in the topic map.
-
Field Details
-
builder
-
topicmap
-
BASE
- See Also:
-
generalTopic
-
untypedTopic
-
defaultType
-
defaultAssociationType
-
GENERAL_TOPIC
- See Also:
-
DEFAULT_TYPE
- See Also:
-
UNTYPED
- See Also:
-
DEFAULT_ASSOCIATION_TYPE
- See Also:
-
-
Constructor Details
-
VizConfigurationManager
public VizConfigurationManager()Creates an empty configuration manager where everything is set to default. -
VizConfigurationManager
Constructor initializes the configuration by loading a topic map from the URL given in the parameter.- Throws:
IOException
-
VizConfigurationManager
Constructor initializes the configuration by loading a topic map from the URL given in the parameter.- Throws:
IOException
-
-
Method Details
-
getOccurrence
Returns the occurrence of the given type, if there is one. -
removeOccurrence
Removes the occurrence of a given type from a given configuration topic. Returns true iff the occurrence was found and removed. -
getTopic
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
Looks up a topic by subject indicator, creating it if it can't be found. -
getTopicMap
-
removeOccurence
-
setOccurenceValue
-
setOccurrenceValue
Sets the Shape setting for this association or topic type in the topic map. -
setOccurenceValue
Sets the visibility setting for this association or topic type in the topic map. -
getOccurrenceValue
-
getOccurrenceValue
-
getOccurrenceValue
-
save
- Throws:
IOException
-
init
protected void init() -
getConfigTopic
Looks up the corresponding topic (from the visualized topic map) in the configuration topic map, creating one if it doesn't exist.
-