|
|
|
@ -327,8 +327,8 @@ public class EditingMouseListener extends MouseInputAdapter {
|
|
|
|
|
if (designer.getCursor().getType() == Cursor.HAND_CURSOR) { |
|
|
|
|
designer.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); |
|
|
|
|
} // component.getParent() 是报表块所在的XWTitleLayout
|
|
|
|
|
int minX = button.getX() + getParentPositionX(component, 0) - designer.getArea().getHorizontalValue(); |
|
|
|
|
int minY = button.getY() + getParentPositionY(component, 0) - designer.getArea().getVerticalValue(); |
|
|
|
|
int minX = button.getX() + getParentPositionX(component, 0) - designer.getHorizontalScaleValue(); |
|
|
|
|
int minY = button.getY() + getParentPositionY(component, 0) - designer.getVerticalScaleValue(); |
|
|
|
|
if (e.getX() + GAP - xElementCase.getInsets().left > minX && e.getX() - GAP - xElementCase.getInsets().left < minX + button.getWidth()) { |
|
|
|
|
if (e.getY() + GAP - xElementCase.getInsets().top > minY && e.getY() - GAP - xElementCase.getInsets().top < minY + button.getHeight()) { |
|
|
|
|
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
|
|
@ -342,8 +342,8 @@ public class EditingMouseListener extends MouseInputAdapter {
|
|
|
|
|
if (component.getCoverPane() != null) { |
|
|
|
|
if (component.getCoverPane().getComponentCount() > 1) { |
|
|
|
|
JComponent button1 = (JComponent) component.getCoverPane().getComponent(1); |
|
|
|
|
int minX1 = button1.getX() + getParentPositionX(component, 0) - designer.getArea().getHorizontalValue(); |
|
|
|
|
int minY1 = button1.getY() + getParentPositionY(component, 0) - designer.getArea().getVerticalValue(); |
|
|
|
|
int minX1 = button1.getX() + getParentPositionX(component, 0) - designer.getHorizontalScaleValue(); |
|
|
|
|
int minY1 = button1.getY() + getParentPositionY(component, 0) - designer.getVerticalScaleValue(); |
|
|
|
|
if (e.getX() + GAP - component.getInsets().left > minX1 && e.getX() - GAP - component.getInsets().left < minX1 + button1.getWidth()) { |
|
|
|
|
if (e.getY() + GAP - component.getInsets().top > minY1 && e.getY() - GAP - component.getInsets().top < minY1 + button1.getHeight()) { |
|
|
|
|
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
|
|
@ -358,8 +358,8 @@ public class EditingMouseListener extends MouseInputAdapter {
|
|
|
|
|
if (StringUtils.isEmpty(component.toData().getDescription())) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
int minX1 = getParentPositionX(component, component.getX()) + component.getWidth() - ShareConstants.SHARE_EL_CONTROL_BUTTON_HW - designer.getArea().getHorizontalValue(); |
|
|
|
|
int minY1 = getParentPositionY(component, component.getY()) - designer.getArea().getVerticalValue(); |
|
|
|
|
int minX1 = getParentPositionX(component, component.getX()) + component.getWidth() - ShareConstants.SHARE_EL_CONTROL_BUTTON_HW - designer.getHorizontalScaleValue(); |
|
|
|
|
int minY1 = getParentPositionY(component, component.getY()) - designer.getVerticalScaleValue(); |
|
|
|
|
if (e.getX() + GAP - component.getInsets().left > minX1 && e.getX() - GAP - component.getInsets().left < minX1 + ShareConstants.SHARE_EL_CONTROL_BUTTON_HW) { |
|
|
|
|
if (e.getY() + GAP - component.getInsets().top > minY1 && e.getY() - GAP - component.getInsets().top < minY1 + ShareConstants.SHARE_EL_CONTROL_BUTTON_HW) { |
|
|
|
|
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
|
|
@ -426,8 +426,8 @@ public class EditingMouseListener extends MouseInputAdapter {
|
|
|
|
|
if (designer.getCursor().getType() == Cursor.HAND_CURSOR) { |
|
|
|
|
designer.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); |
|
|
|
|
} |
|
|
|
|
int minX = button.getX() + getParentPositionX(component, 0) - designer.getArea().getHorizontalValue(); |
|
|
|
|
int minY = button.getY() + getParentPositionY(component, 0) - designer.getArea().getVerticalValue(); |
|
|
|
|
int minX = button.getX() + getParentPositionX(component, 0) - designer.getHorizontalScaleValue(); |
|
|
|
|
int minY = button.getY() + getParentPositionY(component, 0) - designer.getVerticalScaleValue(); |
|
|
|
|
if (e.getX() + GAP > minX && e.getX() - GAP < minX + button.getWidth()) { |
|
|
|
|
if (e.getY() + GAP > minY && e.getY() - GAP < minY + button.getHeight()) { |
|
|
|
|
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); |
|
|
|
|