Browse Source

Merge pull request #2303 in DESIGN/design from release/10.0 to bugfix/10.0

* commit '00243f77307bfc7a702b929ce5e203ffc8d0b6f9':
  REPORT-28952 frm 给图表块加标题后,图表块的编辑按钮显示位置和触发区域不一致
  REPORT-39481 删掉对repaint的调用
  CHART-15696 雷达图条件属性透明
bugfix/10.0
superman 4 years ago
parent
commit
9710203f7a
  1. 2
      designer-chart/src/main/java/com/fr/van/chart/radar/VanChartRadarConditionPane.java
  2. 4
      designer-form/src/main/java/com/fr/design/mainframe/EditingMouseListener.java
  3. 1
      designer-form/src/main/java/com/fr/design/mainframe/TopXCreators.java

2
designer-chart/src/main/java/com/fr/van/chart/radar/VanChartRadarConditionPane.java

@ -53,7 +53,7 @@ public class VanChartRadarConditionPane extends DataSeriesConditionPane{
} else { } else {
classPaneMap.put(VanChartAttrMarker.class, new VanChartMarkerConditionPane(this)); classPaneMap.put(VanChartAttrMarker.class, new VanChartMarkerConditionPane(this));
classPaneMap.put(VanChartAttrLine.class, new VanChartLineWidthConditionPane(this)); classPaneMap.put(VanChartAttrLine.class, new VanChartLineWidthConditionPane(this));
classPaneMap.put(AttrAreaSeriesFillColorBackground.class, new VanChartAreaFillColorConditionPane(this)); classPaneMap.put(AttrAreaSeriesFillColorBackground.class, new VanChartAreaFillColorConditionPane(this, plot));
classPaneMap.put(AttrEffect.class, new VanChartEffectConditionPane(this, EffectHelper.getRadarPlotDefaultEffect())); classPaneMap.put(AttrEffect.class, new VanChartEffectConditionPane(this, EffectHelper.getRadarPlotDefaultEffect()));
} }
} }

4
designer-form/src/main/java/com/fr/design/mainframe/EditingMouseListener.java

@ -363,7 +363,7 @@ public class EditingMouseListener extends MouseInputAdapter {
designer.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); designer.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
} // component.getParent() 是报表块所在的XWTitleLayout } // component.getParent() 是报表块所在的XWTitleLayout
int minX = button.getX() + getParentPositionX(component, 0) - designer.getHorizontalScaleValue(); int minX = button.getX() + getParentPositionX(component, 0) - designer.getHorizontalScaleValue();
int minY = button.getY() + getParentPositionY(component, 0) - designer.getVerticalScaleValue(); int minY = button.getY() + getParentPositionY(component, 0) - designer.getVerticalScaleValue() + xElementCase.getY();
if (e.getX() + GAP - xElementCase.getInsets().left > minX && e.getX() - GAP - xElementCase.getInsets().left < minX + button.getWidth()) { 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()) { if (e.getY() + GAP - xElementCase.getInsets().top > minY && e.getY() - GAP - xElementCase.getInsets().top < minY + button.getHeight()) {
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
@ -462,7 +462,7 @@ public class EditingMouseListener extends MouseInputAdapter {
designer.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); designer.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
} }
int minX = button.getX() + getParentPositionX(component, 0) - designer.getHorizontalScaleValue(); int minX = button.getX() + getParentPositionX(component, 0) - designer.getHorizontalScaleValue();
int minY = button.getY() + getParentPositionY(component, 0) - designer.getVerticalScaleValue(); int minY = button.getY() + getParentPositionY(component, 0) - designer.getVerticalScaleValue() + xChartEditor.getY();
if (e.getX() + GAP > minX && e.getX() - GAP < minX + button.getWidth()) { if (e.getX() + GAP > minX && e.getX() - GAP < minX + button.getWidth()) {
if (e.getY() + GAP > minY && e.getY() - GAP < minY + button.getHeight()) { if (e.getY() + GAP > minY && e.getY() - GAP < minY + button.getHeight()) {
designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); designer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

1
designer-form/src/main/java/com/fr/design/mainframe/TopXCreators.java

@ -72,6 +72,5 @@ public class TopXCreators extends JComponent {
TopXCreator topXCreator = (TopXCreator) getComponent(i); TopXCreator topXCreator = (TopXCreator) getComponent(i);
topXCreator.resizeTopXCreator(); topXCreator.resizeTopXCreator();
} }
repaint();
} }
} }

Loading…
Cancel
Save