|
|
|
@ -1,17 +1,16 @@
|
|
|
|
|
package com.fr.design.gui.frpane; |
|
|
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
|
|
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.event.GlobalNameListener; |
|
|
|
|
import com.fr.design.event.GlobalNameObserver; |
|
|
|
|
import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
|
import com.fr.design.gui.style.NumberDragBar; |
|
|
|
|
|
|
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
|
import javax.swing.event.ChangeListener; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class UINumberDragPane extends BasicBeanPane<Double> implements GlobalNameObserver { |
|
|
|
|
private static final long serialVersionUID = -8681716725163358249L; |
|
|
|
@ -35,7 +34,7 @@ public class UINumberDragPane extends BasicBeanPane<Double> implements GlobalNam
|
|
|
|
|
|
|
|
|
|
public UINumberDragPane(double minValue, double maxValue, double dierta) { |
|
|
|
|
dragBar = new NumberDragBar((int) minValue, (int) maxValue); |
|
|
|
|
spinner = new UISpinner(minValue, maxValue, dierta, minValue); |
|
|
|
|
spinner = createUISpinner(minValue, maxValue, dierta); |
|
|
|
|
spinner.setGlobalName(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_StyleAlignment_Text_Rotation")); |
|
|
|
|
this.setLayout(new BorderLayout(4, 0)); |
|
|
|
|
this.add(spinner, BorderLayout.EAST); |
|
|
|
@ -66,6 +65,10 @@ public class UINumberDragPane extends BasicBeanPane<Double> implements GlobalNam
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected UISpinner createUISpinner(double minValue, double maxValue, double dierta) { |
|
|
|
|
return new UISpinner(minValue, maxValue, dierta, minValue); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加事件 |
|
|
|
|
* @param l 事件 |
|
|
|
|