|
|
|
@ -101,11 +101,13 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
rotateButton = new javax.swing.JToggleButton(); |
|
|
|
|
scaleButton = new javax.swing.JToggleButton(); |
|
|
|
|
jSeparator5 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jToggleScene = new javax.swing.JToggleButton(); |
|
|
|
|
jToggleGrid = new javax.swing.JToggleButton(); |
|
|
|
|
jSeparator8 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jToggleSelectGeom = new javax.swing.JToggleButton(); |
|
|
|
|
jToggleSelectTerrain = new javax.swing.JToggleButton(); |
|
|
|
|
jSeparator7 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
moveToCursorButton = new javax.swing.JButton(); |
|
|
|
|
jSeparator4 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jLabel3 = new javax.swing.JLabel(); |
|
|
|
|
showSelectionToggleButton = new javax.swing.JToggleButton(); |
|
|
|
|
showGridToggleButton = new javax.swing.JToggleButton(); |
|
|
|
|
jSeparator3 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jLabel1 = new javax.swing.JLabel(); |
|
|
|
|
resetCursorButton = new javax.swing.JButton(); |
|
|
|
@ -113,16 +115,11 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
jSeparator2 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jLabel2 = new javax.swing.JLabel(); |
|
|
|
|
camToCursorSelectionButton = new javax.swing.JButton(); |
|
|
|
|
jSeparator4 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jLabel3 = new javax.swing.JLabel(); |
|
|
|
|
showSelectionToggleButton = new javax.swing.JToggleButton(); |
|
|
|
|
showGridToggleButton = new javax.swing.JToggleButton(); |
|
|
|
|
jSeparator1 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jLabel6 = new javax.swing.JLabel(); |
|
|
|
|
jButton2 = new javax.swing.JButton(); |
|
|
|
|
jButton3 = new javax.swing.JButton(); |
|
|
|
|
jSeparator7 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jToggleScene = new javax.swing.JToggleButton(); |
|
|
|
|
jToggleGrid = new javax.swing.JToggleButton(); |
|
|
|
|
jSeparator8 = new javax.swing.JToolBar.Separator(); |
|
|
|
|
jToggleSelectGeom = new javax.swing.JToggleButton(); |
|
|
|
|
jToggleSelectTerrain = new javax.swing.JToggleButton(); |
|
|
|
|
jPanel3 = new javax.swing.JPanel(); |
|
|
|
|
jPanel4 = new javax.swing.JPanel(); |
|
|
|
|
jToolBar2 = new javax.swing.JToolBar(); |
|
|
|
@ -138,6 +135,9 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
jSeparator6 = new javax.swing.JSeparator(); |
|
|
|
|
jLabel5 = new javax.swing.JLabel(); |
|
|
|
|
emitButton = new javax.swing.JButton(); |
|
|
|
|
jLabel6 = new javax.swing.JLabel(); |
|
|
|
|
jButton2 = new javax.swing.JButton(); |
|
|
|
|
jButton3 = new javax.swing.JButton(); |
|
|
|
|
|
|
|
|
|
setBackground(new java.awt.Color(204, 204, 204)); |
|
|
|
|
|
|
|
|
@ -152,8 +152,8 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
sceneInfoPanel.setLayout(sceneInfoPanelLayout); |
|
|
|
|
sceneInfoPanelLayout.setHorizontalGroup( |
|
|
|
|
sceneInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(sceneInfoLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 365, Short.MAX_VALUE) |
|
|
|
|
.addComponent(sceneInfoLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 365, Short.MAX_VALUE) |
|
|
|
|
.addComponent(sceneInfoLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
.addComponent(sceneInfoLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
); |
|
|
|
|
sceneInfoPanelLayout.setVerticalGroup( |
|
|
|
|
sceneInfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
@ -161,7 +161,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
.addComponent(sceneInfoLabel1) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(sceneInfoLabel2) |
|
|
|
|
.addContainerGap(107, Short.MAX_VALUE)) |
|
|
|
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
jToolBar1.setBackground(new java.awt.Color(204, 204, 204)); |
|
|
|
@ -226,6 +226,60 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
jToolBar1.add(scaleButton); |
|
|
|
|
jToolBar1.add(jSeparator5); |
|
|
|
|
|
|
|
|
|
jToggleScene.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/snapScene.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleScene, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleScene.text")); // NOI18N
|
|
|
|
|
jToggleScene.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleScene.toolTipText")); // NOI18N
|
|
|
|
|
jToggleScene.setFocusable(false); |
|
|
|
|
jToggleScene.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleScene.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleScene.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleSceneActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleScene); |
|
|
|
|
|
|
|
|
|
jToggleGrid.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/snapGrid.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleGrid, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleGrid.text")); // NOI18N
|
|
|
|
|
jToggleGrid.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleGrid.toolTipText")); // NOI18N
|
|
|
|
|
jToggleGrid.setFocusable(false); |
|
|
|
|
jToggleGrid.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleGrid.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleGrid.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleGridActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleGrid); |
|
|
|
|
jToolBar1.add(jSeparator8); |
|
|
|
|
|
|
|
|
|
jToggleSelectGeom.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/selectGeometry.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleSelectGeom, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectGeom.text")); // NOI18N
|
|
|
|
|
jToggleSelectGeom.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectGeom.toolTipText")); // NOI18N
|
|
|
|
|
jToggleSelectGeom.setFocusable(false); |
|
|
|
|
jToggleSelectGeom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleSelectGeom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleSelectGeom.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleSelectGeomActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleSelectGeom); |
|
|
|
|
|
|
|
|
|
jToggleSelectTerrain.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/selectTerrain.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleSelectTerrain, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectTerrain.text")); // NOI18N
|
|
|
|
|
jToggleSelectTerrain.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectTerrain.toolTipText")); // NOI18N
|
|
|
|
|
jToggleSelectTerrain.setFocusable(false); |
|
|
|
|
jToggleSelectTerrain.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleSelectTerrain.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleSelectTerrain.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleSelectTerrainActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleSelectTerrain); |
|
|
|
|
jToolBar1.add(jSeparator7); |
|
|
|
|
|
|
|
|
|
moveToCursorButton.setBackground(new java.awt.Color(204, 204, 204)); |
|
|
|
|
moveToCursorButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/move.gif"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(moveToCursorButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.moveToCursorButton.text")); // NOI18N
|
|
|
|
@ -239,36 +293,6 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(moveToCursorButton); |
|
|
|
|
jToolBar1.add(jSeparator4); |
|
|
|
|
|
|
|
|
|
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/box_wire.gif"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel3.text")); // NOI18N
|
|
|
|
|
jToolBar1.add(jLabel3); |
|
|
|
|
|
|
|
|
|
showSelectionToggleButton.setSelected(true); |
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(showSelectionToggleButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showSelectionToggleButton.text")); // NOI18N
|
|
|
|
|
showSelectionToggleButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showSelectionToggleButton.toolTipText")); // NOI18N
|
|
|
|
|
showSelectionToggleButton.setFocusable(false); |
|
|
|
|
showSelectionToggleButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); |
|
|
|
|
showSelectionToggleButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
showSelectionToggleButton.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
showSelectionToggleButtonActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(showSelectionToggleButton); |
|
|
|
|
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(showGridToggleButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showGridToggleButton.text")); // NOI18N
|
|
|
|
|
showGridToggleButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showGridToggleButton.toolTipText")); // NOI18N
|
|
|
|
|
showGridToggleButton.setFocusable(false); |
|
|
|
|
showGridToggleButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); |
|
|
|
|
showGridToggleButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
showGridToggleButton.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
showGridToggleButtonActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(showGridToggleButton); |
|
|
|
|
jToolBar1.add(jSeparator3); |
|
|
|
|
|
|
|
|
|
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/cursor.gif"))); // NOI18N
|
|
|
|
@ -318,91 +342,37 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(camToCursorSelectionButton); |
|
|
|
|
jToolBar1.add(jSeparator1); |
|
|
|
|
|
|
|
|
|
jLabel6.setFont(new java.awt.Font("Lucida Grande", 0, 10)); |
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel6.text")); // NOI18N
|
|
|
|
|
jToolBar1.add(jLabel6); |
|
|
|
|
|
|
|
|
|
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/play.gif"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jButton2, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton2.text")); // NOI18N
|
|
|
|
|
jButton2.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton2.toolTipText")); // NOI18N
|
|
|
|
|
jButton2.setFocusable(false); |
|
|
|
|
jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jButton2.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jButton2ActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jButton2); |
|
|
|
|
|
|
|
|
|
jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/pause.gif"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jButton3, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton3.text")); // NOI18N
|
|
|
|
|
jButton3.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton3.toolTipText")); // NOI18N
|
|
|
|
|
jButton3.setFocusable(false); |
|
|
|
|
jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jButton3.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jButton3ActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jButton3); |
|
|
|
|
jToolBar1.add(jSeparator7); |
|
|
|
|
|
|
|
|
|
jToggleScene.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/snapScene.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleScene, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleScene.text")); // NOI18N
|
|
|
|
|
jToggleScene.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleScene.toolTipText")); // NOI18N
|
|
|
|
|
jToggleScene.setFocusable(false); |
|
|
|
|
jToggleScene.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleScene.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleScene.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleSceneActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleScene); |
|
|
|
|
jToolBar1.add(jSeparator4); |
|
|
|
|
|
|
|
|
|
jToggleGrid.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/snapGrid.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleGrid, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleGrid.text")); // NOI18N
|
|
|
|
|
jToggleGrid.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleGrid.toolTipText")); // NOI18N
|
|
|
|
|
jToggleGrid.setFocusable(false); |
|
|
|
|
jToggleGrid.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleGrid.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleGrid.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleGridActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleGrid); |
|
|
|
|
jToolBar1.add(jSeparator8); |
|
|
|
|
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/box_wire.gif"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel3.text")); // NOI18N
|
|
|
|
|
jToolBar1.add(jLabel3); |
|
|
|
|
|
|
|
|
|
jToggleSelectGeom.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/selectGeometry.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleSelectGeom, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectGeom.text")); // NOI18N
|
|
|
|
|
jToggleSelectGeom.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectGeom.toolTipText")); // NOI18N
|
|
|
|
|
jToggleSelectGeom.setFocusable(false); |
|
|
|
|
jToggleSelectGeom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleSelectGeom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleSelectGeom.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
showSelectionToggleButton.setSelected(true); |
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(showSelectionToggleButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showSelectionToggleButton.text")); // NOI18N
|
|
|
|
|
showSelectionToggleButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showSelectionToggleButton.toolTipText")); // NOI18N
|
|
|
|
|
showSelectionToggleButton.setFocusable(false); |
|
|
|
|
showSelectionToggleButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); |
|
|
|
|
showSelectionToggleButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
showSelectionToggleButton.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleSelectGeomActionPerformed(evt); |
|
|
|
|
showSelectionToggleButtonActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleSelectGeom); |
|
|
|
|
jToolBar1.add(showSelectionToggleButton); |
|
|
|
|
|
|
|
|
|
jToggleSelectTerrain.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/selectTerrain.png"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleSelectTerrain, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectTerrain.text")); // NOI18N
|
|
|
|
|
jToggleSelectTerrain.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jToggleSelectTerrain.toolTipText")); // NOI18N
|
|
|
|
|
jToggleSelectTerrain.setFocusable(false); |
|
|
|
|
jToggleSelectTerrain.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jToggleSelectTerrain.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jToggleSelectTerrain.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(showGridToggleButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showGridToggleButton.text")); // NOI18N
|
|
|
|
|
showGridToggleButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.showGridToggleButton.toolTipText")); // NOI18N
|
|
|
|
|
showGridToggleButton.setFocusable(false); |
|
|
|
|
showGridToggleButton.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); |
|
|
|
|
showGridToggleButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
showGridToggleButton.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jToggleSelectTerrainActionPerformed(evt); |
|
|
|
|
showGridToggleButtonActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
jToolBar1.add(jToggleSelectTerrain); |
|
|
|
|
jToolBar1.add(showGridToggleButton); |
|
|
|
|
jToolBar1.add(jSeparator1); |
|
|
|
|
|
|
|
|
|
jPanel3.setBackground(new java.awt.Color(204, 204, 204)); |
|
|
|
|
|
|
|
|
@ -410,11 +380,11 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
jPanel3.setLayout(jPanel3Layout); |
|
|
|
|
jPanel3Layout.setHorizontalGroup( |
|
|
|
|
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGap(0, 168, Short.MAX_VALUE) |
|
|
|
|
.addGap(0, 133, Short.MAX_VALUE) |
|
|
|
|
); |
|
|
|
|
jPanel3Layout.setVerticalGroup( |
|
|
|
|
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGap(0, 23, Short.MAX_VALUE) |
|
|
|
|
.addGap(0, 21, Short.MAX_VALUE) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
jToolBar1.add(jPanel3); |
|
|
|
@ -481,21 +451,55 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel6.text")); // NOI18N
|
|
|
|
|
|
|
|
|
|
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/play.gif"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jButton2, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton2.text")); // NOI18N
|
|
|
|
|
jButton2.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton2.toolTipText")); // NOI18N
|
|
|
|
|
jButton2.setFocusable(false); |
|
|
|
|
jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jButton2.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jButton2ActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/pause.gif"))); // NOI18N
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jButton3, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton3.text")); // NOI18N
|
|
|
|
|
jButton3.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton3.toolTipText")); // NOI18N
|
|
|
|
|
jButton3.setFocusable(false); |
|
|
|
|
jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); |
|
|
|
|
jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); |
|
|
|
|
jButton3.addActionListener(new java.awt.event.ActionListener() { |
|
|
|
|
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
|
|
|
jButton3ActionPerformed(evt); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); |
|
|
|
|
jPanel4.setLayout(jPanel4Layout); |
|
|
|
|
jPanel4Layout.setHorizontalGroup( |
|
|
|
|
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(jToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE) |
|
|
|
|
.addComponent(jToolBar3, javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE) |
|
|
|
|
.addComponent(jToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE) |
|
|
|
|
.addComponent(jToolBar3, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE) |
|
|
|
|
.addGroup(jPanel4Layout.createSequentialGroup() |
|
|
|
|
.addContainerGap() |
|
|
|
|
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addComponent(jSeparator6, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE) |
|
|
|
|
.addComponent(jSeparator6, javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE) |
|
|
|
|
.addGroup(jPanel4Layout.createSequentialGroup() |
|
|
|
|
.addGap(10, 10, 10) |
|
|
|
|
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(jPanel4Layout.createSequentialGroup() |
|
|
|
|
.addComponent(jLabel6) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) |
|
|
|
|
.addComponent(jButton2) |
|
|
|
|
.addComponent(jButton3)) |
|
|
|
|
.addGroup(jPanel4Layout.createSequentialGroup() |
|
|
|
|
.addComponent(jLabel5) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(emitButton, javax.swing.GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE))) |
|
|
|
|
.addComponent(emitButton))) |
|
|
|
|
.addGap(0, 0, Short.MAX_VALUE))) |
|
|
|
|
.addContainerGap()) |
|
|
|
|
); |
|
|
|
|
jPanel4Layout.setVerticalGroup( |
|
|
|
@ -510,7 +514,14 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
|
|
|
|
.addComponent(jLabel5) |
|
|
|
|
.addComponent(emitButton)) |
|
|
|
|
.addContainerGap(40, Short.MAX_VALUE)) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|
.addGroup(jPanel4Layout.createSequentialGroup() |
|
|
|
|
.addGap(4, 4, 4) |
|
|
|
|
.addComponent(jLabel6)) |
|
|
|
|
.addComponent(jButton2) |
|
|
|
|
.addComponent(jButton3)) |
|
|
|
|
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); |
|
|
|
@ -521,7 +532,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce |
|
|
|
|
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
|
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) |
|
|
|
|
.addComponent(sceneInfoPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) |
|
|
|
|
.addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 772, Short.MAX_VALUE) |
|
|
|
|
.addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) |
|
|
|
|
); |
|
|
|
|
layout.setVerticalGroup( |
|
|
|
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
|
|
|
|