All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.celldynamics.quimp.plugin.protanalysis.ActionUpdateOptionsRadio Maven / Gradle / Ivy

Go to download

QuimP software, a set of plugins for ImageJ to quantify spatio-temporal patterns of fluorescently labeled proteins in the cortex of moving cells.

The newest version!
package com.github.celldynamics.quimp.plugin.protanalysis;

import java.awt.event.ActionEvent;

import org.apache.commons.lang3.mutable.MutableInt;

/**
 * Update option from Radio Button (grouped).
 * 
 * 

Radio buttons are grouped and their states are kept in one INT variable. * * @author p.baniukiewicz * */ @SuppressWarnings("serial") public class ActionUpdateOptionsRadio extends ProtAnalysisAbstractAction { private MutableInt val; private int valToSet; /** * Action creator. Boolean option. * * @param name name * @param desc description * @param ui reference to outer class. * @param option {@link ProtAnalysisOptions} option to change. Must be reference * @param valToSet Vale to set to this option if action is fired. */ public ActionUpdateOptionsRadio(String name, String desc, ProtAnalysisUi ui, MutableInt option, int valToSet) { super(name, desc, ui); val = option; this.valToSet = valToSet; } /* * (non-Javadoc) * * @see * com.github.celldynamics.quimp.plugin.protanalysis.ProtAnalysisAbstractAction#actionPerformed( * java.awt.event.ActionEvent) */ @Override public void actionPerformed(ActionEvent e) { val.setValue(valToSet); logger.trace(ui.getModel().getOptions().serialize()); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy