Browse Source

Merge pull request #133 in DESIGN/design from ~PLOUGH/10-design:release/10.0 to release/10.0

* commit 'f3876e3590683c403c6f4e980810857c2ba8385f':
  REPORT-8608 安全性之水印交互验收问题
master
plough 6 years ago
parent
commit
477bf655e2
  1. BIN
      designer-base/src/com/fr/design/images/dialog/watermark/watermark_background.png
  2. 6
      designer-realize/src/com/fr/grid/GridUI.java

BIN
designer-base/src/com/fr/design/images/dialog/watermark/watermark_background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 121 KiB

6
designer-realize/src/com/fr/grid/GridUI.java

@ -10,6 +10,7 @@ import com.fr.base.PaperSize;
import com.fr.base.Utils;
import com.fr.base.background.ColorBackground;
import com.fr.base.background.ImageFileBackground;
import com.fr.base.iofileattr.WatermarkAttr;
import com.fr.design.constants.UIConstants;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.mainframe.DesignerContext;
@ -22,7 +23,9 @@ import com.fr.grid.selection.CellSelection;
import com.fr.grid.selection.FloatSelection;
import com.fr.grid.selection.Selection;
import com.fr.page.PaperSettingProvider;
import com.fr.page.ReportPage;
import com.fr.page.ReportSettingsProvider;
import com.fr.page.WatermarkPainter;
import com.fr.report.ReportHelper;
import com.fr.report.cell.CellElement;
import com.fr.report.cell.FloatElement;
@ -159,6 +162,9 @@ public class GridUI extends ComponentUI {
// denny: make that the background can move with scroll
paintScrollBackground(g2d, grid, background, psetting, reportSettings);
}
WatermarkAttr watermark = ReportUtils.getWatermarkFromAttrMarkFile(((WorkSheet) elementCase).getBook());
new WatermarkPainter(watermark).paint(g2d, this.back_or_selection_rect.getBounds());
}
private void clearBackground(Graphics2D g2d, Grid grid) {

Loading…
Cancel
Save