public abstract class VizConfigurationManager extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
BASE |
protected TopicMapBuilderIF |
builder |
protected static String |
DEFAULT_ASSOCIATION_TYPE |
protected static String |
DEFAULT_TYPE |
protected TopicIF |
defaultAssociationType |
protected TopicIF |
defaultType |
protected static String |
GENERAL_TOPIC |
protected TopicIF |
generalTopic |
protected TopicMapIF |
topicmap |
protected static String |
UNTYPED |
protected TopicIF |
untypedTopic |
Constructor and Description |
---|
VizConfigurationManager()
Creates 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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected OccurrenceIF |
getOccurrence(TopicIF topic,
TopicIF type)
Returns the occurrence of the given type, if there is one.
|
String |
getOccurrenceValue(TopicIF type,
TopicIF occtype) |
protected boolean |
getOccurrenceValue(TopicIF type,
TopicIF occtype,
boolean defaultBoolean) |
protected int |
getOccurrenceValue(TopicIF type,
TopicIF occtype,
int defaultInt) |
protected TopicIF |
getTopic(String indicator)
Looks up a topic by subject indicator, creating it if it can't be found.
|
protected TopicIF |
getTopic(String indicator,
String basename)
Looks up a topic by subject indicator, creating it if it can't be found.
|
TopicMapIF |
getTopicMap() |
protected void |
init() |
protected void |
removeOccurence(TopicIF type,
TopicIF occtype) |
protected boolean |
removeOccurrence(TopicIF topic,
TopicIF type)
Removes the occurrence of a given type from a given configuration topic.
|
void |
save(File f) |
protected void |
setOccurenceValue(TopicIF type,
TopicIF occtype,
boolean value)
Sets the visibility setting for this association or topic type in the topic
map.
|
protected void |
setOccurenceValue(TopicIF type,
TopicIF occtype,
String value) |
protected void |
setOccurrenceValue(TopicIF type,
TopicIF occtype,
int integer)
Sets the Shape setting for this association or topic type in the topic map.
|
protected TopicMapBuilderIF builder
protected TopicMapIF topicmap
protected static final String BASE
protected TopicIF generalTopic
protected TopicIF untypedTopic
protected TopicIF defaultType
protected TopicIF defaultAssociationType
protected static final String GENERAL_TOPIC
protected static final String DEFAULT_TYPE
protected static final String UNTYPED
protected static final String DEFAULT_ASSOCIATION_TYPE
public VizConfigurationManager()
public VizConfigurationManager(File tmfile) throws IOException
IOException
public VizConfigurationManager(URL tmurl) throws IOException
IOException
protected OccurrenceIF getOccurrence(TopicIF topic, TopicIF type)
protected boolean removeOccurrence(TopicIF topic, TopicIF type)
protected TopicIF getTopic(String indicator, String basename)
protected TopicIF getTopic(String indicator)
public TopicMapIF getTopicMap()
protected void setOccurrenceValue(TopicIF type, TopicIF occtype, int integer)
protected void setOccurenceValue(TopicIF type, TopicIF occtype, boolean value)
protected boolean getOccurrenceValue(TopicIF type, TopicIF occtype, boolean defaultBoolean)
public void save(File f) throws IOException
IOException
protected void init()