forked from fanruan/design
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
835 B
23 lines
835 B
package com.fr.grid; |
|
|
|
import java.awt.*; |
|
|
|
import com.fr.base.Style; |
|
import com.fr.report.cell.CellElement; |
|
import com.fr.report.cell.TemplateCellElement; |
|
import com.fr.report.core.PaintUtils; |
|
import com.fr.report.elementcase.ElementCase; |
|
|
|
public class CellElementPainter { |
|
public void paintBackground(Graphics2D g2d, ElementCase report, CellElement ce, int width, int height) { |
|
Style.paintBackground(g2d, ce.getStyle(), width, height); |
|
} |
|
|
|
public void paintContent(Graphics2D g2d, ElementCase report, TemplateCellElement ce, int width, int height, int resolution) { |
|
PaintUtils.paintGridCellContent(g2d, ce, width, height, resolution); |
|
} |
|
|
|
public void paintBorder(Graphics2D g2d, ElementCase report, CellElement ce, double width, double height) { |
|
Style.paintBorder(g2d, ce.getStyle(), width, height); |
|
} |
|
} |