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 40 public final class Trace2DActionZindexIncrease extends ATrace2DAction { 41 42 45 private static final long serialVersionUID = 3978986583057707570L; 46 47 50 private int m_increase; 51 52 70 public Trace2DActionZindexIncrease(final ITrace2D trace, final String description, 71 final int increase) { 72 super(trace, description); 73 this.m_increase = increase; 74 } 75 76 79 public void actionPerformed(final ActionEvent e) { 80 int value = this.m_trace.getZIndex().intValue(); 81 this.m_trace.setZIndex(new Integer (value + this.m_increase)); 82 } 83 84 87 public void propertyChange(final PropertyChangeEvent evt) { 88 } 91 } 92 | Popular Tags |