Class Legend
java.lang.Object
cz.fidentis.analyst.gui.elements.heatmaptable.Legend
Class represents legend in heatmap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLabelToColorScalePanel
(int row, int col, JTable heatmapTable, String distanceLabel) Adds a clicked cell value label to the color scale panelvoid
createColorScaleImage
(int mainJPanelWidth) Creates a scale legend for the heatmap
-
Constructor Details
-
Legend
public Legend(int boxGlue, double heatmapWidth, double heatmapVerticalWidth, Double biggestDistance, int mainJPanelWidth, JLabel selectedValue) Constructor- Parameters:
boxGlue
- value in px between componentsheatmapWidth
- width of heatmapheatmapVerticalWidth
- vertical width of heatmap[biggestDistance
- biggest distancemainJPanelWidth
- main panel width
-
-
Method Details
-
getScalePanel
-
getColorScalePanel
-
createColorScaleImage
public void createColorScaleImage(int mainJPanelWidth) Creates a scale legend for the heatmap -
addLabelToColorScalePanel
Adds a clicked cell value label to the color scale panel- Parameters:
row
- row index of the cellcol
- column index of the cellheatmapTable
- heatmap tabledistanceLabel
- label to be added
-