java.lang.Object
cz.fidentis.analyst.gui.elements.heatmaptable.Legend

public class Legend extends Object
Class represents legend in 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 components
      heatmapWidth - width of heatmap
      heatmapVerticalWidth - vertical width of heatmap[
      biggestDistance - biggest distance
      mainJPanelWidth - main panel width
  • Method Details

    • getScalePanel

      public JPanel getScalePanel()
    • getColorScalePanel

      public ColorScalePanel getColorScalePanel()
    • createColorScaleImage

      public void createColorScaleImage(int mainJPanelWidth)
      Creates a scale legend for the heatmap
    • addLabelToColorScalePanel

      public void addLabelToColorScalePanel(int row, int col, JTable heatmapTable, String distanceLabel)
      Adds a clicked cell value label to the color scale panel
      Parameters:
      row - row index of the cell
      col - column index of the cell
      heatmapTable - heatmap table
      distanceLabel - label to be added