com.stimulsoft.report.export.tools
Class StiPdfGeomWriter

java.lang.Object
  extended by com.stimulsoft.report.export.tools.StiPdfGeomWriter
All Implemented Interfaces:
IStiExportGeomWriter

public class StiPdfGeomWriter
extends java.lang.Object
implements IStiExportGeomWriter

Copyright Stimulsoft


Field Summary
 boolean assembleData
           
 
Constructor Summary
StiPdfGeomWriter()
           
StiPdfGeomWriter(StiOutputStreamWriter stream, StiPdfExportService service)
           
StiPdfGeomWriter(StiOutputStreamWriter stream, StiPdfExportService service, boolean assembleData)
           
 
Method Summary
 void beginPath()
           
 void closeFigure()
           
 void drawArc(StiRectangle rect, StiPoint p1, StiPoint p2, StiPen pen)
           
 void drawBezier(StiPoint p1, StiPoint p2, StiPoint p3, StiPoint p4, StiPen pen)
           
 void drawBezierTo(StiPoint p2, StiPoint p3, StiPoint p4, StiPen pen)
           
 void drawEllipse(StiRectangle rect, StiPen pen)
           
 void drawImage(StiImage img, StiRectangle rect)
           
 void drawLine(StiPoint pointFrom, StiPoint pointTo, StiPen pen)
           
 void drawLineTo(StiPoint pointTo, StiPen pen)
           
 void drawPolygon(StiPoint[] points, StiPen pen)
           
 void drawPolyline(StiPoint[] points, StiPen pen)
           
 void drawPolyline(StiPoint[] points, StiPen pen, boolean close, boolean drawTo)
           
 void drawPolylineTo(StiPoint[] points, StiPen pen)
           
 void drawRectangle(StiRectangle rect, StiPen pen)
           
 void drawString(java.lang.String st, StiFont font, StiBrush brush, StiRectangle rect, StiTextHorAlignment horAlignment, StiVertAlignment vertAlignment)
           
 void drawText(StiPoint basePoint, java.lang.String text, int[] charsOffset, StiFont font, StiColor textColor, double angle, EmfTextAlignmentMode textAlign)
           
 void endPath()
           
 void fillEllipse(StiRectangle rect, StiBrush brush)
           
 void fillPath(StiBrush brush)
           
 void fillPolygon(StiPoint[] points, StiBrush brush)
           
 void fillRectangle(StiRectangle rect, StiBrush brush)
           
 void fillRectangle(StiRectangle rect, StiColor color)
           
 StiSize measureString(java.lang.String st, StiFont font)
           
 void moveTo(StiPoint point)
           
 void restoreState()
           
 void rotateTransform(double angle)
           
 void saveState()
           
 boolean setBrush(java.lang.Object brush, StiRectangle rect, StiRefObject<java.lang.Boolean> isTransparent, boolean saveState)
           
 void setPixel(StiPoint point, StiColor color)
           
 void strokePath(StiPen pen)
           
 void translateTransform(double x, double y)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assembleData

public boolean assembleData
Constructor Detail

StiPdfGeomWriter

public StiPdfGeomWriter()

StiPdfGeomWriter

public StiPdfGeomWriter(StiOutputStreamWriter stream,
                        StiPdfExportService service)

StiPdfGeomWriter

public StiPdfGeomWriter(StiOutputStreamWriter stream,
                        StiPdfExportService service,
                        boolean assembleData)
Method Detail

beginPath

public void beginPath()
Specified by:
beginPath in interface IStiExportGeomWriter

closeFigure

public void closeFigure()
Specified by:
closeFigure in interface IStiExportGeomWriter

endPath

public void endPath()
Specified by:
endPath in interface IStiExportGeomWriter

fillPath

public void fillPath(StiBrush brush)
              throws java.io.IOException
Specified by:
fillPath in interface IStiExportGeomWriter
Throws:
java.io.IOException

strokePath

public void strokePath(StiPen pen)
                throws java.io.IOException
Specified by:
strokePath in interface IStiExportGeomWriter
Throws:
java.io.IOException

moveTo

public void moveTo(StiPoint point)
            throws java.io.IOException
Specified by:
moveTo in interface IStiExportGeomWriter
Throws:
java.io.IOException

drawLine

public void drawLine(StiPoint pointFrom,
                     StiPoint pointTo,
                     StiPen pen)
              throws java.io.IOException
Specified by:
drawLine in interface IStiExportGeomWriter
Throws:
java.io.IOException

drawLineTo

public void drawLineTo(StiPoint pointTo,
                       StiPen pen)
                throws java.io.IOException
Specified by:
drawLineTo in interface IStiExportGeomWriter
Throws:
java.io.IOException

drawRectangle

public void drawRectangle(StiRectangle rect,
                          StiPen pen)
                   throws java.lang.Exception
