Class RowHeader
java.lang.Object
cz.fidentis.analyst.gui.elements.heatmaptable.RowHeader
Row header component, that adds one single column to heatmap table to be there as a row header for
further work with the table
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRowHeader
(DefaultTableModel defaultTableModel, JScrollPane scrollPane) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets mouse row andlerGets the row header for a tablevoid
Resets clicked row index to -1void
setRowHeaderBackground
(Color color, boolean headerVisible) Sets background and foreground of the first column in jTable that represents the row headervoid
setRowHeaderHeight
(int cellSize) Sets height of the rows to be exact as needed - used for setting same size as rows in heatmap tablevoid
setRowHeaderWidth
(int cellSize) Sets width and view width of the row header s- used for setting same size as rows in heatmap table
-
Field Details
-
OUT_OF_RANGE_INDEX
public static final int OUT_OF_RANGE_INDEX- See Also:
-
-
Constructor Details
-
RowHeader
Constructor- Parameters:
defaultTableModel
- table model from parent tablescrollPane
- scroll pane
-
-
Method Details
-
setClickedRow
public void setClickedRow()Resets clicked row index to -1 -
getMouseRowHandler
Gets mouse row andler- Returns:
- mouse row handler
-
getRowHeaderTable
Gets the row header for a table- Returns:
- row header JTable
-
setRowHeaderBackground
Sets background and foreground of the first column in jTable that represents the row header- Parameters:
color
- chosen color for setting background and foreground for row header
-
setRowHeaderHeight
public void setRowHeaderHeight(int cellSize) Sets height of the rows to be exact as needed - used for setting same size as rows in heatmap table- Parameters:
cellSize
- size of a cell
-
setRowHeaderWidth
public void setRowHeaderWidth(int cellSize) Sets width and view width of the row header s- used for setting same size as rows in heatmap table- Parameters:
cellSize
- size of a cell
-