public class TaskGraphViewManager
extends java.lang.Object
Constructor and Description |
---|
TaskGraphViewManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addTaskGraphView(TaskGraphView view)
Adds the taskgraph view to the available views list
|
void |
clearTaskGraphView(TaskGraph taskgraph)
Returns the view for the specified taskgraph to the default
|
static TaskGraphView |
getDefaultTaskgraphView() |
static javax.swing.JPopupMenu |
getMultipleSelectionPopup(TaskGraph taskgraph,
Task[] tasks) |
static javax.swing.JPopupMenu |
getOpenGroupPopup(TaskGraph taskgraph) |
static javax.swing.Action |
getTaskAction(Task task) |
static TaskComponent |
getTaskComponent(Task task)
The task component used to represent the specified task
|
static TaskGraphPanel |
getTaskGraphPanel(TaskGraph taskgraph,
TrianaClient client)
The task component used to represent the specified task
|
TaskGraphView |
getTaskGraphView(TaskGraph taskgraph)
Returns the current view for the specified taskgraph
|
static TaskGraphView[] |
getTaskGraphViews() |
static javax.swing.Icon |
getTreeIcon(Tool tool) |
static javax.swing.JPopupMenu |
getTreePopup(Tool tool) |
static java.lang.String |
getTreeToolTip(Tool tool,
boolean extended) |
static javax.swing.Action |
getUpdateAction(Task task,
java.lang.String action) |
static javax.swing.JPopupMenu |
getWorkspacePopup(Task task) |
static java.lang.String |
getWorkspaceToolTip(Task task,
boolean extended) |
static boolean |
isUpdateIcon(Task task,
java.lang.String action) |
static void |
registerTaskGraphView(java.lang.String toolclass,
TaskGraphView view)
Registers a TaskGraphView for a particular taskgraph tool clas.
|
static void |
removeTaskGraphView(TaskGraphView view)
Removes the taskgraph view from the available views list
|
static void |
setDefaultTaskGraphView(TaskGraphView view)
Sets the default taskgraph view
|
void |
setTaskGraphView(TaskGraph taskgraph,
TaskGraphView view)
Explicitally sets the view for the specified taskgraph
|
static void |
unregisterTaskGraphView(java.lang.String toolclass)
Unregisters the TaskGraphView for a particular taskgraph tool class.
|
public static TaskGraphView getDefaultTaskgraphView()
public static void setDefaultTaskGraphView(TaskGraphView view)
public static void registerTaskGraphView(java.lang.String toolclass, TaskGraphView view)
public static void unregisterTaskGraphView(java.lang.String toolclass)
public static void addTaskGraphView(TaskGraphView view)
public static void removeTaskGraphView(TaskGraphView view)
public static TaskGraphView[] getTaskGraphViews()
public void setTaskGraphView(TaskGraph taskgraph, TaskGraphView view)
public void clearTaskGraphView(TaskGraph taskgraph)
public TaskGraphView getTaskGraphView(TaskGraph taskgraph)
public static javax.swing.Icon getTreeIcon(Tool tool)
public static java.lang.String getTreeToolTip(Tool tool, boolean extended)
public static javax.swing.JPopupMenu getTreePopup(Tool tool)
public static java.lang.String getWorkspaceToolTip(Task task, boolean extended)
public static javax.swing.JPopupMenu getWorkspacePopup(Task task)
public static javax.swing.JPopupMenu getOpenGroupPopup(TaskGraph taskgraph)
public static javax.swing.JPopupMenu getMultipleSelectionPopup(TaskGraph taskgraph, Task[] tasks)
public static javax.swing.Action getTaskAction(Task task)
public static TaskComponent getTaskComponent(Task task)
public static boolean isUpdateIcon(Task task, java.lang.String action)
action
- the update action (e.g. INCREASE_INPUT_NODES_ACTION as defined in UpdateActionConstants)public static javax.swing.Action getUpdateAction(Task task, java.lang.String action)
action
- the update action (e.g. INCREASE_INPUT_NODES_ACTION as defined in UpdateActionConstants)public static TaskGraphPanel getTaskGraphPanel(TaskGraph taskgraph, TrianaClient client)