|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.utils.ChangeManager infovis.column.AbstractColumn infovis.column.ColumnProxy infovis.table.TableProxy infovis.visualization.DefaultVisualization infovis.graph.visualization.GraphVisualization infovis.graph.visualization.MatrixVisualization
public class MatrixVisualization
Graph Visualization using Adjacency Matrix representation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent |
---|
LabeledComponent.LabeledItem |
Field Summary | |
---|---|
static String |
COLUMNFILTER_COLUMN
Name of the column containing the columnFilter |
static String |
COLUMNSELECTION_COLUMN
Name of the column containing the columnSelection |
static String |
ROWFILTER_COLUMN
Name of the column containing the rowFilter |
static String |
ROWSELECTION_COLUMN
Name of the column containing the rowSelection |
Fields inherited from class infovis.column.AbstractColumn |
---|
MODIFIED_ALL, MODIFIED_NONE |
Fields inherited from interface infovis.Graph |
---|
GRAPH_TYPE, GRAPH_TYPE_DIRECTED, GRAPH_TYPE_UNDIRECTED, NIL |
Fields inherited from interface infovis.metadata.Constants |
---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Fields inherited from interface infovis.Visualization |
---|
PROPERTY_INTERACTOR, PROPERTY_ITEM_RENDERER, PROPERTY_LAYOUT, PROPERTY_ORIENTATION, PROPERTY_PARENT, PROPERTY_PERMUTATION, PROPERTY_RULERS, VC_DESCRIPTOR_PROPERTY_PREFIX, VISUAL_ALPHA, VISUAL_COLOR, VISUAL_FILTER, VISUAL_HOVER, VISUAL_LABEL, VISUAL_SELECTION, VISUAL_SHAPE, VISUAL_SIZE |
Fields inherited from interface infovis.visualization.Orientable |
---|
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2 |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface infovis.Table |
---|
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN |
Constructor Summary | |
---|---|
MatrixVisualization(Graph graph)
Constructor for MatrixVisualization. |
|
MatrixVisualization(Table table)
|
Method Summary | |
---|---|
RowIterator |
columnIterator()
Returns an iterator over the permuted columns. |
void |
computeShapes(Rectangle2D bounds,
Visualization me)
Computes the layout. |
FilterColumn |
getColumnFilter()
Returns the columnFilter. |
Permutation |
getColumnPermutation()
Returns the column permutation. |
int |
getColumnPosition(int col)
Returns the position of the specified column or -1 if it is hidden. |
int |
getColumnPositionCount()
Returns the count of visible column positions. |
BooleanColumn |
getColumnSelection()
Returns the columnSelection. |
MatrixAxisVisualization |
getColumnVisualization()
|
Layout |
getLayout()
Returns the layout object managed by this visualization or null if the visualization computes the layout by itself. |
String |
getName()
Returns the column name. |
Dimension |
getPreferredSize(Visualization me)
Computes and return the preferred size for this layout and this visualization. |
FilterColumn |
getRowFilter()
Returns the rowFilter. |
Permutation |
getRowPermutation()
Returns the row permutation. |
int |
getRowPosition(int row)
|
int |
getRowPositionCount()
|
BooleanColumn |
getRowSelection()
Returns the rowSelection. |
MatrixAxisVisualization |
getRowVisualization()
|
Column |
getVertexLabelColumn()
Returns the vertexLabelColumn. |
void |
invalidate(Visualization vis)
Invalidate the cached state of the layout. |
boolean |
isColumnFiltered(int column)
Returns true if the specified column is filtered. |
boolean |
isSquared()
Returns the squared. |
void |
propertyChange(PropertyChangeEvent evt)
|
RowIterator |
rowIterator()
Returns an iterator over the permuted rows. |
boolean |
setColumnFilter(FilterColumn columnFilter)
Sets the columnFilter. |
void |
setColumnPermutation(Permutation perm)
Sets the column permutation. |
boolean |
setColumnSelection(BooleanColumn columnSelection)
Sets the columnSelection. |
boolean |
setRowFilter(FilterColumn rowFilter)
Sets the rowFilter. |
void |
setRowPermutation(Permutation perm)
|
boolean |
setRowSelection(BooleanColumn rowSelection)
Sets the rowSelection. |
void |
setSquared(boolean squared)
Sets the squared. |
boolean |
setVertexLabelColumn(Column vertexLabelColumn)
Sets the vertexLabelColumn. |
RowIterator |
vertexIterator()
Returns an iterator over the vertices of the graph. |
Methods inherited from class infovis.graph.visualization.GraphVisualization |
---|
addEdge, addGraphChangedListener, addVertex, edgeIterator, edgeIterator, findEdge, getDegree, getEdge, getEdgesCount, getEdgeTable, getFirstVertex, getGraph, getInDegree, getInEdgeAt, getOtherVertex, getOutDegree, getOutEdgeAt, getSecondVertex, getVertexTable, getVerticesCount, graphChanged, inEdgeIterator, isDirected, outEdgeIterator, removeEdge, removeGraphChangedListener, removeVertex, setDirected |
Methods inherited from class infovis.table.TableProxy |
---|
addColumn, addTableModelListener, clear, getColumn, getColumnAt, getColumnClass, getColumnCount, getColumnName, getLastRow, getValueAt, indexOf, indexOf, isCellEditable, isRowValid, removeColumn, removeTableModelListener, setColumnAt, setValueAt |
Methods inherited from class infovis.column.ColumnProxy |
---|
addValue, addValueOrNull, capacity, compare, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
Methods inherited from class infovis.column.AbstractColumn |
---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
Methods inherited from class infovis.utils.ChangeManager |
---|
disableNotify, enableNotify, getModCount, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface infovis.Graph |
---|
clear, setName |
Methods inherited from interface infovis.Metadata |
---|
getClientProperty, getMetadata |
Methods inherited from interface infovis.Column |
---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
Methods inherited from interface cern.colt.function.IntComparator |
---|
compare, equals |
Field Detail |
---|
public static final String ROWSELECTION_COLUMN
public static final String COLUMNSELECTION_COLUMN
public static final String ROWFILTER_COLUMN
public static final String COLUMNFILTER_COLUMN
Constructor Detail |
---|
public MatrixVisualization(Graph graph)
graph
- the graph.public MatrixVisualization(Table table)
Method Detail |
---|
public Layout getLayout()
DefaultVisualization
getLayout
in class DefaultVisualization
public String getName()
ColumnProxy
getName
in interface Column
getName
in interface Graph
getName
in interface Layout
getName
in class ColumnProxy
public void invalidate(Visualization vis)
Call this method from the visualization when it gets invalidated.
invalidate
in interface Layout
vis
- the visualization.public Dimension getPreferredSize(Visualization me)
Layout
getPreferredSize
in interface Layout
me
- the visualization
public void computeShapes(Rectangle2D bounds, Visualization me)
Layout
computeShapes
in interface Layout
bounds
- the allocated bounds of the
visualization.me
- the visualization.DefaultVisualization.computeShapes(Rectangle2D)
public MatrixAxisVisualization getRowVisualization()
public MatrixAxisVisualization getColumnVisualization()
public Column getVertexLabelColumn()
public boolean setVertexLabelColumn(Column vertexLabelColumn)
vertexLabelColumn
- The vertexLabelColumn to set.
true
if the column has been set.public BooleanColumn getRowSelection()
public boolean setRowSelection(BooleanColumn rowSelection)
rowSelection
- The rowSelection to set
true
if the column has been set.public FilterColumn getRowFilter()
public boolean setRowFilter(FilterColumn rowFilter)
rowFilter
- The rowFilter to set
true
if the column has been set.public RowIterator vertexIterator()
Graph
vertexIterator
in interface Graph
vertexIterator
in class GraphVisualization
public Permutation getRowPermutation()
public void setRowPermutation(Permutation perm)
public RowIterator rowIterator()
public int getRowPosition(int row)
public int getRowPositionCount()
public BooleanColumn getColumnSelection()
public boolean setColumnSelection(BooleanColumn columnSelection)
columnSelection
- The columnSelection to set
true
if the column has been set.public FilterColumn getColumnFilter()
public boolean setColumnFilter(FilterColumn columnFilter)
columnFilter
- The columnFilter to set
true
if the column has been set.public boolean isColumnFiltered(int column)
true
if the specified column is filtered.
column
- the column.
true
if the column is filtered.public Permutation getColumnPermutation()
public void setColumnPermutation(Permutation perm)
perm
- the permutation to setpublic RowIterator columnIterator()
public int getColumnPosition(int col)
col
- the column.
public int getColumnPositionCount()
public boolean isSquared()
public void setSquared(boolean squared)
squared
- The squared to setpublic void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |