/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.pepsoft.worldpainter; import org.pepsoft.worldpainter.biomeschemes.AutoBiomeScheme; import org.pepsoft.worldpainter.heightMaps.*; import org.pepsoft.worldpainter.layers.Biome; import org.pepsoft.worldpainter.layers.Layer; import org.pepsoft.worldpainter.themes.SimpleTheme; import org.pepsoft.worldpainter.themes.Theme; import java.awt.*; import java.util.*; /** * * @author pepijn */ public class NewWorldDialog2 extends javax.swing.JDialog { /** * Creates new form NewWorldDialog2 */ public NewWorldDialog2(App app) { super(app, true); this.app = app; initComponents(); } private void updatePreview() { final TileFactory tileFactory = createTileFactory(); TileProvider tileProvider = new TileProvider() { @Override public Rectangle getExtent() { return null; // Tile factories are endless } @Override public boolean isTilePresent(int x, int y) { return true; // Tile factories are endless and have no holes } @Override public Tile getTile(int x, int y) { Point coords = new Point(x, y); synchronized (cache) { Tile tile = cache.get(coords); if (tile == null) { tile = tileFactory.createTile(x, y); cache.put(coords, tile); } return tile; } } private final Map<Point, Tile> cache = new HashMap<>(); }; Configuration config = Configuration.getInstance(); tiledImageViewer1.setTileProvider(new WPTileProvider(tileProvider, app.getColourScheme(config.getColourschemeIndex()), autoBiomeScheme, app.getCustomBiomeManager(), Collections.singleton((Layer) Biome.INSTANCE), config.isDefaultContoursEnabled(), config.getDefaultContourSeparation(), config.getDefaultLightOrigin(), false, null)); } private TileFactory createTileFactory() { long seed = 0L; int waterLevel = (Integer) spinnerWaterLevel.getValue(); int oceanFloorLevel = (Integer) spinnerOceanFloorLevel.getValue(); int landLevel = (Integer) spinnerLandLevel.getValue(); int continentSize = (Integer) spinnerContinentSize.getValue(); HeightMap oceanFloor = new ConstantHeightMap("Ocean Floor", oceanFloorLevel); HeightMap hills = new ProductHeightMap( "Hills", new NoiseHeightMap(1.0f, 10f, 1), new NoiseHeightMap(20f, 1.0, 2)); HeightMap continent; if (jRadioButton4.isSelected()) { // Round continent = new NinePatchHeightMap("Continent", continentSize, 50, landLevel - oceanFloorLevel); } else { // Square continent = new NinePatchHeightMap("Continent", continentSize, 0, 50, landLevel - oceanFloorLevel); } HeightMap heightMap; if (jRadioButton1.isSelected()) { // All ocean heightMap = oceanFloor; } else if (jRadioButton2.isSelected()) { // Continent surrounded by ocean heightMap = new SumHeightMap(oceanFloor, continent); } else { // All land heightMap = new ConstantHeightMap("Land", landLevel); } if (jCheckBox1.isSelected()) { // With hills heightMap = new SumHeightMap(heightMap, hills); } // Theme theme = new FancyTheme(org.pepsoft.minecraft.Constants.DEFAULT_MAX_HEIGHT_2, waterLevel, heightMap, Terrain.GRASS); SortedMap<Integer, Terrain> terrainRanges = new TreeMap<>(); terrainRanges.put(-1, Terrain.BEACHES); terrainRanges.put(waterLevel - 4, Terrain.GRASS); Theme theme = new SimpleTheme(seed, waterLevel, terrainRanges, null, org.pepsoft.minecraft.Constants.DEFAULT_MAX_HEIGHT_2, true, true); return new HeightMapTileFactory(seed, heightMap, org.pepsoft.minecraft.Constants.DEFAULT_MAX_HEIGHT_2, false, theme); } private void schedulePreviewUpdate() { // TODO: add delay updatePreview(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup1 = new javax.swing.ButtonGroup(); buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup4 = new javax.swing.ButtonGroup(); buttonGroup5 = new javax.swing.ButtonGroup(); tiledImageViewer1 = new org.pepsoft.util.swing.TiledImageViewer(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jRadioButton1 = new javax.swing.JRadioButton(); jRadioButton2 = new javax.swing.JRadioButton(); jRadioButton3 = new javax.swing.JRadioButton(); jLabel4 = new javax.swing.JLabel(); jRadioButton4 = new javax.swing.JRadioButton(); jRadioButton6 = new javax.swing.JRadioButton(); jLabel3 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); spinnerContinentSize = new javax.swing.JSpinner(); spinnerOceanSize = new javax.swing.JSpinner(); jLabel10 = new javax.swing.JLabel(); jRadioButton7 = new javax.swing.JRadioButton(); jRadioButton8 = new javax.swing.JRadioButton(); jRadioButton9 = new javax.swing.JRadioButton(); jLabel11 = new javax.swing.JLabel(); jRadioButton10 = new javax.swing.JRadioButton(); jRadioButton11 = new javax.swing.JRadioButton(); jRadioButton12 = new javax.swing.JRadioButton(); spinnerMinecraftSeed = new javax.swing.JSpinner(); jLabel13 = new javax.swing.JLabel(); jCheckBox1 = new javax.swing.JCheckBox(); jCheckBox2 = new javax.swing.JCheckBox(); jCheckBox3 = new javax.swing.JCheckBox(); jPanel3 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); spinnerOceanFloorLevel = new javax.swing.JSpinner(); jLabel8 = new javax.swing.JLabel(); spinnerWaterLevel = new javax.swing.JSpinner(); jLabel9 = new javax.swing.JLabel(); spinnerLandLevel = new javax.swing.JSpinner(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Create New World"); jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.BOTTOM); jLabel1.setText("World type"); buttonGroup1.add(jRadioButton1); jRadioButton1.setText("All ocean"); jRadioButton1.addActionListener(this::jRadioButton1ActionPerformed); buttonGroup1.add(jRadioButton2); jRadioButton2.setSelected(true); jRadioButton2.setText("Continent surrounded by ocean"); jRadioButton2.addActionListener(this::jRadioButton2ActionPerformed); buttonGroup1.add(jRadioButton3); jRadioButton3.setText("All land"); jRadioButton3.addActionListener(this::jRadioButton3ActionPerformed); jLabel4.setText("Shape"); buttonGroup2.add(jRadioButton4); jRadioButton4.setText("Round"); jRadioButton4.addActionListener(this::jRadioButton4ActionPerformed); buttonGroup2.add(jRadioButton6); jRadioButton6.setSelected(true); jRadioButton6.setText("Square"); jRadioButton6.addActionListener(this::jRadioButton6ActionPerformed); jLabel3.setLabelFor(spinnerOceanSize); jLabel3.setText("Ocean:"); jLabel6.setText("Size"); jLabel7.setLabelFor(spinnerContinentSize); jLabel7.setText("Continent:"); spinnerContinentSize.addChangeListener(this::spinnerContinentSizeStateChanged); spinnerOceanSize.addChangeListener(this::spinnerOceanSizeStateChanged); jLabel10.setText("Outside the world"); buttonGroup4.add(jRadioButton7); jRadioButton7.setText("Endless ocean"); jRadioButton7.addActionListener(this::jRadioButton7ActionPerformed); buttonGroup4.add(jRadioButton8); jRadioButton8.setText("Endless void"); jRadioButton8.addActionListener(this::jRadioButton8ActionPerformed); buttonGroup4.add(jRadioButton9); jRadioButton9.setSelected(true); jRadioButton9.setText("Minecraft land"); jRadioButton9.addActionListener(this::jRadioButton9ActionPerformed); jLabel11.setText("Minecraft seed"); buttonGroup5.add(jRadioButton10); jRadioButton10.setSelected(true); jRadioButton10.setText("Ocean"); jRadioButton10.addActionListener(this::jRadioButton10ActionPerformed); buttonGroup5.add(jRadioButton11); jRadioButton11.setText("Land"); jRadioButton11.addActionListener(this::jRadioButton11ActionPerformed); buttonGroup5.add(jRadioButton12); jRadioButton12.setText("Custom:"); jRadioButton12.addActionListener(this::jRadioButton12ActionPerformed); spinnerMinecraftSeed.addChangeListener(this::spinnerMinecraftSeedStateChanged); jLabel13.setText("Extras"); jCheckBox1.setSelected(true); jCheckBox1.setText("Hills"); jCheckBox1.addActionListener(this::jCheckBox1ActionPerformed); jCheckBox2.setText("Mountains"); jCheckBox2.addActionListener(this::jCheckBox2ActionPerformed); jCheckBox3.setText("Forests"); jCheckBox3.addActionListener(this::jCheckBox3ActionPerformed); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButton2) .addComponent(jLabel1) .addComponent(jRadioButton1)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButton6) .addComponent(jLabel4) .addComponent(jRadioButton4)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(spinnerContinentSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel6) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(spinnerOceanSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(jRadioButton3)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jRadioButton7) .addComponent(jLabel10) .addComponent(jRadioButton8) .addComponent(jRadioButton9)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jRadioButton12) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(spinnerMinecraftSeed, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel11) .addComponent(jRadioButton10) .addComponent(jRadioButton11)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jCheckBox2) .addComponent(jCheckBox1) .addComponent(jLabel13) .addComponent(jCheckBox3)) .addContainerGap(93, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jLabel4) .addComponent(jLabel6) .addComponent(jLabel10) .addComponent(jLabel11) .addComponent(jLabel13)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButton1) .addComponent(jRadioButton4) .addComponent(jLabel7) .addComponent(spinnerContinentSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButton7) .addComponent(jRadioButton10) .addComponent(jCheckBox1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButton2) .addComponent(jRadioButton6) .addComponent(jLabel3) .addComponent(spinnerOceanSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jRadioButton8) .addComponent(jRadioButton11) .addComponent(jCheckBox2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioButton3) .addComponent(jRadioButton9) .addComponent(jRadioButton12) .addComponent(spinnerMinecraftSeed, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jCheckBox3)) .addContainerGap()) ); jTabbedPane1.addTab("Basics", jPanel2); jLabel2.setText("Heights"); jLabel5.setLabelFor(spinnerOceanFloorLevel); jLabel5.setText("Ocean floor:"); spinnerOceanFloorLevel.setModel(new javax.swing.SpinnerNumberModel(40, 0, 255, 1)); spinnerOceanFloorLevel.addChangeListener(this::spinnerOceanFloorLevelStateChanged); jLabel8.setLabelFor(spinnerWaterLevel); jLabel8.setText("Water level:"); spinnerWaterLevel.setModel(new javax.swing.SpinnerNumberModel(62, 0, 255, 1)); spinnerWaterLevel.addChangeListener(this::spinnerWaterLevelStateChanged); jLabel9.setLabelFor(spinnerLandLevel); jLabel9.setText("Land level:"); spinnerLandLevel.setModel(new javax.swing.SpinnerNumberModel(64, 0, 255, 1)); spinnerLandLevel.addChangeListener(this::spinnerLandLevelStateChanged); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(spinnerOceanFloorLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel8) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(spinnerWaterLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(spinnerLandLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(spinnerLandLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(spinnerWaterLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(spinnerOceanFloorLevel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPane1.addTab("Advanced", jPanel3); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(tiledImageViewer1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTabbedPane1) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0) .addComponent(tiledImageViewer1, javax.swing.GroupLayout.DEFAULT_SIZE, 351, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton1ActionPerformed private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton2ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton2ActionPerformed private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton3ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton3ActionPerformed private void jRadioButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton4ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton4ActionPerformed private void jRadioButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton6ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton6ActionPerformed private void spinnerContinentSizeStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerContinentSizeStateChanged schedulePreviewUpdate(); }//GEN-LAST:event_spinnerContinentSizeStateChanged private void spinnerOceanSizeStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerOceanSizeStateChanged schedulePreviewUpdate(); }//GEN-LAST:event_spinnerOceanSizeStateChanged private void spinnerLandLevelStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerLandLevelStateChanged schedulePreviewUpdate(); }//GEN-LAST:event_spinnerLandLevelStateChanged private void spinnerOceanFloorLevelStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerOceanFloorLevelStateChanged schedulePreviewUpdate(); }//GEN-LAST:event_spinnerOceanFloorLevelStateChanged private void spinnerWaterLevelStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerWaterLevelStateChanged schedulePreviewUpdate(); }//GEN-LAST:event_spinnerWaterLevelStateChanged private void jRadioButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton7ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton7ActionPerformed private void jRadioButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton8ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton8ActionPerformed private void jRadioButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton9ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton9ActionPerformed private void jRadioButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton10ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton10ActionPerformed private void jRadioButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton11ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton11ActionPerformed private void jRadioButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton12ActionPerformed updatePreview(); }//GEN-LAST:event_jRadioButton12ActionPerformed private void spinnerMinecraftSeedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_spinnerMinecraftSeedStateChanged schedulePreviewUpdate(); }//GEN-LAST:event_spinnerMinecraftSeedStateChanged private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed updatePreview(); }//GEN-LAST:event_jCheckBox1ActionPerformed private void jCheckBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox2ActionPerformed updatePreview(); }//GEN-LAST:event_jCheckBox2ActionPerformed private void jCheckBox3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox3ActionPerformed updatePreview(); }//GEN-LAST:event_jCheckBox3ActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.ButtonGroup buttonGroup1; private javax.swing.ButtonGroup buttonGroup2; private javax.swing.ButtonGroup buttonGroup4; private javax.swing.ButtonGroup buttonGroup5; private javax.swing.JCheckBox jCheckBox1; private javax.swing.JCheckBox jCheckBox2; private javax.swing.JCheckBox jCheckBox3; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel13; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JRadioButton jRadioButton1; private javax.swing.JRadioButton jRadioButton10; private javax.swing.JRadioButton jRadioButton11; private javax.swing.JRadioButton jRadioButton12; private javax.swing.JRadioButton jRadioButton2; private javax.swing.JRadioButton jRadioButton3; private javax.swing.JRadioButton jRadioButton4; private javax.swing.JRadioButton jRadioButton6; private javax.swing.JRadioButton jRadioButton7; private javax.swing.JRadioButton jRadioButton8; private javax.swing.JRadioButton jRadioButton9; private javax.swing.JTabbedPane jTabbedPane1; private javax.swing.JSpinner spinnerContinentSize; private javax.swing.JSpinner spinnerLandLevel; private javax.swing.JSpinner spinnerMinecraftSeed; private javax.swing.JSpinner spinnerOceanFloorLevel; private javax.swing.JSpinner spinnerOceanSize; private javax.swing.JSpinner spinnerWaterLevel; private org.pepsoft.util.swing.TiledImageViewer tiledImageViewer1; // End of variables declaration//GEN-END:variables private final App app; private final AutoBiomeScheme autoBiomeScheme = new AutoBiomeScheme(null); }