From 009350323123fc4b47041cb2194e8df19f69423b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 25 May 2008 09:03:33 +0000 Subject: Run astyle. --- sources/prefs/editors/VSBetterEditor.java | 20 ++--- sources/prefs/editors/VSColorChooser.java | 14 +-- sources/prefs/editors/VSEditor.java | 126 +++++++++++++-------------- sources/prefs/editors/VSEditorFrame.java | 8 +- sources/prefs/editors/VSEditorTable.java | 40 ++++----- sources/prefs/editors/VSProcessEditor.java | 8 +- sources/prefs/editors/VSSimulatorEditor.java | 12 +-- 7 files changed, 114 insertions(+), 114 deletions(-) (limited to 'sources/prefs/editors') diff --git a/sources/prefs/editors/VSBetterEditor.java b/sources/prefs/editors/VSBetterEditor.java index 211e8ed..79470ba 100644 --- a/sources/prefs/editors/VSBetterEditor.java +++ b/sources/prefs/editors/VSBetterEditor.java @@ -16,19 +16,19 @@ import utils.*; * The Class VSBetterEditor. */ public abstract class VSBetterEditor extends VSEditor { - + /** The content pane. */ private Container contentPane; - + /** The info area. */ private VSInfoArea infoArea; - + /** The title. */ private String title; /** * Instantiates a new vS better editor. - * + * * @param prefs the prefs * @param prefsToEdit the prefs to edit * @param title the title @@ -41,7 +41,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Gets the title. - * + * * @return the title */ public String getTitle() { @@ -50,7 +50,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Gets the content pane. - * + * * @return the content pane */ public Container getContentPane() { @@ -60,7 +60,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Creates the content pane. - * + * * @return the j panel */ private JPanel createContentPane() { @@ -83,12 +83,12 @@ public abstract class VSBetterEditor extends VSEditor { * @see prefs.editors.VSEditor#addToButtonPanelFront(javax.swing.JPanel) */ protected void addToButtonPanelFront(JPanel buttonPanel) { } - + /* (non-Javadoc) * @see prefs.editors.VSEditor#addToButtonPanelLast(javax.swing.JPanel) */ protected void addToButtonPanelLast(JPanel buttonPanel) { } - + /* (non-Javadoc) * @see prefs.editors.VSEditor#addToEditTableLast() */ @@ -106,7 +106,7 @@ public abstract class VSBetterEditor extends VSEditor { /** * Gets the info area. - * + * * @return the info area */ protected VSInfoArea getInfoArea() { diff --git a/sources/prefs/editors/VSColorChooser.java b/sources/prefs/editors/VSColorChooser.java index 245e599..0b5c849 100644 --- a/sources/prefs/editors/VSColorChooser.java +++ b/sources/prefs/editors/VSColorChooser.java @@ -15,23 +15,23 @@ import prefs.VSPrefs; * The Class VSColorChooser. */ public class VSColorChooser extends JPanel implements ChangeListener { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** The color chooser. */ protected JColorChooser colorChooser; - + /** The color. */ private Color color; - + /** The val field. */ private JTextField valField; - + /** The prefs. */ - //private VSPrefs prefs; + //private VSPrefs prefs; /** * Instantiates a new vS color chooser. - * + * * @param prefs the prefs * @param valField the val field */ diff --git a/sources/prefs/editors/VSEditor.java b/sources/prefs/editors/VSEditor.java index 8eda1e0..013b62a 100644 --- a/sources/prefs/editors/VSEditor.java +++ b/sources/prefs/editors/VSEditor.java @@ -17,82 +17,82 @@ import prefs.VSPrefs; * The Class VSEditor. */ public abstract class VSEditor implements ActionListener { - + /** The boolean keys. */ private ArrayList booleanKeys; - + /** The color keys. */ private ArrayList colorKeys; - + /** The float keys. */ private ArrayList floatKeys; - + /** The integer keys. */ private ArrayList integerKeys; - + /** The long keys. */ private ArrayList longKeys; - + /** The string keys. */ private ArrayList stringKeys; - + /** The boolean fields. */ private HashMap booleanFields; - + /** The integer fields. */ private HashMap integerFields; - + /** The color fields. */ private HashMap colorFields; - + /** The float fields. */ private HashMap floatFields; - + /** The long fields. */ private HashMap longFields; - + /** The string fields. */ private HashMap stringFields; - + /** The prefs to edit map. */ private HashMap prefsToEditMap; - + /** The button panel. */ private JPanel buttonPanel; - + /** The edit panel. */ private JPanel editPanel; - + /** The edit table. */ private VSEditorTable editTable; - + /** The frame. */ private VSFrame frame; - + /** The expert mode changed. */ private boolean expertModeChanged; - + /** The prefs. */ protected VSPrefs prefs; - + /** The prefs to edit. */ protected VSPrefs prefsToEdit; - + /** The Constant MIN_UNIT_LENGTH. */ protected static final int MIN_UNIT_LENGTH = 5; - + /** The Constant VALUE_FIELD_COLS. */ protected static final int VALUE_FIELD_COLS = 9; - + /** The Constant ALL_PREFERENCES. */ public static final int ALL_PREFERENCES = 0; - + /** The Constant SIMULATION_PREFERENCES. */ public static final int SIMULATION_PREFERENCES = 1; /** * Instantiates a new vS editor. - * + * * @param prefs the prefs * @param prefsToEdit the prefs to edit */ @@ -102,18 +102,18 @@ public abstract class VSEditor implements ActionListener { /** * Adds the to button panel front. - * + * * @param buttonPanel the button panel */ abstract protected void addToButtonPanelFront(JPanel buttonPanel); - + /** * Adds the to button panel last. - * + * * @param buttonPanel the button panel */ abstract protected void addToButtonPanelLast(JPanel buttonPanel); - + /** * Adds the to edit table last. */ @@ -121,7 +121,7 @@ public abstract class VSEditor implements ActionListener { /** * Sets the prefs. - * + * * @param prefs the new prefs */ public void setPrefs(VSPrefs prefs) { @@ -130,7 +130,7 @@ public abstract class VSEditor implements ActionListener { /** * Sets the prefs to edit. - * + * * @param prefsToEdit the new prefs to edit */ public void setPrefsToEdit(VSPrefs prefsToEdit) { @@ -139,7 +139,7 @@ public abstract class VSEditor implements ActionListener { /** * Sets the frame. - * + * * @param frame the new frame */ public void setFrame(VSFrame frame) { @@ -148,7 +148,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the frame. - * + * * @return the frame */ public VSFrame getFrame() { @@ -173,7 +173,7 @@ public abstract class VSEditor implements ActionListener { /** * Inits the. - * + * * @param prefs the prefs * @param prefsToEdit the prefs to edit */ @@ -205,9 +205,9 @@ public abstract class VSEditor implements ActionListener { /** * Filter keys. - * + * * @param set the set - * + * * @return the array list< string> */ private ArrayList filterKeys(Set set) { @@ -228,7 +228,7 @@ public abstract class VSEditor implements ActionListener { /** * Creates the button panel. - * + * * @return the j panel */ private JPanel createButtonPanel() { @@ -249,10 +249,10 @@ public abstract class VSEditor implements ActionListener { /** * Creates the unit panel. - * + * * @param comp the comp * @param key the key - * + * * @return the j panel */ private JPanel createUnitPanel(Component comp, String key) { @@ -278,7 +278,7 @@ public abstract class VSEditor implements ActionListener { /** * Creates the edit panel. - * + * * @return the j panel */ private JPanel createEditPanel() { @@ -295,11 +295,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the integer component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j combo box> */ protected VSTupel createIntegerComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -331,11 +331,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the boolean component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j check box> */ protected VSTupel createBooleanComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -350,11 +350,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the long component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel createLongComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -375,11 +375,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the float component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel createFloatComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -400,11 +400,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the color component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel createColorComponent(String fullKey, String key, final VSPrefs prefsToEdit) { @@ -441,11 +441,11 @@ public abstract class VSEditor implements ActionListener { /** * Creates the string component. - * + * * @param fullKey the full key * @param key the key * @param prefsToEdit the prefs to edit - * + * * @return the vS tupel< string, component, j text field> */ protected VSTupel createStringComponent(String fullKey, String key, VSPrefs prefsToEdit) { @@ -466,7 +466,7 @@ public abstract class VSEditor implements ActionListener { /** * Fill edit panel. - * + * * @param prefsToEdit the prefs to edit */ private void fillEditPanel(VSPrefs prefsToEdit) { @@ -593,7 +593,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the to editor. - * + * * @param label the label * @param prefsKey the prefs key * @param prefsToAdd the prefs to add @@ -661,7 +661,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the separator. - * + * * @param label the label */ private void addSeparator(String label) { @@ -670,7 +670,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the variable. - * + * * @param label the label * @param component the component * @param prefs the prefs @@ -681,7 +681,7 @@ public abstract class VSEditor implements ActionListener { /** * Adds the variable. - * + * * @param prefsKey the prefs key * @param label the label * @param component the component @@ -734,9 +734,9 @@ public abstract class VSEditor implements ActionListener { /** * Gets the keys. - * + * * @param key the key - * + * * @return [0] := key, [1] := prefsKey */ private String[] getKeys(String key) { @@ -817,7 +817,7 @@ public abstract class VSEditor implements ActionListener { /** * Expert mode changed. - * + * * @return true, if successful */ public boolean expertModeChanged() { @@ -845,7 +845,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the edits the panel. - * + * * @return the edits the panel */ public JPanel getEditPanel() { @@ -854,7 +854,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the edits the table. - * + * * @return the edits the table */ public VSEditorTable getEditTable() { @@ -863,7 +863,7 @@ public abstract class VSEditor implements ActionListener { /** * Gets the button panel. - * + * * @return the button panel */ public JPanel getButtonPanel() { diff --git a/sources/prefs/editors/VSEditorFrame.java b/sources/prefs/editors/VSEditorFrame.java index 18a5eb6..9af98fa 100644 --- a/sources/prefs/editors/VSEditorFrame.java +++ b/sources/prefs/editors/VSEditorFrame.java @@ -16,16 +16,16 @@ import utils.*; * The Class VSEditorFrame. */ public class VSEditorFrame extends VSFrame implements ActionListener { - + /** The editor. */ private VSBetterEditor editor; - + /** The prefs. */ private VSPrefs prefs; /** * Instantiates a new vS editor frame. - * + * * @param prefs the prefs * @param relativeTo the relative to * @param editor the editor @@ -53,7 +53,7 @@ public class VSEditorFrame extends VSFrame implements ActionListener { /** * Fill button panel. - * + * * @param buttonPanel the button panel */ private void fillButtonPanel(JPanel buttonPanel) { diff --git a/sources/prefs/editors/VSEditorTable.java b/sources/prefs/editors/VSEditorTable.java index 88d7886..4963f68 100644 --- a/sources/prefs/editors/VSEditorTable.java +++ b/sources/prefs/editors/VSEditorTable.java @@ -18,17 +18,17 @@ import prefs.*; * The Class VSEditorTable. */ public class VSEditorTable extends JTable { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** The Constant MIN_ROWS. */ private static final int MIN_ROWS = 20; - + /** The prefs. */ private VSPrefs prefs; - + /** The nodes. */ private ArrayList nodes; - + /** The model. */ private VSEditorTableModel model; @@ -36,16 +36,16 @@ public class VSEditorTable extends JTable { * The Class VSNode. */ private class VSNode { - + /** The key. */ private String key; - + /** The comp. */ private Component comp; /** * Instantiates a new vS node. - * + * * @param key the key */ public VSNode(String key) { @@ -54,7 +54,7 @@ public class VSEditorTable extends JTable { /** * Instantiates a new vS node. - * + * * @param key the key * @param comp the comp */ @@ -65,7 +65,7 @@ public class VSEditorTable extends JTable { /** * Gets the key. - * + * * @return the key */ public String getKey() { @@ -74,7 +74,7 @@ public class VSEditorTable extends JTable { /** * Gets the component. - * + * * @return the component */ public Component getComponent() { @@ -83,7 +83,7 @@ public class VSEditorTable extends JTable { /** * Gets the renderer component. - * + * * @return the renderer component */ public Component getRendererComponent() { @@ -92,7 +92,7 @@ public class VSEditorTable extends JTable { /** * Checks if is separator. - * + * * @return true, if is separator */ public boolean isSeparator() { @@ -104,8 +104,8 @@ public class VSEditorTable extends JTable { * The Class VSEditorTableModel. */ private class VSEditorTableModel extends AbstractTableModel implements TableCellRenderer { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /** * Instantiates a new vS editor table model. */ @@ -207,8 +207,8 @@ public class VSEditorTable extends JTable { * The Class VSTableCellEditor. */ private class VSTableCellEditor extends AbstractCellEditor implements TableCellEditor { - private static final long serialVersionUID = 1L; - + private static final long serialVersionUID = 1L; + /* (non-Javadoc) * @see javax.swing.table.TableCellEditor#getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int) */ @@ -227,7 +227,7 @@ public class VSEditorTable extends JTable { /** * Instantiates a new vS editor table. - * + * * @param prefs the prefs */ public VSEditorTable(VSPrefs prefs) { @@ -252,7 +252,7 @@ public class VSEditorTable extends JTable { /** * Adds the variable. - * + * * @param key the key * @param comp the comp */ @@ -262,7 +262,7 @@ public class VSEditorTable extends JTable { /** * Adds the separator. - * + * * @param text the text */ public void addSeparator(String text) { diff --git a/sources/prefs/editors/VSProcessEditor.java b/sources/prefs/editors/VSProcessEditor.java index e17f89a..fc0e01d 100644 --- a/sources/prefs/editors/VSProcessEditor.java +++ b/sources/prefs/editors/VSProcessEditor.java @@ -18,16 +18,16 @@ import prefs.VSPrefs; * The Class VSProcessEditor. */ public class VSProcessEditor extends VSBetterEditor { - + /** The process. */ private VSProcess process; - + /** The TAKEOVE r_ button. */ public static boolean TAKEOVER_BUTTON; - + /** * Instantiates a new vS process editor. - * + * * @param prefs the prefs * @param process the process */ diff --git a/sources/prefs/editors/VSSimulatorEditor.java b/sources/prefs/editors/VSSimulatorEditor.java index 1264377..2bd965f 100644 --- a/sources/prefs/editors/VSSimulatorEditor.java +++ b/sources/prefs/editors/VSSimulatorEditor.java @@ -15,22 +15,22 @@ import prefs.*; * The Class VSSimulatorEditor. */ public class VSSimulatorEditor extends VSBetterEditor { - + /** The simulator frame. */ private VSSimulatorFrame simulatorFrame; - + /** The simulation. */ private VSSimulator simulation; - + /** The TAKEOVE r_ button. */ public static boolean TAKEOVER_BUTTON; - + /** The dont start new simulation. */ private boolean dontStartNewSimulation; /** * Instantiates a new vS simulator editor. - * + * * @param prefs the prefs * @param simulatorFrame the simulator frame * @param simulation the simulation @@ -45,7 +45,7 @@ public class VSSimulatorEditor extends VSBetterEditor { /** * Instantiates a new vS simulator editor. - * + * * @param prefs the prefs * @param simulatorFrame the simulator frame */ -- cgit v1.2.3