@ -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 ( ) . get HorizontalValue ( ) ;
int minY = button . getY ( ) + getParentPositionY ( component , 0 ) - designer . getArea ( ) . get VerticalValue ( ) ;
int minX = button . getX ( ) + getParentPositionX ( component , 0 ) - designer . getHorizontalScale Value ( ) ;
int minY = button . getY ( ) + getParentPositionY ( component , 0 ) - designer . getVerticalScale Value ( ) ;
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 ( ) . get HorizontalValue ( ) ;
int minY1 = button1 . getY ( ) + getParentPositionY ( component , 0 ) - designer . getArea ( ) . get VerticalValue ( ) ;
int minX1 = button1 . getX ( ) + getParentPositionX ( component , 0 ) - designer . getHorizontalScale Value ( ) ;
int minY1 = button1 . getY ( ) + getParentPositionY ( component , 0 ) - designer . getVerticalScale Value ( ) ;
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 ( ) . get HorizontalValue ( ) ;
int minY1 = getParentPositionY ( component , component . getY ( ) ) - designer . getArea ( ) . get VerticalValue ( ) ;
int minX1 = getParentPositionX ( component , component . getX ( ) ) + component . getWidth ( ) - ShareConstants . SHARE_EL_CONTROL_BUTTON_HW - designer . getHorizontalScale Value ( ) ;
int minY1 = getParentPositionY ( component , component . getY ( ) ) - designer . getVerticalScale Value ( ) ;
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 ( ) . get HorizontalValue ( ) ;
int minY = button . getY ( ) + getParentPositionY ( component , 0 ) - designer . getArea ( ) . get VerticalValue ( ) ;
int minX = button . getX ( ) + getParentPositionX ( component , 0 ) - designer . getHorizontalScale Value ( ) ;
int minY = button . getY ( ) + getParentPositionY ( component , 0 ) - designer . getVerticalScale Value ( ) ;
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 ) ) ;