1 23 package info.monitorenter.gui.chart.events; 24 25 import info.monitorenter.gui.chart.ITrace2D; 26 27 import java.awt.event.ActionEvent ; 28 import java.beans.PropertyChangeEvent ; 29 30 39 public final class Trace2DActionZindexDecrease extends ATrace2DAction { 40 41 44 private static final long serialVersionUID = 3978986583057707570L; 45 46 49 private int m_decrease; 50 51 69 public Trace2DActionZindexDecrease(final ITrace2D trace, final String description, 70 final int decrease) { 71 super(trace, description); 72 this.m_decrease = decrease; 73 } 74 75 78 public void actionPerformed(final ActionEvent e) { 79 int value = this.m_trace.getZIndex().intValue(); 80 this.m_trace.setZIndex(new Integer (value - this.m_decrease)); 81 } 82 83 86 public void propertyChange(final PropertyChangeEvent evt) { 87 } 90 } 91 | Popular Tags |