|
|
|
@ -13,7 +13,7 @@ import com.fr.design.designer.beans.models.SelectionModel;
|
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
|
import com.fr.design.designer.creator.XWFitLayout; |
|
|
|
|
import com.fr.design.designer.creator.XWTitleLayout; |
|
|
|
|
import com.fr.design.designer.creator.cardlayout.XWCardMainBorderLayout; |
|
|
|
|
import com.fr.design.form.util.XCreatorConstants; |
|
|
|
|
import com.fr.design.roleAuthority.ReportAndFSManagePane; |
|
|
|
|
import com.fr.design.utils.ComponentUtils; |
|
|
|
@ -24,6 +24,7 @@ import com.fr.report.core.ReportUtils;
|
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
|
|
|
|
|
import java.awt.dnd.DropTarget; |
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.plaf.ComponentUI; |
|
|
|
|
import java.awt.AlphaComposite; |
|
|
|
@ -94,6 +95,7 @@ public class FormDesignerUI extends ComponentUI {
|
|
|
|
|
} |
|
|
|
|
paintBorder(g); |
|
|
|
|
paintSelection(g); |
|
|
|
|
paintDropBorderShadow(g); |
|
|
|
|
|
|
|
|
|
if (DesignerMode.isAuthorityEditing()) { |
|
|
|
|
paintAuthorityDetails(g, designer.getRootComponent()); |
|
|
|
@ -330,6 +332,25 @@ public class FormDesignerUI extends ComponentUI {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 绘制可拖拽进tab块之前的阴影 |
|
|
|
|
* |
|
|
|
|
* @param g |
|
|
|
|
*/ |
|
|
|
|
private void paintDropBorderShadow(Graphics g) { |
|
|
|
|
DropTarget dropTarget = designer.getDropTarget(); |
|
|
|
|
if (dropTarget instanceof FormCreatorDropTarget) { |
|
|
|
|
FormCreatorDropTarget target = (FormCreatorDropTarget) dropTarget; |
|
|
|
|
XLayoutContainer layoutContainer = target.getTabDragInner().getBelowXLayoutContainer(); |
|
|
|
|
if (layoutContainer != null && layoutContainer.acceptType(XWCardMainBorderLayout.class)) { |
|
|
|
|
Rectangle creatorBounds = ComponentUtils.getRelativeBounds(layoutContainer); |
|
|
|
|
creatorBounds.x -= designer.getHorizontalScaleValue(); |
|
|
|
|
creatorBounds.y -= designer.getVerticalScaleValue(); |
|
|
|
|
layoutContainer.paintBorder(g, creatorBounds); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 初始为自适应时,处理选中的范围 |
|
|
|
|
* @param bound |
|
|
|
|