~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/xcos/src/java/org/scilab/modules/xcos/block/listener/SumPortLabelingListener.java

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
/**
28
28
 * Change the port label on rpar change.
29
 
 * 
 
29
 *
30
30
 * This listener must be installed on "integerParameters" property.
31
31
 */
 
32
@SuppressWarnings(value = { "serial" })
32
33
public class SumPortLabelingListener implements PropertyChangeListener,
33
 
        Serializable {
 
34
    Serializable {
34
35
 
35
36
    private static final String NOT_PRINTED_LABEL = "+";
36
37
    private static SumPortLabelingListener instance;
54
55
    /**
55
56
     * Change the label of the port according to the integer parameters
56
57
     * property.
57
 
     * 
 
58
     *
58
59
     * @param evt
59
60
     *            the event
60
61
     * @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
111
112
 
112
113
    /**
113
114
     * Has all the ports have the default value ?
114
 
     * 
 
115
     *
115
116
     * @param ports
116
117
     *            the ports list
117
118
     * @return true if they all have the default values
132
133
 
133
134
    /**
134
135
     * Return the symbol for the gain value
135
 
     * 
 
136
     *
136
137
     * @param gain
137
138
     *            the current gain
138
139
     * @return A label representing the gain