|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.datalab.impl.DataTablesControllerImpl
public class DataTablesControllerImpl
Implementation of the DataTablesController interface declared in the Data Laboratory API.
DataTablesController
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.gephi.datalab.api.DataTablesEventListener |
---|
DataTablesEventListener.ExportMode |
Constructor Summary | |
---|---|
DataTablesControllerImpl()
|
Method Summary | |
---|---|
void |
exportCurrentTable(DataTablesEventListener.ExportMode exportMode)
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 |
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. |
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(AttributeTable table)
Request the tables implementation to show the given table (nodes or edges table) |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataTablesControllerImpl()
Method Detail |
---|
public void setDataTablesEventListener(DataTablesEventListener listener)
DataTablesController
setDataTablesEventListener
in interface DataTablesController
listener
- Instance of DataTablesEventListenerpublic DataTablesEventListener getDataTablesEventListener()
DataTablesController
getDataTablesEventListener
in interface DataTablesController
public boolean isDataTablesReady()
DataTablesController
isDataTablesReady
in interface DataTablesController
public void selectNodesTable()
DataTablesEventListener
selectNodesTable
in interface DataTablesEventListener
public void selectEdgesTable()
DataTablesEventListener
selectEdgesTable
in interface DataTablesEventListener
public void selectTable(AttributeTable table)
DataTablesController
selectTable
in interface DataTablesController
table
- Table to showpublic void refreshCurrentTable()
DataTablesEventListener
refreshCurrentTable
in interface DataTablesEventListener
public void setNodeTableSelection(Node[] nodes)
DataTablesEventListener
setNodeTableSelection
in interface DataTablesEventListener
nodes
- Nodes to selectpublic void setEdgeTableSelection(Edge[] edges)
DataTablesEventListener
setEdgeTableSelection
in interface DataTablesEventListener
edges
- Edges to selectpublic Node[] getNodeTableSelection()
DataTablesEventListener
getNodeTableSelection
in interface DataTablesEventListener
public Edge[] getEdgeTableSelection()
DataTablesEventListener
getEdgeTableSelection
in interface DataTablesEventListener
public boolean isNodeTableMode()
DataTablesEventListener
isNodeTableMode
in interface DataTablesEventListener
public boolean isEdgeTableMode()
DataTablesEventListener
isEdgeTableMode
in interface DataTablesEventListener
public boolean isShowOnlyVisible()
DataTablesEventListener
isShowOnlyVisible
in interface DataTablesEventListener
public void setShowOnlyVisible(boolean showOnlyVisible)
DataTablesEventListener
setShowOnlyVisible
in interface DataTablesEventListener
showOnlyVisible
- Indicates if only visible elements have to be shown in tablepublic void exportCurrentTable(DataTablesEventListener.ExportMode exportMode)
DataTablesEventListener
exportCurrentTable
in interface DataTablesEventListener
exportMode
- ExportMode
- CSV only for nowpublic boolean isUseSparklines()
DataTablesEventListener
isUseSparklines
in interface DataTablesEventListener
public void setUseSparklines(boolean useSparklines)
DataTablesEventListener
setUseSparklines
in interface DataTablesEventListener
useSparklines
- Indicates if sparklines should be usedpublic boolean isTimeIntervalGraphics()
DataTablesEventListener
isTimeIntervalGraphics
in interface DataTablesEventListener
public void setTimeIntervalGraphics(boolean timeIntervalGraphics)
DataTablesEventListener
setTimeIntervalGraphics
in interface DataTablesEventListener
timeIntervalGraphics
- Indicates if time interval graphics should be usedpublic boolean isShowEdgesNodesLabels()
DataTablesEventListener
isShowEdgesNodesLabels
in interface DataTablesEventListener
public void setShowEdgesNodesLabels(boolean showEdgesNodesLabels)
DataTablesEventListener
setShowEdgesNodesLabels
in interface DataTablesEventListener
showEdgesNodesLabels
- Indicates if edges nodes labels should be shown
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |