public class DataTablesControllerImpl extends Object implements DataTablesController
DataTablesControllerDataTablesCommonInterface.ExportMode| Modifier and Type | Field and Description |
|---|---|
private DataTablesEventListener |
listener |
| Constructor and Description |
|---|
DataTablesControllerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportCurrentTable(DataTablesCommonInterface.ExportMode exportMode)
Requests to exports current table being shown as a file.
|
DataTablesEventListener |
getDataTablesEventListener()
Returns the current registered DataTablesEventListener.
|
org.gephi.graph.api.Edge[] |
getEdgeTableSelection()
Request the tables implementation to provide the selected edges in edges table.
|
org.gephi.graph.api.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(org.gephi.graph.api.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(org.gephi.graph.api.Edge[] edges)
Requests the tables implementation to adapt the edges table row selection to the specified edges.
|
void |
setNodeTableSelection(org.gephi.graph.api.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.
|
private DataTablesEventListener listener
public void setDataTablesEventListener(DataTablesEventListener listener)
DataTablesControllersetDataTablesEventListener in interface DataTablesControllerlistener - Instance of DataTablesEventListenerpublic DataTablesEventListener getDataTablesEventListener()
DataTablesControllergetDataTablesEventListener in interface DataTablesControllerpublic boolean isDataTablesReady()
DataTablesControllerisDataTablesReady in interface DataTablesControllerpublic void selectNodesTable()
DataTablesCommonInterfaceselectNodesTable in interface DataTablesCommonInterfacepublic void selectEdgesTable()
DataTablesCommonInterfaceselectEdgesTable in interface DataTablesCommonInterfacepublic void selectTable(org.gephi.graph.api.Table table)
DataTablesControllerselectTable in interface DataTablesControllertable - Table to showpublic void refreshCurrentTable()
DataTablesCommonInterfacerefreshCurrentTable in interface DataTablesCommonInterfacepublic void setNodeTableSelection(org.gephi.graph.api.Node[] nodes)
DataTablesCommonInterfacesetNodeTableSelection in interface DataTablesCommonInterfacenodes - Nodes to selectpublic void setEdgeTableSelection(org.gephi.graph.api.Edge[] edges)
DataTablesCommonInterfacesetEdgeTableSelection in interface DataTablesCommonInterfaceedges - Edges to selectpublic org.gephi.graph.api.Node[] getNodeTableSelection()
DataTablesCommonInterfacegetNodeTableSelection in interface DataTablesCommonInterfacepublic org.gephi.graph.api.Edge[] getEdgeTableSelection()
DataTablesCommonInterfacegetEdgeTableSelection in interface DataTablesCommonInterfacepublic boolean isNodeTableMode()
DataTablesCommonInterfaceisNodeTableMode in interface DataTablesCommonInterfacepublic boolean isEdgeTableMode()
DataTablesCommonInterfaceisEdgeTableMode in interface DataTablesCommonInterfacepublic boolean isShowOnlyVisible()
DataTablesCommonInterfaceisShowOnlyVisible in interface DataTablesCommonInterfacepublic void setShowOnlyVisible(boolean showOnlyVisible)
DataTablesCommonInterfacesetShowOnlyVisible in interface DataTablesCommonInterfaceshowOnlyVisible - Indicates if only visible elements have to be shown in tablepublic void exportCurrentTable(DataTablesCommonInterface.ExportMode exportMode)
DataTablesCommonInterfaceexportCurrentTable in interface DataTablesCommonInterfaceexportMode - ExportMode - CSV only for nowpublic boolean isUseSparklines()
DataTablesCommonInterfaceisUseSparklines in interface DataTablesCommonInterfacepublic void setUseSparklines(boolean useSparklines)
DataTablesCommonInterfacesetUseSparklines in interface DataTablesCommonInterfaceuseSparklines - Indicates if sparklines should be usedpublic boolean isTimeIntervalGraphics()
DataTablesCommonInterfaceisTimeIntervalGraphics in interface DataTablesCommonInterfacepublic void setTimeIntervalGraphics(boolean timeIntervalGraphics)
DataTablesCommonInterfacesetTimeIntervalGraphics in interface DataTablesCommonInterfacetimeIntervalGraphics - Indicates if time interval graphics should be usedpublic boolean isShowEdgesNodesLabels()
DataTablesCommonInterfaceisShowEdgesNodesLabels in interface DataTablesCommonInterfacepublic void setShowEdgesNodesLabels(boolean showEdgesNodesLabels)
DataTablesCommonInterfacesetShowEdgesNodesLabels in interface DataTablesCommonInterfaceshowEdgesNodesLabels - Indicates if edges nodes labels should be shownpublic boolean prepareDataTables()
DataTablesControllerDataTablesEventListenerBuilder and sets its DataTablesEventListener.prepareDataTables in interface DataTablesControllerpublic void setAutoRefreshEnabled(boolean enabled)
DataTablesCommonInterfacesetAutoRefreshEnabled in interface DataTablesCommonInterfacepublic boolean isAutoRefreshEnabled()
DataTablesCommonInterfaceisAutoRefreshEnabled in interface DataTablesCommonInterfaceCopyright © 2007–2016 Gephi Consortium. All rights reserved.