private void zoomIn() { zoomIn(DEFAULT_ZOOM_SCALE); }
private Component getHeatMap() { this.heatmapTM = new HeatMapTableModel(); this.heatmap = new JXTable(this.heatmapTM); this.heatmap.setDefaultRenderer( Object.class, new CustomTableCellRenderer()); this.heatmap.setTableHeader(null); this.heatmap.addMouseWheelListener(e -> { if(!mouseZoomEnabled) { return; } if (e.getWheelRotation() < 0) { zoomIn(); } else { zoomOut(); } }); this.heatmap.setFont(this.heatmap.getFont().deriveFont( (float) this.cellSize)); this.heatmap.setColumnControlVisible(false); this.heatmap.setShowHorizontalLines(false); this.heatmap.setShowVerticalLines(false); this.heatmap.setFillsViewportHeight(false); this.heatmap.setRowMargin(0); this.heatmap.setIntercellSpacing(new Dimension(0, 0)); this.heatmap.setCellSelectionEnabled(false); this.heatmap.setAutoCreateRowSorter(false); this.heatmap.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); this.fixCellSize(); return new JScrollPane(this.heatmap); }