T - the type of the Gantt chartpublic abstract class AbstractGanttChartActionMap<T extends AbstractGanttChart> extends ActionMap implements IGanttChartActionMap
AbstractGanttChartInputMap,
ActionSelector,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_HIGHLIGHTED_OBJECTS_ACTION
A constant used as the ID for an action that adds timeline objects to the
set of highlighted objects.
|
static String |
CATEGORY_CHART
The name used for the category under which all actions are filed that are
related to the layer container.
|
static String |
CATEGORY_OTHER
The name used for the category under which all actions are filed that are
not directly associated with the table, the timeline, or the layer
container.
|
static String |
CATEGORY_TABLE
The name used for the category under which all actions are filed that are
related to the tree table.
|
static String |
CATEGORY_TIMELINE
The name used for the category under which all actions are filed that are
related to the timeline.
|
static String |
CLEAR_HIGHLIGHTED_OBJECTS_ACTION
A constant used as the ID for an action that removes all timeline objects
from the set of highlighted objects.
|
static String |
DELETE_NODE_ACTION
A constant used as the ID for an action that deletes the currently
selected tree nodes.
|
static String |
DELETE_TIMELINE_OBJECTS_ACTION
A constant used as the ID for an action that deletes the currently
selected timeline objects.
|
static String |
GRID_ACTION
A constant used as the ID for an action that toggles the grid lines.
|
static String |
INDENT_NODES_ACTION
A constant used as the ID for an action that indents tree nodes.
|
static String |
INSERT_NODE_ACTION
A constant used as the ID for an action that inserts tree nodes.
|
static String |
MOVE_FOCUS_ABOVE_ACTION
A constant used as the ID for an action that moves the focus to the cell
above the currently focused table cell.
|
static String |
MOVE_FOCUS_BELOW_ACTION
A constant used as the ID for an action that moves the focus to the cell
below the currently focused table cell.
|
static String |
MOVE_FOCUS_BOTTOM_ACTION
A constant used as the ID for an action that moves the focus to the last
table cell in the key column.
|
static String |
MOVE_FOCUS_HOME_ACTION
A constant used as the ID for an action that moves the focus to the first
table cell in the key column.
|
static String |
MOVE_FOCUS_NEXT_ACTION
A constant used as the ID for an action that moves the focus to the next
table cell.
|
static String |
MOVE_FOCUS_PAGE_DOWN_ACTION
A constant used as the ID for an action that moves the focus to a cell
below so that the table displays the next page.
|
static String |
MOVE_FOCUS_PAGE_UP_ACTION
A constant used as the ID for an action that moves the focus to a cell
below so that the table displays the previous page.
|
static String |
MOVE_FOCUS_PREVIOUS_ACTION
A constant used as the ID for an action that moves the focus to the
previous table cell.
|
static String |
OUTDENT_NODES_ACTION
A constant used as the ID for an action that "outdents" tree nodes.
|
static String |
REDO_ACTION
A constant used as the ID for an action that invokes a redo on the
command stack.
|
static String |
REMOVE_HIGHLIGHTED_OBJECTS_ACTION
A constant used as the ID for an action that removes timeline objects
from the set of highlighted objects.
|
static String |
SCROLL_TIMELINE_LEFT_ACTION
A constant used as the ID for an action that scrolls the timeline to the
left.
|
static String |
SCROLL_TIMELINE_LEFT_FAST_ACTION
A constant used as the ID for an action that scrolls the timeline to the
left in fast mode.
|
static String |
SCROLL_TIMELINE_RIGHT_ACTION
A constant used as the ID for an action that scrolls the timeline to the
right.
|
static String |
SCROLL_TIMELINE_RIGHT_FAST_ACTION
A constant used as the ID for an action that scrolls the timeline to the
left in fast mode.
|
static String |
SELECT_ROWS_DOWNWARD_ACTION
A constant used as the ID for an action that adds the currently focused
table row to the selection and then moves the focus up one row.
|
static String |
SELECT_ROWS_UPWARD_ACTION
A constant used as the ID for an action that adds the currently focused
table row to the selection and then moves the focus up one row.
|
static String |
TOGGLE_CROSSHAIR_ACTION
A constant used as the ID for an action that toggles the crosshair
cursor.
|
static String |
TOGGLE_EVENTLINE_ACTION
A constant used as the ID for an action that toggles the visibility of
the eventline.
|
static String |
TOGGLE_NODE_ACTION
A constant used as the ID for an action that expands / collapses the
currently focused tree node.
|
static String |
UNDO_ACTION
A constant used as the ID for an action that invokes an undo on the
command stack.
|
static String |
ZOOM_IN_ACTION
A constant used as the ID for an action that performs a zoom in.
|
static String |
ZOOM_OUT_ACTION
A constant used as the ID for an action that performs a zoom out.
|
| Constructor and Description |
|---|
AbstractGanttChartActionMap(T gc)
Constructs a new action map for the given Gantt chart by invoking
ActionMap.put(Object, javax.swing.Action) for each action ID defined in
this class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(String category)
Adds a category name to the map.
|
void |
addCategoryAction(String category,
String actionID)
Adds an action ID to the given category.
|
Iterator<String> |
getCategories()
Returns the names of the action categories.
|
Iterator<String> |
getCategoryActions(String category)
Returns the action IDs that belong to the given group.
|
protected void |
initCategoryActionMap()
Fills the category/action map with mappings by invoking
addCategoryAction(String, String) for each action ID defined in
this class. |
void |
removeCategory(String category)
Removes a category name from the map.
|
void |
removeCategoryAction(String category,
String actionID)
Removes an action from a category.
|
public static final String GRID_ACTION
GridAction.public static final String ZOOM_IN_ACTION
ZoomInAction.public static final String ZOOM_OUT_ACTION
ZoomOutAction.public static final String TOGGLE_CROSSHAIR_ACTION
CrosshairAction.public static final String TOGGLE_EVENTLINE_ACTION
EventlineAction.public static final String ADD_HIGHLIGHTED_OBJECTS_ACTION
AddHighlightedTimelineObjectsAction.public static final String REMOVE_HIGHLIGHTED_OBJECTS_ACTION
RemoveHighlightedTimelineObjectsAction.public static final String CLEAR_HIGHLIGHTED_OBJECTS_ACTION
ClearHighlightedTimelineObjectsAction.public static final String DELETE_TIMELINE_OBJECTS_ACTION
DeleteTimelineObjectAction.public static final String DELETE_NODE_ACTION
DeleteNodeAction.public static final String SELECT_ROWS_DOWNWARD_ACTION
SelectRowsAction.public static final String SELECT_ROWS_UPWARD_ACTION
SelectRowsAction.public static final String INDENT_NODES_ACTION
IndentNodeAction.public static final String INSERT_NODE_ACTION
InsertNodeAction.public static final String OUTDENT_NODES_ACTION
OutdentNodeAction.public static final String UNDO_ACTION
UndoAction.public static final String REDO_ACTION
RedoAction.public static final String MOVE_FOCUS_PREVIOUS_ACTION
MoveFocusAction in combination with MoveFocusAction.Direction.PREVIOUS.public static final String MOVE_FOCUS_NEXT_ACTION
MoveFocusAction in combination with MoveFocusAction.Direction.NEXT.public static final String MOVE_FOCUS_ABOVE_ACTION
MoveFocusAction in combination with
MoveFocusAction.Direction.ABOVE.public static final String MOVE_FOCUS_BELOW_ACTION
MoveFocusAction in combination with
MoveFocusAction.Direction.BELOW.public static final String MOVE_FOCUS_HOME_ACTION
MoveFocusAction in combination with MoveFocusAction.Direction.BOTTOM.public static final String MOVE_FOCUS_BOTTOM_ACTION
MoveFocusAction in combination with MoveFocusAction.Direction.BOTTOM.public static final String MOVE_FOCUS_PAGE_UP_ACTION
MoveFocusAction in combination with
MoveFocusAction.Direction.PAGE_UP.public static final String MOVE_FOCUS_PAGE_DOWN_ACTION
MoveFocusAction in combination with
MoveFocusAction.Direction.PAGE_DOWN.public static final String TOGGLE_NODE_ACTION
ToggleNodeAction.public static final String SCROLL_TIMELINE_LEFT_ACTION
ScrollTimelineAction in combination with
ScrollTimelineAction.ScrollDirection.LEFT.public static final String SCROLL_TIMELINE_RIGHT_ACTION
ScrollTimelineAction in combination with
ScrollTimelineAction.ScrollDirection.RIGHT.public static final String SCROLL_TIMELINE_LEFT_FAST_ACTION
ScrollTimelineAction in combination with
ScrollTimelineAction.ScrollDirection.LEFT and the "fast" flag.public static final String SCROLL_TIMELINE_RIGHT_FAST_ACTION
ScrollTimelineAction in combination with
ScrollTimelineAction.ScrollDirection.RIGHT and the "fast" flag.public static final String CATEGORY_TABLE
public static final String CATEGORY_TIMELINE
public static final String CATEGORY_CHART
public static final String CATEGORY_OTHER
public AbstractGanttChartActionMap(T gc)
ActionMap.put(Object, javax.swing.Action) for each action ID defined in
this class. Example:
put(GRID_ACTION, new GridAction<AbstractGanttChart>(gc)); put(ZOOM_IN_ACTION, new ZoomInAction(gc.getDateline())); put(ZOOM_OUT_ACTION, new ZoomOutAction(gc.getDateline())); put(TOGGLE_CROSSHAIR_ACTION, new CrosshairAction(gc)); put(TOGGLE_EVENTLINE_ACTION, new EventlineAction(gc.getTimeline())); put(UNDO_ACTION, new UndoAction(gc)); put(REDO_ACTION, new RedoAction(gc)); ... ...
gc - the target Gantt chartpublic void addCategory(String category)
category - the name of the category to addpublic void removeCategory(String category)
category - the name of the category to removepublic void addCategoryAction(String category, String actionID)
category - the category to which the action will be addedactionID - the ID of the actionpublic void removeCategoryAction(String category, String actionID)
category - the category from which the action will be removedactionID - the ID of the actionpublic Iterator<String> getCategories()
IGanttChartActionMapgetCategories in interface IGanttChartActionMappublic Iterator<String> getCategoryActions(String category)
IGanttChartActionMapgetCategoryActions in interface IGanttChartActionMapcategory - the name of the categoryprotected void initCategoryActionMap()
addCategoryAction(String, String) for each action ID defined in
this class. Example:
// Layer container actions
addCategoryAction(CATEGORY_CHART, ADD_HIGHLIGHTED_OBJECTS_ACTION);
addCategoryAction(CATEGORY_CHART, REMOVE_HIGHLIGHTED_OBJECTS_ACTION);
addCategoryAction(CATEGORY_CHART, CLEAR_HIGHLIGHTED_OBJECTS_ACTION);
addCategoryAction(CATEGORY_CHART, DELETE_TIMELINE_OBJECTS_ACTION);
addCategoryAction(CATEGORY_CHART, TOGGLE_CROSSHAIR_ACTION);
addCategoryAction(CATEGORY_CHART, GRID_ACTION);
// Table actions
addCategoryAction(CATEGORY_TABLE, MOVE_FOCUS_ABOVE_ACTION);
addCategoryAction(CATEGORY_TABLE, MOVE_FOCUS_BELOW_ACTION);
...
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.