Package org.cytoscape.view.model.table
Interface CyTableView
- All Superinterfaces:
CyDisposable
,CyIdentifiable
,View<CyTable>
Additional methods for table views.
- Since:
- 3.9
Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
Module: viewmodel-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>viewmodel-api</artifactId> </dependency>
-
Field Summary
Fields inherited from interface org.cytoscape.model.CyIdentifiable
SUID
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnView
(long viewSuid) Returns the View for the specified column using its view SUID as key.getColumnView
(String fullyQualifiedName) Returns the View for a specified column.getColumnView
(CyColumn column) Returns the View for a specified column.Returns all column views in this table view, in the same order asCyTable.getColumns()
.Returns the ID of the renderer that must be used to render this view.getRowView
(CyRow row) Returns the View for the specified row.Returns all row views in the table view.<T,
V extends T>
voidsetViewDefault
(VisualProperty<? extends T> vp, V defaultValue) Sets the default value to be used for the specified visual property.Methods inherited from interface org.cytoscape.model.CyDisposable
dispose
Methods inherited from interface org.cytoscape.model.CyIdentifiable
getSUID
Methods inherited from interface org.cytoscape.view.model.View
batch, batch, clearValueLock, clearVisualProperties, getModel, getVisualProperty, isDirectlyLocked, isSet, isValueLocked, setLockedValue, setVisualProperty
-
Method Details
-
getColumnView
Returns the View for a specified column.- Parameters:
column
- CyColumn object representing the column- Returns:
- The column View, or null if the column isn't in this table.
-
getColumnView
Returns the View for a specified column.- Parameters:
fullyQualifiedName
- The name of the column (including the namespace if present)- Returns:
- The column View, or null if the column isn't in this table.
-
getColumnView
Returns the View for the specified column using its view SUID as key.- Parameters:
viewSuid
- The SUID of the column view. Note this is not the SUID of the underlying CyColumn object, its the SUID of the View<CyColumn>- Returns:
- The column View, or null if the column isn't in this table.
-
getColumnViews
Collection<View<CyColumn>> getColumnViews()Returns all column views in this table view, in the same order asCyTable.getColumns()
.- See Also:
-
getRowView
Returns the View for the specified row.- Parameters:
row
- CyRow object representing the column.- Returns:
- The row View, or null if the row isn't in this table.
-
getRowViews
Collection<View<CyRow>> getRowViews()Returns all row views in the table view. -
getRendererId
String getRendererId()Returns the ID of the renderer that must be used to render this view.- See Also:
-
setViewDefault
Sets the default value to be used for the specified visual property.- Type Parameters:
T
- The type of the visual property value.V
- The default value for the visual property, which must extend T.- Parameters:
vp
- The visual property whose default value we're specifying.defaultValue
- The default value to be used for this visual property for this view.
-