@ -30,6 +30,7 @@ import com.fr.design.mainframe.EastRegionContainerPane;
import com.fr.design.mainframe.FormArea ;
import com.fr.design.mainframe.FormArea ;
import com.fr.design.mainframe.FormDesigner ;
import com.fr.design.mainframe.FormDesigner ;
import com.fr.design.mainframe.FormDesignerModeForSpecial ;
import com.fr.design.mainframe.FormDesignerModeForSpecial ;
import com.fr.design.mainframe.FormDesignerUI ;
import com.fr.design.mainframe.FormParaPane ;
import com.fr.design.mainframe.FormParaPane ;
import com.fr.design.mainframe.FormWidgetDetailPane ;
import com.fr.design.mainframe.FormWidgetDetailPane ;
import com.fr.design.mainframe.JTemplate ;
import com.fr.design.mainframe.JTemplate ;
@ -58,6 +59,7 @@ import java.awt.Graphics;
import java.awt.Image ;
import java.awt.Image ;
import java.awt.Insets ;
import java.awt.Insets ;
import java.awt.Rectangle ;
import java.awt.Rectangle ;
import java.awt.event.MouseEvent ;
import java.util.ArrayList ;
import java.util.ArrayList ;
import java.util.Arrays ;
import java.util.Arrays ;
import java.util.List ;
import java.util.List ;
@ -467,6 +469,21 @@ public class FormParaDesigner extends FormDesigner implements ParameterDesignerP
return ( ( FormParameterUI ) getTarget ( ) ) . getDesignSize ( ) ;
return ( ( FormParameterUI ) getTarget ( ) ) . getDesignSize ( ) ;
}
}
/ * *
* 设置其UI类为DesignerUI , 负责渲染
* /
@Override
public void updateUI ( ) {
setUI ( new FormDesignerUI ( ) {
@Override
protected Rectangle getFitPaintBounds ( Component component , Component parent ) {
return new Rectangle ( 0 , 0 , parent . getSize ( ) . width , parent . getSize ( ) . height ) ;
}
} ) ;
}
/ * *
/ * *
* 设置高度
* 设置高度
*
*
@ -722,4 +739,11 @@ public class FormParaDesigner extends FormDesigner implements ParameterDesignerP
return new JComponent [ ] { new CutAction ( this ) . createToolBarComponent ( ) , new CopyAction ( this ) . createToolBarComponent ( ) , new PasteAction ( this ) . createToolBarComponent ( ) ,
return new JComponent [ ] { new CutAction ( this ) . createToolBarComponent ( ) , new CopyAction ( this ) . createToolBarComponent ( ) , new PasteAction ( this ) . createToolBarComponent ( ) ,
new FormDeleteAction ( this ) . createToolBarComponent ( ) } ;
new FormDeleteAction ( this ) . createToolBarComponent ( ) } ;
}
}
@Override
public boolean checkIfBeyondValidArea ( MouseEvent e ) {
return false ;
}
}
}