Specified by:
drawRectangle in interface IStiExportGeomWriter
Throws:
java.lang.Exception

fillRectangle

public void fillRectangle(StiRectangle rect,
                          StiColor color)
                   throws java.lang.Exception
Specified by:
fillRectangle in interface IStiExportGeomWriter
Throws:
java.lang.Exception

fillRectangle

public void fillRectangle(StiRectangle rect,
                          StiBrush brush)
                   throws java.lang.Exception
Specified by:
fillRectangle in interface IStiExportGeomWriter
Throws:
java.lang.Exception

drawPolyline

public void drawPolyline(StiPoint[] points,
                         StiPen pen)
                  throws java.io.IOException
Specified by:
drawPolyline in interface IStiExportGeomWriter
Throws:
java.io.IOException

drawPolygon

public void drawPolygon(StiPoint[] points,
                        StiPen pen)
                 throws java.lang.Exception
Specified by:
drawPolygon in interface IStiExportGeomWriter
Throws:
java.lang.Exception

drawPolyline

public void drawPolyline(StiPoint[] points,
                         StiPen pen,
                         boolean close,
                         boolean drawTo)
                  throws java.io.IOException
Throws:
java.io.IOException

drawPolylineTo

public void drawPolylineTo(StiPoint[] points,
                           StiPen pen)
                    throws java.io.IOException
Specified by:
drawPolylineTo in interface IStiExportGeomWriter
Throws:
java.io.IOException

fillPolygon

public void fillPolygon(StiPoint[] points,
                        StiBrush brush)
                 throws java.lang.Exception
Specified by:
fillPolygon in interface IStiExportGeomWriter
Throws:
java.lang.Exception

drawBezier

public void drawBezier(StiPoint p1,
                       StiPoint p2,
                       StiPoint p3,
                       StiPoint p4,
                       StiPen pen)
Specified by:
drawBezier in interface IStiExportGeomWriter

drawBezierTo

public void drawBezierTo(StiPoint p2,
                         StiPoint p3,
                         StiPoint p4,
                         StiPen pen)
Specified by:
drawBezierTo in interface IStiExportGeomWriter

drawArc

public void drawArc(StiRectangle rect,
                    StiPoint p1,
                    StiPoint p2,
                    StiPen pen)
Specified by:
drawArc in interface IStiExportGeomWriter

drawEllipse

public void drawEllipse(StiRectangle rect,
                        StiPen pen)

fillEllipse

public void fillEllipse(StiRectangle rect,
                        StiBrush brush)
                 throws java.lang.Exception
Specified by:
fillEllipse in interface IStiExportGeomWriter
Throws:
java.lang.Exception

setPixel

public void setPixel(StiPoint point,
                     StiColor color)
Specified by:
setPixel in interface IStiExportGeomWriter

setBrush

public boolean setBrush(java.lang.Object brush,
                        StiRectangle rect,
                        StiRefObject<java.lang.Boolean> isTransparent,
                        boolean saveState)
                 throws java.io.IOException
Throws:
java.io.IOException

drawImage

public void drawImage(StiImage img,
                      StiRectangle rect)
               throws java.io.IOException
Specified by:
drawImage in interface IStiExportGeomWriter
Throws:
java.io.IOException

drawText

public void drawText(StiPoint basePoint,
                     java.lang.String text,
                     int[] charsOffset,
                     StiFont font,
                     StiColor textColor,
                     double angle,
                     EmfTextAlignmentMode textAlign)
              throws java.lang.Exception
Specified by:
drawText in interface IStiExportGeomWriter
Throws:
java.lang.Exception

drawString

public void drawString(java.lang.String st,
                       StiFont font,
                       StiBrush brush,
                       StiRectangle rect,
                       StiTextHorAlignment horAlignment,
                       StiVertAlignment vertAlignment)
                throws java.io.IOException
Specified by:
drawString in interface IStiExportGeomWriter
Throws:
java.io.IOException

saveState

public void saveState()
               throws java.io.IOException
Specified by:
saveState in interface IStiExportGeomWriter
Throws:
java.io.IOException

restoreState

public void restoreState()
                  throws java.io.IOException
Specified by:
restoreState in interface IStiExportGeomWriter
Throws:
java.io.IOException

translateTransform

public void translateTransform(double x,
                               double y)
                        throws java.io.IOException
Specified by:
translateTransform in interface IStiExportGeomWriter
Throws:
java.io.IOException

rotateTransform

public void rotateTransform(double angle)
                     throws java.io.IOException
Specified by:
rotateTransform in interface IStiExportGeomWriter
Throws:
java.io.IOException

measureString

public StiSize measureString(java.lang.String st,
                             StiFont font)
Specified by:
measureString in interface IStiExportGeomWriter