|
|
|
@ -25,7 +25,6 @@ import com.fr.stable.Constants;
|
|
|
|
|
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
import javax.swing.SwingWorker; |
|
|
|
|
import javax.swing.plaf.ComponentUI; |
|
|
|
|
import java.awt.AlphaComposite; |
|
|
|
|
import java.awt.Color; |
|
|
|
@ -114,14 +113,8 @@ public class FormDesignerUI extends ComponentUI {
|
|
|
|
|
if (designer.getPainter() != null) { |
|
|
|
|
// ComponentAdapter和LayoutAdapter提供的额外的Painter,该Painter一般用于提示作用,
|
|
|
|
|
// 相当于一个浮动层, 要考虑参数面板的高度
|
|
|
|
|
new SwingWorker<Void, Void>() { |
|
|
|
|
@Override |
|
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
|
designer.getPainter().paint(g, designer.getArea().getHorizontalValue(), |
|
|
|
|
designer.getArea().getVerticalValue() + designer.getParaHeight()); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
} |
|
|
|
|
AddingModel addingModel = designer.getAddingModel(); |
|
|
|
|
|
|
|
|
|