Ignore:
Timestamp:
07/14/13 23:20:04 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • improve tree side notes
  • improve GUI layout
  • add foldable list of occured events to EventControl?
  • improve automatic type conversion in proxy listeners
  • implement several Access functionalities as algorithms independent of Access type
  • introduce draft base classes for distributed experiments
  • automatically register dependant Java classes to FramsClass? registry
  • add testing prime experiment and configuration
  • simplify and improve task dispatching

CHANGELOG:
Improve task dispatching in RemoteTree?.

GUI no longer hangs on connection problems.

Make all dispatchers joinables.

Refactorize Thread dispatcher.

Remove Task and PeriodicTask?.

Use Java utilities in those situations.

Reworking tasks dispatching.

Fix bug in EventControl? listener dispatching.

Minor improvements.

Add testing configuration for ExternalProcess? in GUI.

More improvement to prime.

Support for USERREADONLY in GUI.

Add that flag to various params in Java classes.

Remove redundant register clauses from several FramsClassAnnotations?.

Automatically gather and register dependant classes.

Add configuration for prime.

Improve Simulator class.

Add prime.xml configuration.

Introduce draft Experiment and Simulator classes.

Add prime experiment tests.

Enclose typical map with listeners into SimpleUniqueList?.

Needfile works in GUI.

Improve needfile handling in Browser.

More improvement with NeedFile?.

Implementing needfile.

Update test.

Rename ChangeEvent? to TestChangeEvent?.

Automatic argument type search in RemoteTree? listeners.

MultiParamLoader? uses AccessProvider?. By default old implementation
enclosed in AccessStash? or Registry.

Minor changes.

Rename SourceInterface? to Source.

Also improve toString of File and ListSource?.

Remove unused SimpleSource? class.

Add clearing in HistoryControl?.

Show entries in table at EventControl?.

Improve EventControl?.

Add listeners registration to EventControl?.

Add foldable table to HistoryControl?.

Add control row to Procedure and Event controls.

Improve layout of controls.

Another minor change to gui layout.

Minor improvement in the SliderControl?.

Minor changes.

Move ReflectionAccess?.Backend to separate file.

It was to cluttered.

Cleanup in ReflectionAccess?.

Move setMin, setMax, setDef to AccessOperations?.

Extract loading operation into AccessOperations?.

Append Framsticks to name of UnsupportedOperationException?.

The java.lang.UnsupportedOperationException? was shadowing this class.

Rename params.Util to params.ParamsUtil?.

Several improvements.

Minor changes.

Implement revert functionality.

Improve local changes management.

Minor improvement.

Remove methods rendered superfluous after SideNoteKey? improvement.

Improve SideNoteKey?.

It is now generic type, so explicit type specification at
call site is no more needed.

Introduce SideNoteKey? interface.

Only Objects implementing that key may be used as side note keys.

Minor improvements.

Use strings instead of ValueControls? in several gui mappings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/gui/controls/SliderControl.java

    r100 r101  
    1818import org.apache.logging.log4j.LogManager;
    1919
     20import com.framsticks.gui.Gui;
    2021import com.framsticks.params.types.DecimalParam;
    2122import com.framsticks.params.types.FloatParam;
     
    9899                slider.setPaintTicks(true);
    99100
    100                 this.setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
    101                 this.setAlignmentX(Box.CENTER_ALIGNMENT);
    102                 this.setAlignmentY(Box.CENTER_ALIGNMENT);
    103 
    104                 JPanel sliderPanel = new JPanel();
    105                 // sliderPanel.setLayout(new BoxLayout(sliderPanel, BoxLayout.LINE_AXIS));
     101
    106102
    107103
     
    140136                }));
    141137
    142                 JPanel sVPanel = new JPanel();
    143                 sVPanel.setLayout(new BoxLayout(sVPanel, BoxLayout.LINE_AXIS));
    144                 sVPanel.add(text);
    145                 Layout.copyComponentDimensions(sVPanel, text);
    146 
    147                 JPanel sPanel = new JPanel();
    148                 sPanel.setLayout(new BoxLayout(sPanel, BoxLayout.LINE_AXIS));
    149 
     138                JPanel valuePanel = new JPanel();
     139                valuePanel.setLayout(new BoxLayout(valuePanel, BoxLayout.LINE_AXIS));
     140                valuePanel.add(text);
     141                Layout.copyComponentDimensions(valuePanel, text);
     142
     143
     144                JPanel sliderPanel = new JPanel();
    150145                sliderPanel.setLayout(new BorderLayout());
    151146                sliderPanel.add(slider, BorderLayout.CENTER);
     
    153148                sliderPanel.setMinimumSize(new Dimension(0, 60));
    154149
    155                 sPanel.add(sVPanel);
    156                 sPanel.add(sliderPanel);
    157 
    158                 this.add(sPanel);
     150
     151                this.setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
     152                this.setAlignmentX(Box.CENTER_ALIGNMENT);
     153                this.setAlignmentY(Box.CENTER_ALIGNMENT);
     154
     155                Gui.addLeftToLabel(this, valuePanel, sliderPanel);
    159156        }
    160157
Note: See TracChangeset for help on using the changeset viewer.