|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.viz.VizConfigurationManager
public abstract class VizConfigurationManager
INTERNAL: Abstract configuration manager class.
Field Summary | |
---|---|
protected static java.lang.String |
BASE
|
protected TopicMapBuilderIF |
builder
|
protected static java.lang.String |
DEFAULT_ASSOCIATION_TYPE
|
protected static java.lang.String |
DEFAULT_TYPE
|
protected TopicIF |
defaultAssociationType
|
protected TopicIF |
defaultType
|
protected static java.lang.String |
GENERAL_TOPIC
|
protected TopicIF |
generalTopic
|
protected TopicMapIF |
topicmap
|
protected static java.lang.String |
UNTYPED
|
protected TopicIF |
untypedTopic
|
Constructor Summary | |
---|---|
VizConfigurationManager()
Creates an empty configuration manager where everything is set to default. |
|
VizConfigurationManager(java.io.File tmfile)
Constructor initializes the configuration by loading a topic map from the URL given in the parameter. |
|
VizConfigurationManager(java.lang.String tmurl)
Constructor initializes the configuration by loading a topic map from the URL given in the parameter. |
Method Summary | |
---|---|
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. |
java.lang.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(java.lang.String indicator)
Looks up a topic by subject indicator, creating it if it can't be found. |
protected TopicIF |
getTopic(java.lang.String indicator,
java.lang.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(java.io.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,
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TopicMapBuilderIF builder
protected TopicMapIF topicmap
protected static final java.lang.String BASE
protected TopicIF generalTopic
protected TopicIF untypedTopic
protected TopicIF defaultType
protected TopicIF defaultAssociationType
protected static final java.lang.String GENERAL_TOPIC
protected static final java.lang.String DEFAULT_TYPE
protected static final java.lang.String UNTYPED
protected static final java.lang.String DEFAULT_ASSOCIATION_TYPE
Constructor Detail |
---|
public VizConfigurationManager()
public VizConfigurationManager(java.io.File tmfile) throws java.io.IOException
java.io.IOException
public VizConfigurationManager(java.lang.String tmurl) throws java.io.IOException
java.io.IOException
Method Detail |
---|
protected OccurrenceIF getOccurrence(TopicIF topic, TopicIF type)
protected boolean removeOccurrence(TopicIF topic, TopicIF type)
protected TopicIF getTopic(java.lang.String indicator, java.lang.String basename)
protected TopicIF getTopic(java.lang.String indicator)
public TopicMapIF getTopicMap()
protected void removeOccurence(TopicIF type, TopicIF occtype)
protected void setOccurenceValue(TopicIF type, TopicIF occtype, java.lang.String value)
protected void setOccurrenceValue(TopicIF type, TopicIF occtype, int integer)
protected void setOccurenceValue(TopicIF type, TopicIF occtype, boolean value)
public java.lang.String getOccurrenceValue(TopicIF type, TopicIF occtype)
protected boolean getOccurrenceValue(TopicIF type, TopicIF occtype, boolean defaultBoolean)
protected int getOccurrenceValue(TopicIF type, TopicIF occtype, int defaultInt)
public void save(java.io.File f) throws java.io.IOException
java.io.IOException
protected void init()
protected TopicIF getConfigTopic(TopicIF real)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |