public class CopyTopics extends AbstractWandoraTool implements WandoraTool
Constructor and Description |
---|
CopyTopics() |
CopyTopics(java.util.Collection topics,
int includeOrders) |
CopyTopics(java.util.Collection topics,
int copyOrders,
int includeOrders) |
CopyTopics(Context context,
int includeOrders) |
CopyTopics(Context context,
int copyOrders,
int includeOrders) |
CopyTopics(int includeOrders) |
CopyTopics(int copyOrders,
int includeOrders) |
CopyTopics(Wandora admin,
java.util.Collection topics) |
CopyTopics(Wandora admin,
java.util.Collection topics,
int includeOrders) |
CopyTopics(Wandora admin,
java.util.Collection topics,
int copyOrders,
int includeOrders) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Wandora wandora,
Context context)
Runs the tool.
|
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
private java.lang.String |
getDisplayName(Topic t,
java.lang.String lang) |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
private java.util.ArrayList<Topic> |
getOccurrenceTypes(TopicMap tm) |
private java.lang.String |
getTextData(Topic t,
Topic type,
java.lang.String versions) |
java.lang.String |
getTopicTypeName() |
protected void |
initialize(int copyOrders,
int includeOrders) |
private java.lang.String |
makeDistributionVector(LayeredTopic topic,
ContainerTopicMap tm) |
boolean |
requiresRefresh()
If any visible topic has been changed during tool execution GUI is
automatically refreshed.
|
void |
setTopics(java.util.Collection topics) |
void |
setTopics(Topic[] topicArray) |
private java.lang.String |
stringSerialize(java.util.ArrayList<java.lang.String> lines) |
void |
work() |
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, getType, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isConfigurable, isRunning, isRunning, lockLog, log, log, log, log, run, runInOwnThread, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, execute, execute, getContext, getToolMenuItem, getType, hlog, initialize, isConfigurable, isRunning, log, log, log, log, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public static final boolean OUTPUT_LOG
public static java.lang.String NEW_LINE_SUBSTITUTE_STRING
public static java.lang.String TAB_SUBSTITUTE_STRING
public static java.lang.String NO_BASENAME_STRING
public static final int COPY_BASENAMES
public static final int COPY_SIS
public static final int INCLUDE_NOTHING
public static final int INCLUDE_NAMES
public static final int INCLUDE_NAMES_AND_SCOPES
public static final int INCLUDE_SLS
public static final int INCLUDE_SIS
public static final int INCLUDE_CLASSES
public static final int INCLUDE_INSTANCES
public static final int INCLUDE_PLAYERS
public static final int INCLUDE_PLAYED_ROLES
public static final int INCLUDE_OCCURRENCES
public static final int INCLUDE_ALL_OCCURRENCES
public static final int INCLUDE_OCCURRENCE_TYPES
public static final int INCLUDE_ASSOCIATION_TYPES
public static final int INCLUDE_SI_COUNT
public static final int INCLUDE_CLASS_COUNT
public static final int INCLUDE_INSTANCE_COUNT
public static final int INCLUDE_ASSOCIATION_COUNT
public static final int INCLUDE_TYPED_ASSOCIATION_COUNT
public static final int INCLUDE_OCCURRENCE_COUNT
public static final int INCLUDE_LAYER_DISTRIBUTION
public static final int INCLUDE_CLUSTER_COEFFICIENT
public int copyOrders
public int includeOrders
Topic associationType
Topic role
Topic occurrenceType
java.util.ArrayList<Topic> allOccurrenceTypes
java.util.LinkedHashSet<Topic> scopeMemory
Wandora wandora
java.util.Iterator topics
public CopyTopics() throws TopicMapException
TopicMapException
public CopyTopics(Wandora admin, java.util.Collection topics) throws TopicMapException
TopicMapException
public CopyTopics(Wandora admin, java.util.Collection topics, int includeOrders) throws TopicMapException
TopicMapException
public CopyTopics(Wandora admin, java.util.Collection topics, int copyOrders, int includeOrders) throws TopicMapException
TopicMapException
public CopyTopics(java.util.Collection topics, int includeOrders)
public CopyTopics(java.util.Collection topics, int copyOrders, int includeOrders)
public CopyTopics(int copyOrders, int includeOrders)
public CopyTopics(int includeOrders)
public CopyTopics(Context context, int copyOrders, int includeOrders)
public CopyTopics(Context context, int includeOrders)
protected void initialize(int copyOrders, int includeOrders)
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractWandoraTool
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractWandoraTool
public java.lang.String getDescription()
AbstractWandoraTool
getDescription
in interface WandoraTool
getDescription
in class AbstractWandoraTool
public java.lang.String getTopicTypeName()
public boolean requiresRefresh()
AbstractWandoraTool
If any visible topic has been changed during tool execution GUI is automatically refreshed. If tool doesn't change topics but GUI still requires refresh, tool should override this method and return true.
For example tools that alter the GUI but change no topics should return true.
requiresRefresh
in interface WandoraTool
requiresRefresh
in class AbstractWandoraTool
public void setTopics(java.util.Collection topics)
public void setTopics(Topic[] topicArray)
public void execute(Wandora wandora, Context context)
WandoraTool
execute
in interface WandoraTool
public void work()
private java.lang.String stringSerialize(java.util.ArrayList<java.lang.String> lines)
private java.lang.String makeDistributionVector(LayeredTopic topic, ContainerTopicMap tm) throws TopicMapException
TopicMapException
private java.lang.String getDisplayName(Topic t, java.lang.String lang) throws TopicMapException
TopicMapException
private java.lang.String getTextData(Topic t, Topic type, java.lang.String versions) throws TopicMapException
TopicMapException
private java.util.ArrayList<Topic> getOccurrenceTypes(TopicMap tm) throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team