Changeset 338


Ignore:
Timestamp:
Apr 4, 2012, 9:19:35 PM (5 years ago)
Author:
tim.te.beek@…
Message:

Update documentation & remove getter in AttributesModel?

Location:
trunk/expression-data-viewer/src/main/java/nl/nbic/brs/expview/model
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/expression-data-viewer/src/main/java/nl/nbic/brs/expview/model/AttributesModel.java

    r337 r338  
    55
    66import lombok.Delegate;
    7 import lombok.Getter;
    87
    98public class AttributesModel implements ListModel, ListSelectionModel {
    109        @Delegate(types = ListModel.class)
    11         AvailableAttributesModel        availableAttributesModel;
     10        private AvailableAttributesModel        availableAttributesModel;
    1211
    13         @Getter
    1412        @Delegate(types = ListSelectionModel.class)
    15         SelectedAttributesModel         selectedAttributesModel;
     13        private SelectedAttributesModel         selectedAttributesModel;
    1614
    1715        public AttributesModel(final PlottingParams plottingParams) {
     
    3432         * @return array with the names of selected attributes
    3533         */
    36         public String[] getSelectedAttributes() {
     34        protected String[] getSelectedAttributes() {
    3735                int[] selectedAttributeIndices = selectedAttributesModel.getSelectedAttributeIndices();
    3836                String[] selectedAttributes = new String[selectedAttributeIndices.length];
  • trunk/expression-data-viewer/src/main/java/nl/nbic/brs/expview/model/AvailableAttributesModel.java

    r337 r338  
    7070                }
    7171
    72                 // Sort and compare: If nothing changed we don't need to notify
     72                // Sort and compare: If nothing changed we don't need to notify: This breaks the circle of notifications
    7373                Collections.sort(_availableAttributes);
    7474                if (availableAttributes.equals(_availableAttributes))
  • trunk/expression-data-viewer/src/main/java/nl/nbic/brs/expview/model/PlottingParams.java

    r337 r338  
    3030        NetworkComboBoxModel    networkModel                            = new NetworkComboBoxModel();
    3131        ButtonModel                             onlyExpressionAttributes        = new ToggleButtonModel();
    32         AttributesModel                 attributesModel;
    3332        DefaultCategoryDataset  dataset                                         = new DefaultCategoryDataset();
     33        final AttributesModel   attributesModel;
    3434
    3535        public PlottingParams() {
     
    6969
    7070        /**
    71          * For changes in selected attributes.
     71         * Listen for changes in selected attributes: Update dataset to refresh JFreeChart & notify our own listeners.
    7272         *
    7373         * @param event
  • trunk/expression-data-viewer/src/main/java/nl/nbic/brs/expview/model/SelectedAttributesModel.java

    r337 r338  
    2828        }
    2929
    30         // Methods to update selection when the source list data changes
     30        /**
     31         * Listen for changes to available attributes. Clear selection when changes are found.
     32         */
    3133        @Override
    3234        public void contentsChanged(final ListDataEvent event) {
Note: See TracChangeset for help on using the changeset viewer.