public class VizTopicMapConfigurationManager extends VizConfigurationManager
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_TOPIC_NAME_LENGTH |
static Color |
DEFAULT_PANEL_BACKGROUND_COLOUR |
static int |
EDGE_ORIENTED |
static int |
EXPAND_NODE |
static int |
FILTER_DEFAULT |
static int |
FILTER_IN |
static int |
FILTER_OUT |
static int |
GO_TO_TOPIC |
static int |
LOOSE_ASSOCIATION_SCOPES |
static int |
NODE_ORIENTED |
protected static String |
NULL_TOPIC |
protected TopicIF |
nullTopic |
static int |
SET_FOCUS_NODE |
static int |
SHOW_ALL_ASSOCIATION_SCOPES |
static int |
STRICT_ASSOCIATION_SCOPES |
BASE, builder, DEFAULT_ASSOCIATION_TYPE, DEFAULT_TYPE, defaultAssociationType, defaultType, GENERAL_TOPIC, generalTopic, topicmap, UNTYPED, untypedTopic
Constructor and Description |
---|
VizTopicMapConfigurationManager()
Creates an empty configuration manager where everything is set to default.
|
VizTopicMapConfigurationManager(File tmfile)
Constructor initializes the configuration by loading a topic map from the
URL given in the parameter.
|
VizTopicMapConfigurationManager(URL tmurl)
Constructor initializes the configuration by loading a topic map from the
URL given in the parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
clearStartTopic() |
void |
clearTopic(TopicIF aTopic)
Clear the start topic if it was set.
|
boolean |
defaultOverrides(boolean isTopicType)
returns true iff the default type is set to verride autogenerated values.
|
Collection |
getAssociationScopeFilter() |
int |
getAssociationScopeFilterStrictness() |
Color |
getAssociationTypeColor(TopicIF type) |
TopicIF |
getAssociationTypeColorAutogeneratedTopic() |
TopicIF |
getAssociationTypeColorTopic() |
Font |
getAssociationTypeFont(TopicIF type) |
TopicIF |
getAssociationTypeFontTopic() |
int |
getAssociationTypeLineWeight(TopicIF selectedType) |
TopicIF |
getAssociationTypeLineWeightTopic() |
int |
getAssociationTypeShape(TopicIF selectedType) |
TopicIF |
getAssociationTypeShapeTopic() |
Font |
getDefaultFont() |
int |
getGeneralDoubleClick() |
int |
getGeneralLocalityAlgorithm() |
int |
getGeneralMotionKillerDelay() |
int |
getGeneralSingleClick() |
int |
getMaxTopicNameLength() |
TopicIF |
getOverrideColorsTopic() |
Color |
getPanelBackgroundColour() |
TopicIF |
getScopingTopic(TopicMapIF graphtm)
INTERNAL: Finds the scoping topic in the given topic map, and returns it.
|
TopicIF |
getScopingTopicHolder()
INTERNAL: Finds the scoping topic in the given topic map, and returns it.
|
protected TopicIF |
getSourceLocator() |
TopicIF |
getStartTopic(TopicMapIF graphtm)
INTERNAL: Finds the start topic in the given topic map, and returns it.
|
protected TopicIF |
getSubject() |
protected TopicIF |
getSubjectIndicator() |
Color |
getTopicTypeColor(TopicIF type) |
TopicIF |
getTopicTypeColorAutogeneratedTopic() |
TopicIF |
getTopicTypeColorTopic() |
TopicIF |
getTopicTypeExcludedTopic() |
TopicIF |
getTopicTypeFontTopic() |
TopicIF |
getTopicTypeIconTopic() |
int |
getTopicTypeShape(TopicIF topictype) |
int |
getTopicTypeShapePadding(TopicIF selectedType) |
TopicIF |
getTopicTypeShapePaddingTopic() |
TopicIF |
getTopicTypeShapeTopic() |
VizTopicTypePriorityConfigManager |
getTTPriorityManager() |
Font |
getTypeFont(TopicIF type) |
Icon |
getTypeIcon(TopicIF type) |
String |
getTypeIconFilename(TopicIF type) |
TopicIF |
getTypeInstanceType() |
int |
getTypeVisibility(TopicIF selectedType) |
TopicIF |
getTypeVisibleTopic() |
boolean |
getUsesDefault(TopicIF type,
boolean isTopicType)
returns true iff the given topic type is set to use default when it doesn't
its own colour.
|
boolean |
hasOccurrence(TopicIF topictype,
TopicIF type) |
protected void |
init() |
boolean |
isAssociationTypeVisible(TopicIF assoctype) |
boolean |
isInAssociationScopeFilter(TopicIF scope) |
boolean |
isMotionKillerEnabled() |
boolean |
isTopicTypeVisible(TopicIF assoctype) |
boolean |
isTypeExcluded(TopicIF aType) |
boolean |
isVisible(AssociationIF assoc) |
boolean |
isVisible(AssociationRoleIF role) |
boolean |
isVisible(TopicIF topic) |
Color |
lookupColor(TopicIF type,
TopicIF occtype)
Finds the color for this association or topic type that is stored in the
topic map.
|
boolean |
lookupVisible(TopicIF type,
TopicIF occtype,
TopicIF defType) |
boolean |
matchesFilter(Collection scope)
Checks if a given scope matches the association scope filter.
|
boolean |
matchesFilter(Collection scope,
Collection filter)
Checks if a given scope (collection of topics) matches a given filter
(another collection of topics).
|
Font |
parseFont(String fontString) |
void |
setAssociationScopeFilterStrictness(int strictness) |
void |
setAssociationTypeLineWeight(TopicIF type,
int i,
TopicMapView view)
Sets the line weight of the given association 'type' and updates 'view'
accordingly.
|
void |
setAssociationTypeShape(TopicIF type,
int i) |
void |
setAssociationTypeShape(TopicIF type,
int i,
TopicMapView view)
Sets the shape of the given association 'type' and updates 'view'
accordingly.
|
void |
setAssociationTypeVisible(TopicIF type,
boolean visible,
TopicMapView view)
Sets the given association 'type' to be visible and updates 'view'
accordingly.
|
void |
setAssociationTypeVisible(TopicIF type,
int visibility,
TopicMapView view)
Sets the given association 'type' be either filtered in, filtered out or to
use the filter setting of the default type.
|
void |
setColorToDefault(TopicIF type,
boolean topicType,
TopicMapView view)
Sets the color of a given topic/association 'type' to the default value
and updates 'view' accordingly.
|
void |
setFontToDefault(TopicIF type,
boolean topicType,
TopicMapView view)
Sets the font of a given topic/association 'type' to the default value
and updates 'view' accordingly.
|
void |
setGeneralDoubleClick(int anAction) |
void |
setGeneralLocalityAlgorithm(int anAction) |
void |
setGeneralSingleClick(int anAction) |
void |
setInAssociationScopeFilter(TopicIF scope,
boolean included) |
void |
setMaxTopicNameLength(int length) |
void |
setMotionKillerDelay(int seconds) |
void |
setMotionKillerEnabled(boolean value) |
void |
setPanelBackgroundColour(Color aColor) |
void |
setScopingTopic(TopicIF scope) |
void |
setStartTopic(TopicIF extstart)
Sets the start topic of the vizualization.
|
protected void |
setTopicReference(TopicIF topic,
TopicIF extstart,
String base) |
void |
setTopicTypeShape(TopicIF type,
int i) |
void |
setTopicTypeShape(TopicIF type,
int i,
TopicMapView view)
Sets the shape of the given topic 'type' and updates 'view' accordingly.
|
void |
setTopicTypeShapePadding(TopicIF type,
int i) |
void |
setTopicTypeShapePadding(TopicIF type,
int i,
TopicMapView view)
Sets the shape padding of the given topic 'type' and updates 'view'
accordingly.
|
void |
setTypeColor(TopicIF type,
Color c) |
void |
setTypeColor(TopicIF type,
Color c,
TopicMapView view)
Sets the colour of a given 'type' and updates 'view' accordingly.
|
void |
setTypeExcluded(TopicIF type) |
void |
setTypeExcluded(TopicIF type,
TopicMapView view)
Sets the given topic 'type' to be excluded and updates 'view' accordingly.
|
void |
setTypeFont(TopicIF type,
Font font) |
void |
setTypeFont(TopicIF type,
Font font,
TopicMapView view)
Sets the font of the given topic/association 'type' and updates 'view'
accordingly.
|
void |
setTypeIconFilename(TopicIF type,
String string) |
void |
setTypeIconFilename(TopicIF type,
String string,
TopicMapView view)
Sets the name of the icon file (optional) of the given topic 'type' and
updates 'view' accordingly.
|
void |
setTypeIncluded(TopicIF type) |
void |
setTypeIncluded(TopicIF type,
TopicMapView view)
Sets the given topic 'type' to be included and updates 'view' accordingly.
|
void |
setTypeLineWeight(TopicIF type,
int i) |
void |
setTypeVisibility(TopicIF type,
int visibility,
TopicMapView view)
Sets the given topic 'type' be either filtered in, filtered out or to
use the filter setting of the default type.
|
void |
setTypeVisible(TopicIF type,
boolean visible) |
void |
setTypeVisible(TopicIF type,
boolean visible,
TopicMapView view)
Sets the given topic 'type' to be visible and updates 'view' accordingly.
|
void |
setTypeVisible(TopicIF type,
int visibility) |
boolean |
shouldDisplayRoleHoverHelp() |
void |
shouldDisplayRoleHoverHelp(boolean value) |
boolean |
shouldDisplayScopedAssociationNames() |
void |
shouldDisplayScopedAssociationNames(boolean value) |
getConfigTopic, getOccurrence, getOccurrenceValue, getOccurrenceValue, getOccurrenceValue, getTopic, getTopic, getTopicMap, removeOccurence, removeOccurrence, save, setOccurenceValue, setOccurenceValue, setOccurrenceValue
public static final Color DEFAULT_PANEL_BACKGROUND_COLOUR
public static final int NODE_ORIENTED
public static final int EDGE_ORIENTED
public static final int EXPAND_NODE
public static final int SET_FOCUS_NODE
public static final int GO_TO_TOPIC
public static final int DEFAULT_MAX_TOPIC_NAME_LENGTH
public static final int SHOW_ALL_ASSOCIATION_SCOPES
public static final int LOOSE_ASSOCIATION_SCOPES
public static final int STRICT_ASSOCIATION_SCOPES
protected static final String NULL_TOPIC
protected TopicIF nullTopic
public static final int FILTER_DEFAULT
public static final int FILTER_OUT
public static final int FILTER_IN
public VizTopicMapConfigurationManager(File tmfile) throws IOException
IOException
public VizTopicMapConfigurationManager(URL tmurl) throws IOException
IOException
public VizTopicMapConfigurationManager()
protected void init()
init
in class VizConfigurationManager
public TopicIF getOverrideColorsTopic()
public TopicIF getTopicTypeShapeTopic()
public TopicIF getAssociationTypeColorAutogeneratedTopic()
public TopicIF getTopicTypeColorAutogeneratedTopic()
public TopicIF getAssociationTypeShapeTopic()
public TopicIF getTopicTypeShapePaddingTopic()
public TopicIF getTopicTypeIconTopic()
public TopicIF getTopicTypeFontTopic()
public TopicIF getTopicTypeColorTopic()
public TopicIF getAssociationTypeColorTopic()
public TopicIF getTypeVisibleTopic()
public TopicIF getTopicTypeExcludedTopic()
public TopicIF getAssociationTypeLineWeightTopic()
public TopicIF getAssociationTypeFontTopic()
public VizTopicTypePriorityConfigManager getTTPriorityManager()
public boolean defaultOverrides(boolean isTopicType)
isTopicType
- Set to true to check for the association default type,
and false for the topic default type.public boolean getUsesDefault(TopicIF type, boolean isTopicType)
type
- The type to check.isTopicType
- public int getTopicTypeShape(TopicIF topictype)
public Font getDefaultFont()
public void setTypeColor(TopicIF type, Color c, TopicMapView view)
public void setColorToDefault(TopicIF type, boolean topicType, TopicMapView view)
public void setTypeVisibility(TopicIF type, int visibility, TopicMapView view)
public void setAssociationTypeVisible(TopicIF type, int visibility, TopicMapView view)
public void setTypeVisible(TopicIF type, boolean visible, TopicMapView view)
public void setAssociationTypeVisible(TopicIF type, boolean visible, TopicMapView view)
public void setTopicTypeShape(TopicIF type, int i, TopicMapView view)
public void setAssociationTypeShape(TopicIF type, int i, TopicMapView view)
public void setFontToDefault(TopicIF type, boolean topicType, TopicMapView view)
public void setTypeFont(TopicIF type, Font font, TopicMapView view)
public void setAssociationTypeLineWeight(TopicIF type, int i, TopicMapView view)
public void setTopicTypeShapePadding(TopicIF type, int i, TopicMapView view)
public void setTypeIconFilename(TopicIF type, String string, TopicMapView view)
public void setTypeIncluded(TopicIF type, TopicMapView view)
public void setTypeExcluded(TopicIF type, TopicMapView view)
public void setTopicTypeShape(TopicIF type, int i)
public void setAssociationTypeShape(TopicIF type, int i)
public void setTypeLineWeight(TopicIF type, int i)
public void setTopicTypeShapePadding(TopicIF type, int i)
public void setTypeVisible(TopicIF type, int visibility)
public void setTypeVisible(TopicIF type, boolean visible)
public boolean isAssociationTypeVisible(TopicIF assoctype)
public boolean isTopicTypeVisible(TopicIF assoctype)
public boolean isVisible(TopicIF topic)
public boolean isVisible(AssociationIF assoc)
public boolean matchesFilter(Collection scope)
scope
- The scope to check for matching.public boolean matchesFilter(Collection scope, Collection filter)
scope
- The scope to match with the filter.filter
- The filter for the scope to be matched with.public boolean isVisible(AssociationRoleIF role)
public Color lookupColor(TopicIF type, TopicIF occtype)
public TopicIF getStartTopic(TopicMapIF graphtm)
public TopicIF getScopingTopic(TopicMapIF graphtm)
public TopicIF getScopingTopicHolder()
public void setStartTopic(TopicIF extstart)
public void clearTopic(TopicIF aTopic)
public TopicIF getTypeInstanceType()
public int getTypeVisibility(TopicIF selectedType)
public int getAssociationTypeShape(TopicIF selectedType)
public int getAssociationTypeLineWeight(TopicIF selectedType)
public int getTopicTypeShapePadding(TopicIF selectedType)
public boolean shouldDisplayRoleHoverHelp()
public boolean isMotionKillerEnabled()
public boolean shouldDisplayScopedAssociationNames()
public void shouldDisplayRoleHoverHelp(boolean value)
public void setMotionKillerEnabled(boolean value)
public void shouldDisplayScopedAssociationNames(boolean value)
public void setPanelBackgroundColour(Color aColor)
public Color getPanelBackgroundColour()
public void setGeneralSingleClick(int anAction)
public void setGeneralLocalityAlgorithm(int anAction)
public void setMotionKillerDelay(int seconds)
public void setMaxTopicNameLength(int length)
public void setGeneralDoubleClick(int anAction)
public int getGeneralDoubleClick()
public int getGeneralSingleClick()
public int getGeneralLocalityAlgorithm()
public int getGeneralMotionKillerDelay()
public int getMaxTopicNameLength()
public void setTypeIncluded(TopicIF type)
public void setTypeExcluded(TopicIF type)
public boolean isTypeExcluded(TopicIF aType)
public void setScopingTopic(TopicIF scope)
public void clearStartTopic()
protected TopicIF getSourceLocator()
protected TopicIF getSubject()
protected TopicIF getSubjectIndicator()
public void setInAssociationScopeFilter(TopicIF scope, boolean included)
public boolean isInAssociationScopeFilter(TopicIF scope)
public void setAssociationScopeFilterStrictness(int strictness)
public int getAssociationScopeFilterStrictness()
public Collection getAssociationScopeFilter()