Minor adaption
This commit is contained in:
parent
be6c587cac
commit
ef1b2a066d
@ -16,12 +16,11 @@ public class PropertyMutationMixer implements java.io.Serializable {
|
||||
public String m_WeightsLabel = "-";
|
||||
public boolean m_NormalizationEnabled = true;
|
||||
|
||||
public PropertyMutationMixer(InterfaceMutation[] d, boolean selectAllOrNone) {
|
||||
public PropertyMutationMixer(InterfaceMutation[] d) {
|
||||
this.m_Weights = new double[d.length];
|
||||
for (int i = 0; i < d.length; i++) this.m_Weights[i] = 1/((double)d.length);
|
||||
this.m_AvailableTargets = d;
|
||||
if (selectAllOrNone) this.m_SelectedTargets = d.clone();
|
||||
else this.m_SelectedTargets = null;
|
||||
this.m_SelectedTargets = null;
|
||||
}
|
||||
public PropertyMutationMixer(PropertyMutationMixer d) {
|
||||
this.m_DescriptiveString = d.m_DescriptiveString;
|
||||
|
@ -401,13 +401,11 @@ public class PropertyMutationMixerEditor extends JPanel implements PropertyEdito
|
||||
/********************************* java.beans.PropertyChangeListener *************************/
|
||||
|
||||
public void addPropertyChangeListener(PropertyChangeListener l) {
|
||||
if (m_Support == null) m_Support = new PropertyChangeSupport(this);
|
||||
m_Support.addPropertyChangeListener(l);
|
||||
m_Support.addPropertyChangeListener(l);
|
||||
}
|
||||
|
||||
public void removePropertyChangeListener(PropertyChangeListener l) {
|
||||
if (m_Support == null) m_Support = new PropertyChangeSupport(this);
|
||||
m_Support.removePropertyChangeListener(l);
|
||||
m_Support.removePropertyChangeListener(l);
|
||||
}
|
||||
/** This will wait for the GenericObjectEditor to finish
|
||||
* editing an object.
|
||||
|
Loading…
x
Reference in New Issue
Block a user