Blame view

src/mior/controler/ConfigureRadiusAction.java 508 Bytes
1b1e928cc   glaville   initial import of...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  package mior.controler;
  
  import java.awt.event.ActionEvent;
  
  import javax.swing.AbstractButton;
  
  import mior.view.MiorCanvas;
  
  public class ConfigureRadiusAction extends AbstractMiorAction<MiorCanvas> {
  
  	private static final long serialVersionUID = 1L;
  
  	public ConfigureRadiusAction(MiorCanvas data) {
  		super(data, "Show MM radius");
  	}
  	
  	@Override
  	public void actionPerformed(ActionEvent e) {
  		AbstractButton src = (AbstractButton) e.getSource();
  		getData().setRadiusVisible(src.isSelected());
  	}
  
  }