BASE
- VIEW
- public class VMatrix<BASE,VIEW>
extends java.lang.Object
a matrix specifically handles views
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<VNode> |
_activeColNodes |
protected java.util.ArrayList<VNode> |
_activeColNodesInTree |
protected com.google.common.collect.HashMultimap<java.lang.String,VNode> |
_activeColumnNameToNodeMap |
protected com.google.common.collect.HashMultimap<java.lang.String,VNode> |
_activeRowNameToNodeMap |
protected java.util.ArrayList<VNode> |
_activeRowNodes |
protected java.util.ArrayList<VNode> |
_activeRowNodesInTree |
protected java.lang.String |
_ID |
Constructor and Description |
---|
VMatrix() |
Modifier and Type | Method and Description |
---|---|
java.util.List<VNode> |
collapseTreeColNodes(java.util.Collection<VNode> nodesToCollapse) |
java.util.List<VNode> |
collapseTreeRowNodes(java.util.Collection<VNode> nodesToCollapse) |
void |
deleteActiveColNodes(java.util.HashSet<VNode> nodesToDelete) |
void |
deleteActiveRowNodes(java.util.HashSet<VNode> nodesToDelete) |
void |
destroy() |
void |
expandColNodeToChildNodes(java.util.Collection<VNode> inputNodes) |
java.util.List<VNode> |
expandNodesToLeaf(java.util.Collection<VNode> originalNodes,
boolean isRowNodes) |
void |
expandRowNodeToChildNodes(java.util.Collection<VNode> originalNodes) |
VNode |
getActiveColNode(int index) |
java.util.List<VNode> |
getActiveColumnNodes() |
java.util.List<VNode> |
getActiveColumnNodes(java.lang.String name) |
VNode |
getActiveRowNode(int index) |
java.util.List<VNode> |
getActiveRowNodes() |
java.util.List<VNode> |
getActiveRowNodes(java.lang.String name) |
java.util.List<VNode> |
getChildNodesInViewColumn(java.util.Collection<VNode> treeNodes)
get all leaf nodes associated with all the selected parent nodes visited
-> for selections parent nodes will not be visited again
|
java.util.List<VNode> |
getChildNodesInViewColumn(VNode treeNode)
get all nodes associated with a certain tree node
|
java.util.List<VNode> |
getChildNodesInViewColumnAll(java.util.Collection<VNode> treeNodes)
get all nodes associated w/ selected nodes
|
java.util.List<VNode> |
getChildNodesInViewRow(java.util.Collection<VNode> treeNodes)
get all left nodes associated with the selected parent nodes -> for
selections
|
java.util.List<VNode> |
getChildNodesInViewRow(VNode treeNode) |
java.util.List<VNode> |
getChildNodesInViewRowAll(java.util.Collection<VNode> treeNodes)
get all leaf nodes associated with the selected parent nodes
|
java.util.Set<VNode> |
getDepthOneTreeNodesCol()
returns only nodes with depth/1 in view
|
java.util.Set<VNode> |
getDepthOneTreeNodesRow()
returns only the nodes w/ depth 1 in view
|
int |
getNumCols() |
int |
getNumRows() |
java.util.List<VNode> |
getTreeNodesColumn() |
java.util.ArrayList<VNode> |
getTreeNodesColumn(float fromViewIndex,
float toViewIndex) |
java.util.List<VNode> |
getTreeNodesRow() |
java.util.ArrayList<VNode> |
getTreeNodesRow(float fromViewIndex,
float toViewIndex) |
VIEW |
getValue(int row,
int col,
CAggregator<BASE,VIEW> aggr,
java.util.List<CoolMapMatrix<BASE>> matrices) |
void |
insertActiveColNodes(int index,
java.util.List<VNode> nodes) |
void |
insertActiveColNodes(int index,
java.util.List<VNode> nodes,
java.util.List<VNode> treeNodes) |
void |
insertActiveRowNodes(int index,
java.util.List<VNode> nodes) |
void |
insertActiveRowNodes(int index,
java.util.List<VNode> nodes,
java.util.List<VNode> treeNodes) |
void |
multiShiftColNodes(int[][] ranges,
int target) |
void |
multiShiftRowNodes(int[][] ranges,
int target) |
void |
removeActiveColNodes() |
void |
removeActiveColNodes(java.util.HashSet<VNode> nodes) |
void |
removeActiveRowNodes() |
void |
removeActiveRowNodes(java.util.HashSet<VNode> nodes)
This is dangerous...
|
void |
restoreState(CoolMapState state) |
void |
setActiveColNodes(java.util.List<VNode> nodes,
boolean clearTree)
replace the colnodes with new nodes, and remove all tree nodes;
|
void |
setActiveRowNodes(java.util.List<VNode> nodes,
boolean clearTree)
set the active colNodes
|
void |
sortColumn(int column,
int descending,
CAggregator<BASE,VIEW> aggr,
java.util.List<CoolMapMatrix<BASE>> matrices) |
protected final java.lang.String _ID
protected final java.util.ArrayList<VNode> _activeRowNodes
protected final java.util.ArrayList<VNode> _activeColNodes
protected final java.util.ArrayList<VNode> _activeRowNodesInTree
protected final java.util.ArrayList<VNode> _activeColNodesInTree
protected final com.google.common.collect.HashMultimap<java.lang.String,VNode> _activeColumnNameToNodeMap
protected final com.google.common.collect.HashMultimap<java.lang.String,VNode> _activeRowNameToNodeMap
public void destroy()
public void insertActiveRowNodes(int index, java.util.List<VNode> nodes)
public void insertActiveRowNodes(int index, java.util.List<VNode> nodes, java.util.List<VNode> treeNodes)
public void insertActiveColNodes(int index, java.util.List<VNode> nodes)
public void insertActiveColNodes(int index, java.util.List<VNode> nodes, java.util.List<VNode> treeNodes)
public void setActiveColNodes(java.util.List<VNode> nodes, boolean clearTree)
nodes
- clearTree
- public void setActiveRowNodes(java.util.List<VNode> nodes, boolean clearTree)
nodes
- clearTree
- public void removeActiveColNodes(java.util.HashSet<VNode> nodes)
public void deleteActiveRowNodes(java.util.HashSet<VNode> nodesToDelete)
public void deleteActiveColNodes(java.util.HashSet<VNode> nodesToDelete)
public void removeActiveColNodes()
public void removeActiveRowNodes()
public void removeActiveRowNodes(java.util.HashSet<VNode> nodes)
nodes
- public void expandColNodeToChildNodes(java.util.Collection<VNode> inputNodes)
public java.util.List<VNode> expandNodesToLeaf(java.util.Collection<VNode> originalNodes, boolean isRowNodes)
public void expandRowNodeToChildNodes(java.util.Collection<VNode> originalNodes)
originalNodes
- public java.util.List<VNode> collapseTreeColNodes(java.util.Collection<VNode> nodesToCollapse)
public java.util.List<VNode> collapseTreeRowNodes(java.util.Collection<VNode> nodesToCollapse)
public final VIEW getValue(int row, int col, CAggregator<BASE,VIEW> aggr, java.util.List<CoolMapMatrix<BASE>> matrices)
public VNode getActiveRowNode(int index)
public VNode getActiveColNode(int index)
public void sortColumn(int column, int descending, CAggregator<BASE,VIEW> aggr, java.util.List<CoolMapMatrix<BASE>> matrices)
public java.util.List<VNode> getActiveColumnNodes()
public java.util.List<VNode> getActiveRowNodes()
public int getNumRows()
public int getNumCols()
public java.util.List<VNode> getChildNodesInViewColumn(VNode treeNode)
treeNode
- public java.util.List<VNode> getChildNodesInViewColumnAll(java.util.Collection<VNode> treeNodes)
treeNodes
- public java.util.List<VNode> getChildNodesInViewColumn(java.util.Collection<VNode> treeNodes)
treeNodes
- public java.util.List<VNode> getChildNodesInViewRow(java.util.Collection<VNode> treeNodes)
treeNodes
- public java.util.List<VNode> getChildNodesInViewRowAll(java.util.Collection<VNode> treeNodes)
treeNodes
- public void multiShiftRowNodes(int[][] ranges, int target)
public void multiShiftColNodes(int[][] ranges, int target)
public java.util.ArrayList<VNode> getTreeNodesRow(float fromViewIndex, float toViewIndex)
public java.util.ArrayList<VNode> getTreeNodesColumn(float fromViewIndex, float toViewIndex)
public java.util.List<VNode> getActiveRowNodes(java.lang.String name)
public java.util.List<VNode> getActiveColumnNodes(java.lang.String name)
public java.util.List<VNode> getTreeNodesRow()
public java.util.List<VNode> getTreeNodesColumn()
public java.util.Set<VNode> getDepthOneTreeNodesRow()
public java.util.Set<VNode> getDepthOneTreeNodesCol()
public void restoreState(CoolMapState state)