Class ElementDrawer<T extends JRPrintElement>
- java.lang.Object
-
- net.sf.jasperreports.engine.export.draw.ElementDrawer<T>
-
- Type Parameters:
T
- the type of the element that the drawer supports
- Direct Known Subclasses:
BoxDrawer
,EllipseDrawer
,FrameDrawer
,ImageDrawer
,LineDrawer
,RectangleDrawer
,TextDrawer
public abstract class ElementDrawer<T extends JRPrintElement> extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description ElementDrawer(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
draw(Graphics2D grx, T element, int offsetX, int offsetY)
protected void
drawBottomPen(Graphics2D grx, JRPen leftPen, JRPen bottomPen, JRPen rightPen, JRPrintElement element, int offsetX, int offsetY)
protected void
drawBox(Graphics2D grx, JRLineBox box, JRPrintElement element, int offsetX, int offsetY)
protected void
drawLeftPen(Graphics2D grx, JRPen topPen, JRPen leftPen, JRPen bottomPen, JRPrintElement element, int offsetX, int offsetY)
protected void
drawPen(Graphics2D grx, JRPen pen, JRPrintElement element, int offsetX, int offsetY)
protected void
drawRightPen(Graphics2D grx, JRPen topPen, JRPen bottomPen, JRPen rightPen, JRPrintElement element, int offsetX, int offsetY)
protected void
drawTopPen(Graphics2D grx, JRPen topPen, JRPen leftPen, JRPen rightPen, JRPrintElement element, int offsetX, int offsetY)
JasperReportsContext
getJasperReportsContext()
-
-
-
Constructor Detail
-
ElementDrawer
public ElementDrawer(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
getJasperReportsContext
public JasperReportsContext getJasperReportsContext()
-
draw
public abstract void draw(Graphics2D grx, T element, int offsetX, int offsetY) throws JRException
- Throws:
JRException
-
drawBox
protected void drawBox(Graphics2D grx, JRLineBox box, JRPrintElement element, int offsetX, int offsetY)
-
drawPen
protected void drawPen(Graphics2D grx, JRPen pen, JRPrintElement element, int offsetX, int offsetY)
-
drawTopPen
protected void drawTopPen(Graphics2D grx, JRPen topPen, JRPen leftPen, JRPen rightPen, JRPrintElement element, int offsetX, int offsetY)
-
drawLeftPen
protected void drawLeftPen(Graphics2D grx, JRPen topPen, JRPen leftPen, JRPen bottomPen, JRPrintElement element, int offsetX, int offsetY)
-
drawBottomPen
protected void drawBottomPen(Graphics2D grx, JRPen leftPen, JRPen bottomPen, JRPen rightPen, JRPrintElement element, int offsetX, int offsetY)
-
drawRightPen
protected void drawRightPen(Graphics2D grx, JRPen topPen, JRPen bottomPen, JRPen rightPen, JRPrintElement element, int offsetX, int offsetY)
-
-