Squiz Matrix
4.12.2
|
Data Structures | |
class | DoubleClickHandler |
class | DragHandler |
class | DropHandler |
class | MatrixCueGestureHandler |
class | MatrixTreeUI |
class | MenuHandler |
Public Member Functions | |
MatrixTree () | |
MatrixTree (TreeModel model) | |
void | autoscroll (Point pt) |
Insets | getAutoscrollInsets () |
void | addNewLinkListener (NewLinkListener l) |
void | removeNewLinkListener (NewLinkListener l) |
void | addNewAssetListener (NewAssetListener l) |
void | removeNewAssetListener (NewAssetListener l) |
void | addNodeDoubleClickedListener (NodeDoubleClickedListener cl) |
void | removeNodeDoubleClickedListener (NodeDoubleClickedListener cl) |
MatrixTreeNode[] | getSelectionNodes () |
MatrixTreeNode | getSelectionNode () |
boolean | isMultipleSelection () |
boolean | isEmptySelection () |
TreePath | getPathToRoot (MatrixTreeNode node) |
TreePath[] | pathsToArray (java.util.List paths) |
void | startAssetFinderMode () |
void | stopAssetFinderMode () |
void | createSelection () |
void | treeWillExpand (TreeExpansionEvent evt) |
boolean | parentIsRoot (MatrixTreeNode child) |
boolean | nodeIsRoot (MatrixTreeNode node) |
boolean | hasPreviousNode (MatrixTreeNode parent) |
boolean | hasNextNode (MatrixTreeNode parent) |
void | loadChildAssets (final String[] assetids, final String[] sort_orders, final boolean selectAll, final boolean teleport) |
void | loadChildAssets (final MatrixTreeNode node) |
void | loadChildAssets (final MatrixTreeNode node, final String direction, final int start, final int limit) |
void | treeWillCollapse (TreeExpansionEvent evt) |
void | moveGestureRecognized (CueEvent evt) |
void | addGestureRecognized (CueEvent evt) |
void | multipleMoveGestureRecognized (CueEvent evt) |
void | multipleAddGestureRecognized (CueEvent evt) |
void | multipleAddGestureCompleted (CueEvent evt) |
void | moveGestureCompleted (CueEvent evt) |
void | addGestureCompleted (CueEvent evt) |
void | multipleMoveGestureCompleted (CueEvent evt) |
void | teleportToRoot (MatrixTreeNode node) |
void | fireCreateLink (String type, MatrixTreeNode[] sources, MatrixTreeNode parent, int index, int prevIndex) |
void | fireCreateLink (String type, MatrixTreeNode[] sources, MatrixTreeNode parent, int index) |
void | fireNewAsset (String typeCode, MatrixTreeNode parent, int index) |
void | fireNodeDoubleClicked (TreePath clickedPath, Point point) |
void | paintComponent (Graphics g) |
Image | getDragImage (TreePath[] paths) |
boolean | isInAssetFinderMode () |
Font | getFontInUse () |
void | removeKeyStroke (String key) |
void | insertExpandNextNode (MatrixTreeNode parentNode) |
void | insertExpandPreviousNode (MatrixTreeNode parentNode) |
Static Public Attributes | |
static final Color | ASSET_FINDER_BG_COLOR = new Color(0xE9D4F4) |
Protected Member Functions | |
MenuHandler | getMenuHandler () |
DoubleClickHandler | getDoubleClickHandler () |
DragHandler | getDragHandler () |
DropHandler | getDropHandler () |
CueGestureHandler | getCueGestureHandler () |
Image | getDragImageForPaths (TreePath[] paths) |
boolean | canMoveNode (Object node) |
boolean | canMoveNodes (Object[] nodes) |
void | setKeyboardActions () |
The MatrixTree class is the main tree in the Matrix asset map.
Definition at line 51 of file MatrixTree.java.
|
inline |
Returns a MatrixTree with some sample data.
Definition at line 81 of file MatrixTree.java.
|
inline |
Returns a MatrixTree constructed by the tree model.
model | the tree model to construct the tree with. |
Definition at line 90 of file MatrixTree.java.
|
inline |
CueListener event method that is fired when a request for a new node to be added is recognized.
evt | the CueEvent |
Definition at line 738 of file MatrixTree.java.
|
inline |
Adds a NewAssetListener to listen for new asset events
l | the NewLinkListener to add |
Definition at line 186 of file MatrixTree.java.
|
inline |
Adds a NewLinkListener to listen for new link events
l | the NewLinkListener to add |
Definition at line 170 of file MatrixTree.java.
|
inline |
Adds a NodeDoubleClickedListener
cl | the listener |
Definition at line 202 of file MatrixTree.java.
|
inline |
Autoscrolls to the specified point
pt | the point to scroll to |
Definition at line 140 of file MatrixTree.java.
|
inlineprotected |
Returns TRUE if the specified node can be moved
object | node the node to be moved |
Definition at line 988 of file MatrixTree.java.
|
inlineprotected |
Returns TRUE if the specified nodes can be moved
nodes | the nodes to check |
Definition at line 1004 of file MatrixTree.java.
|
inline |
Creates a selection from the currently selected nodes in the tree. Any nodes in the current selection are replaced with the currently selected nodes.
Definition at line 312 of file MatrixTree.java.
|
inline |
Fires an event for a create link operation to all the NewLinkListeners.
type | the type link that will be created |
source | the source of the new link |
parent | the parent where the source will be linked underneath |
index | the index under the parent where the link will be created |
Definition at line 790 of file MatrixTree.java.
|
inline |
Fires an event for a new asset operation to all the NewAssetListeners.
assetType | the type of asset that will be created |
parent | the parent where the new asset will be created |
index | the index where the new asset will be created |
Definition at line 833 of file MatrixTree.java.
|
inline |
Fires an event to indicate that a node has been double clicked
clickedPath | the path of the node that has been clicked |
point | the point where the click occured |
Definition at line 862 of file MatrixTree.java.
|
inline |
Returns the Insets for use during autoscrolling
Definition at line 156 of file MatrixTree.java.
|
inlineprotected |
Returns thr Cue Gesture Handler to handle cue lines
Definition at line 962 of file MatrixTree.java.
|
inlineprotected |
Returns the double click handler that handles double clicks.
Definition at line 938 of file MatrixTree.java.
|
inlineprotected |
Returns the drag handler that handles drag operations.
Definition at line 946 of file MatrixTree.java.
|
inline |
Returns the drag image for the specified TreePaths
paths | the tree paths for the wanted drag image |
Definition at line 909 of file MatrixTree.java.
|
inlineprotected |
Returns a drag image for the specifed paths. If there is multiple paths, the drag image will reflect the path traversal offsets in the path tree
paths | the paths for the wanted drag image |
Definition at line 973 of file MatrixTree.java.
|
inlineprotected |
Returns the Drop handler that handles Drop operations.
Definition at line 954 of file MatrixTree.java.
|
inlineprotected |
Returns the menu handler that handles menus.
Definition at line 930 of file MatrixTree.java.
|
inline |
Returns the TreePath for the specfied node
node | the node of the wanted TreePath |
Definition at line 267 of file MatrixTree.java.
|
inline |
Returns the first node that is currently selected in tree
Definition at line 236 of file MatrixTree.java.
|
inline |
Returns the nodes in the current selection.
Definition at line 220 of file MatrixTree.java.
|
inline |
Returns true if parent node has Next button (node)
parent |
Definition at line 385 of file MatrixTree.java.
|
inline |
Returns true if parent node has Previous button (node)
parent |
Definition at line 370 of file MatrixTree.java.
|
inline |
Inserts a node that allows users to get next set of assets
parentNode | the parent node to add the placeholder node |
Definition at line 1222 of file MatrixTree.java.
|
inline |
Inserts a node that allows users to get previous set of assets
parentNode | the parent node to add the placeholder node |
Definition at line 1249 of file MatrixTree.java.
|
inline |
Returns TRUE if no nodes are currently selected
Definition at line 258 of file MatrixTree.java.
|
inline |
Returns whether the tree is in finder mode
Definition at line 918 of file MatrixTree.java.
|
inline |
Returns TRUE if there more than one node selected, FALSE otherwise
Definition at line 248 of file MatrixTree.java.
|
inline |
Works like original loadChildAssets but uses asset ids to locate nodes in the tree
assetids | Ids of the assets that are in the lineage of the asset that we are searching for |
sort_orders | Sort orders of the assets. This will make search quicker |
selectAll | Selects all the nodes that are in the lineage |
teleport | Teleport to the last selected node (i.e. searched asset) |
Definition at line 452 of file MatrixTree.java.
|
inline |
Makes a request to the Matrix system for the child nodes of the specifed node. The nodes will be automagically appended to the root node, and any assets that are not currently apart of the Asset
map will be loaded, and their appropriate nodes will be added to the Asset's
node list. A placeholder loading node will be appended to the parent node during the loading process, and will be removed once the loading of the child nodes has completed. If the nodes have already been loaded in a previous operation, and are not loaded under the specified parent, they are propagated to the parent. If the nodes have been loaded under the specfied parent, then the branch is simply expanded.
node | The node whos children are to be loaded |
Definition at line 618 of file MatrixTree.java.
|
inline |
CueListener event that is fired when the request for a move operation is completed.
evt | the CueEvent |
Definition at line 690 of file MatrixTree.java.
|
inline |
CueListener event method that is fired when a request for a multiple move operation has completed
evt | the CueEvent |
Definition at line 754 of file MatrixTree.java.
|
inline |
Returns true if this node is the root node
parent |
Definition at line 357 of file MatrixTree.java.
|
inline |
Overrides the paintComponent() method in CueTree to perform double buffering operations
g | the graphics set to paint to. |
Definition at line 884 of file MatrixTree.java.
|
inline |
Returns true if parent of this node is the root node
parent |
Definition at line 344 of file MatrixTree.java.
|
inline |
Returns an array of TreePaths for the specifed List of TreePaths
paths | the List of TreePaths |
Definition at line 279 of file MatrixTree.java.
|
inline |
Removes a NewAssetListener
l | the NewAssetListener to remove |
Definition at line 194 of file MatrixTree.java.
|
inline |
Removes a NewLinkListener
l | the NewLinkListener to remove |
Definition at line 178 of file MatrixTree.java.
|
inline |
Removes a NodeDoubleClickedListener
cl | the listener |
Definition at line 210 of file MatrixTree.java.
|
inlineprotected |
Sets the keyboard actions for the tree to trigger ui components
Definition at line 1074 of file MatrixTree.java.
|
inline |
Starts asset finder mode
Definition at line 287 of file MatrixTree.java.
|
inline |
Stops asset finder move
Definition at line 299 of file MatrixTree.java.
|
inline |
Teleports the specified node to the root node in the tree
node | the node that will become the root node in the tree |
Definition at line 777 of file MatrixTree.java.
|
inline |
Event listener method that is triggered when an expansion event is recognized
evt | the TreeExpansionEvent |
Definition at line 329 of file MatrixTree.java.