|
|
@ -1,6 +1,5 @@ |
|
|
|
package com.fr.design.designer.beans.painters; |
|
|
|
package com.fr.design.designer.beans.painters; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.designer.beans.painters.AbstractPainter; |
|
|
|
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
import com.fr.design.designer.creator.XLayoutContainer; |
|
|
|
import com.fr.design.designer.creator.XOccupiedLayout; |
|
|
|
import com.fr.design.designer.creator.XOccupiedLayout; |
|
|
@ -50,7 +49,8 @@ public class FRFixLayoutPainter extends AbstractPainter { |
|
|
|
} else if (!((XCreator) currentComp).acceptType(XOccupiedLayout.class)) { |
|
|
|
} else if (!((XCreator) currentComp).acceptType(XOccupiedLayout.class)) { |
|
|
|
state = OperateState.COMPONENT_REPLACE; |
|
|
|
state = OperateState.COMPONENT_REPLACE; |
|
|
|
} |
|
|
|
} |
|
|
|
state.paint(g, creator.getBackupRectangle(), currentComp.getBounds(), new Rectangle(x, y, creator.initEditorSize().width, ((XCreator) currentComp).initEditorSize().height)); |
|
|
|
Rectangle currentCompRec = new Rectangle(currentComp.getX() - startX, currentComp.getY() - startY, currentComp.getWidth(), currentComp.getHeight()); |
|
|
|
|
|
|
|
state.paint(g, creator.getBackupRectangle(), currentCompRec, new Rectangle(x, y, creator.initEditorSize().width, ((XCreator) currentComp).initEditorSize().height)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Color bColor = XCreatorConstants.LAYOUT_FORBIDDEN_COLOR; |
|
|
|
Color bColor = XCreatorConstants.LAYOUT_FORBIDDEN_COLOR; |
|
|
|
int[] hot_rec = new int[]{x, y, 0, 0}; |
|
|
|
int[] hot_rec = new int[]{x, y, 0, 0}; |
|
|
|