Skip to content

Commit

Permalink
heatmap_style
Browse files Browse the repository at this point in the history
  • Loading branch information
mukoki committed Mar 26, 2022
1 parent f70b763 commit 5f6fbc4
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -365,6 +365,7 @@ private void jButton_OKActionPerformed(java.awt.event.ActionEvent evt) {
private void fixComponents() throws Exception{

this.setTitle(RasterStylesExtension.extensionName);
int numbands = rasterImageLayer.getMetadata().getStats().getBandCount();

/* Transparency text field */
jTextField_TranspValue.setInputVerifier(verifier);
Expand All @@ -380,6 +381,7 @@ private void fixComponents() throws Exception{
rasterImageLayer,
minMaxValues);
singleValuesPanel = new SingleValuesPanel(this, Utils.purgeNoData(rasterImageLayer.getActualRasterData(), rasterImageLayer), rasterImageLayer);
heatMapPanel = new HeatMapPanel(this, rasterImageLayer, numbands);

if (stats.getMin(band) == stats.getMax(band)) {
final DummyPanel pan = new DummyPanel("No stretched classification available, this raster has only one value: " + stats.getMax(band));
Expand All @@ -393,6 +395,11 @@ private void fixComponents() throws Exception{
jTabbedPane_Type.addTab(bundle.getString("org.openjump.core.rasterimage.styler.ui.RasterStylesDialog.tabIntervals"), intervalPanel);
}
jTabbedPane_Type.addTab(bundle.getString("org.openjump.core.rasterimage.styler.ui.RasterStylesDialog.tabSingleValues"), singleValuesPanel);
if (numbands > 3) {
System.out.println("Nombre de bandes = " + numbands);
//jTabbedPane_Type.addTab(bundle.getString("org.openjump.core.rasterimage.styler.ui.RasterStylesDialog.heatmap"), heatMapPanel);
jTabbedPane_Type.addTab("heatmap", heatMapPanel);
}
pack();

/* Startup symbology */
Expand Down Expand Up @@ -556,6 +563,7 @@ private void updateGUI() throws Exception {
private StretchedPanel stretchedPanel;
private IntervalPanel intervalPanel;
private SingleValuesPanel singleValuesPanel;
private HeatMapPanel heatMapPanel;

private final MyVerifier verifier = new MyVerifier();
private RasterSymbology finalRasterSymbolizer;
Expand Down

0 comments on commit 5f6fbc4

Please sign in to comment.