public interface DataTablesController
This interface defines part of the Data Laboratory API.
It provides methods to control the Data Table UI that shows a table for nodes and edges.
This is done by registering the data table ui as a listener of these events that can be requested with this controller. Note that data table ui will not be registered to listen to the events of this controller until it is instanced opening Data Laboratory Group
Modifier and Type | Method and Description |
---|---|
void |
exportCurrentTable()
Requests to exports current table being shown as a file.
|
DataTablesEventListener |
getDataTablesEventListener()
Returns the current registered DataTablesEventListener.
|
Edge[] |
getEdgeTableSelection()
Request the tables implementation to provide the selected edges in edges table.
|
Node[] |
getNodeTableSelection()
Request the tables implementation to provide the selected nodes in nodes table.
|
boolean |
isAutoRefreshEnabled()
Gets auto-refresh suspended state.
|
boolean |
isDataTablesReady()
Indicates if Data Table UI is registered as a listener of the events created by this controller.
|
boolean |
isEdgeTableMode()
Checks if the data tables implementation is showing edges table
|
boolean |
isNodeTableMode()
Checks if the data tables implementation is showing nodes table
|
boolean |
isShowEdgesNodesLabels()
Checks if the data tables implementation is showing edges nodes (source and target) labels at the moment.
|
boolean |
isShowOnlyVisible()
Checks if the data tables implementation is showing only visible elements (nodes or edges)
in the graph at the moment.
|
boolean |
isTimeIntervalGraphics()
Checks if the data tables implementation is showing time intervals as graphics at the moment.
|
boolean |
isUseSparklines()
Checks if the data tables implementation is showing number lists and dynamic numbers as sparklines at the moment.
|
boolean |
prepareDataTables()
Looks for an available
DataTablesEventListenerBuilder and sets its DataTablesEventListener . |
void |
refreshCurrentTable()
Requests the tables implementation to refresh the data of the table being shown.
|
void |
selectEdgesTable()
Requests the tables implementation to show edges table.
|
void |
selectNodesTable()
Requests the tables implementation to show nodes table.
|
void |
selectTable(Table table)
Request the tables implementation to show the given table (nodes or edges table)
|
void |
setAutoRefreshEnabled(boolean enabled)
Sets auto-refresh suspended state.
|
void |
setDataTablesEventListener(DataTablesEventListener listener)
Register a listener for these requests.
|
void |
setEdgeTableSelection(Edge[] edges)
Requests the tables implementation to adapt the edges table row selection to the specified edges.
|
void |
setNodeTableSelection(Node[] nodes)
Requests the tables implementation to adapt the nodes table row selection to the specified nodes.
|
void |
setShowEdgesNodesLabels(boolean showEdgesNodesLabels)
Requests the tables implementation to show edges nodes (source and target).
|
void |
setShowOnlyVisible(boolean showOnlyVisible)
Requests the tables implementation to show only visible elements or not.
|
void |
setTimeIntervalGraphics(boolean timeIntervalGraphics)
Requests the tables implementation to show time intervals as graphics.
|
void |
setUseSparklines(boolean useSparklines)
Requests the tables implementation to show number lists and dynamic numbers as sparklines.
|
void selectTable(Table table)
table
- Table to showvoid setDataTablesEventListener(DataTablesEventListener listener)
listener
- Instance of DataTablesEventListenerDataTablesEventListener getDataTablesEventListener()
boolean isDataTablesReady()
boolean prepareDataTables()
DataTablesEventListenerBuilder
and sets its DataTablesEventListener
.void selectNodesTable()
void selectEdgesTable()
void refreshCurrentTable()
void setAutoRefreshEnabled(boolean enabled)
enabled
- boolean isAutoRefreshEnabled()
void setNodeTableSelection(Node[] nodes)
nodes
- Nodes to selectvoid setEdgeTableSelection(Edge[] edges)
edges
- Edges to selectNode[] getNodeTableSelection()
Edge[] getEdgeTableSelection()
boolean isNodeTableMode()
boolean isEdgeTableMode()
boolean isShowOnlyVisible()
void setShowOnlyVisible(boolean showOnlyVisible)
showOnlyVisible
- Indicates if only visible elements have to be shown in tableboolean isUseSparklines()
void setUseSparklines(boolean useSparklines)
useSparklines
- Indicates if sparklines should be usedboolean isTimeIntervalGraphics()
void setTimeIntervalGraphics(boolean timeIntervalGraphics)
timeIntervalGraphics
- Indicates if time interval graphics should be usedboolean isShowEdgesNodesLabels()
void setShowEdgesNodesLabels(boolean showEdgesNodesLabels)
showEdgesNodesLabels
- Indicates if edges nodes labels should be shownvoid exportCurrentTable()
Copyright © 2007–2017 Gephi Consortium. All rights reserved.