Home
last modified time | relevance | path

Searched refs:paintingState (Results 1 – 25 of 30) sorted by relevance

12

/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/render/afp/
H A DAFPDocumentHandler.java78 private final AFPPaintingState paintingState; field in AFPDocumentHandler
150 return this.paintingState; in getPaintingState()
176 paintingState.setColor(Color.WHITE); in startDocument()
264 paintingState.clear(); in startPage()
270 paintingState.setPageWidth(pageWidth); in startPage()
509 return paintingState.getResolution(); in getResolution()
534 paintingState.setWrapPSeg(pSeg); in setWrapPSeg()
538 paintingState.setWrapGocaPSeg(pSeg); in setWrapGocaPSeg()
543 paintingState.setFS45(fs45); in setFS45()
548 return paintingState.getWrapPSeg(); in getWrapPSeg()
[all …]
H A DAFPImageHandlerRenderedImage.java129 encoder.prepareEncoding(imageObjectInfo, paintingState); in handleImage()
191 AFPPaintingState paintingState) { in prepareEncoding() argument
192 maxPixelSize = paintingState.getBitsPerPixel(); in prepareEncoding()
193 if (paintingState.isColorImages()) { in prepareEncoding()
194 if (paintingState.isCMYKImagesSupported()) { in prepareEncoding()
212 int resolution = paintingState.getResolution(); in prepareEncoding()
236 int resolution = paintingState.getResolution(); in prepareEncoding()
244 AFPPaintingState paintingState)
314 if (!paintingState.canEmbedJpeg()
341 if (paintingState.getFS45()) {
[all …]
H A DAFPGraphics2DAdapter.java43 private final AFPPaintingState paintingState; field in AFPGraphics2DAdapter
50 public AFPGraphics2DAdapter(AFPPaintingState paintingState) { in AFPGraphics2DAdapter() argument
51 this.paintingState = paintingState; in AFPGraphics2DAdapter()
65 paintingState.save(); in paintImage()
80 AffineTransform at = paintingState.getData().getTransform(); in paintImage()
99 paintingState.restore(); in paintImage()
104 return Math.round(paintingState.getUnitConverter().mpt2units(unit)); in mpt2px()
H A DAFPInfo.java52 private AFPPaintingState paintingState; field in AFPInfo
132 return this.paintingState; in getPaintingState()
220 public void setPaintingState(AFPPaintingState paintingState) { in setPaintingState() argument
221 this.paintingState = paintingState; in setPaintingState()
292 textAsShapes, paintingState, resourceManager, resourceInfo, fontInfo); in createGraphics2D()
306 + ", paintingState=" + paintingState in toString()
H A DAFPSVGHandler.java111 AFPPaintingState paintingState = g2d.getPaintingState(); in renderSVGDocument() local
112 paintingState.setImageUri(uri); in renderSVGDocument()
139 paintingState.save(); // save in renderSVGDocument()
147 paintingState, painter, userAgent, resourceInfo, g2d); in renderSVGDocument()
154 paintingState.restore(); // resume in renderSVGDocument()
157 private AFPObjectAreaInfo createObjectAreaInfo(AFPPaintingState paintingState, in createObjectAreaInfo() argument
161 AffineTransform at = paintingState.getData().getTransform(); in createObjectAreaInfo()
163 AFPUnitConverter unitConv = paintingState.getUnitConverter(); in createObjectAreaInfo()
165 int rotation = paintingState.getRotation(); in createObjectAreaInfo()
176 AFPPaintingState paintingState, Graphics2DImagePainter painter, in createGraphicsObjectInfo() argument
[all …]
H A DAFPImageHandlerRawJPEG.java96 AFPPaintingState paintingState = afpContext.getPaintingState(); in handleImage() local
105 imageObjectInfo.setObjectAreaInfo(createObjectAreaInfo(paintingState, pos)); in handleImage()
106 updateIntrinsicSize(imageObjectInfo, paintingState, image.getSize()); in handleImage()
149 AFPPaintingState paintingState, ImageSize targetSize) { in updateIntrinsicSize() argument
159 int resolution = paintingState.getResolution(); in updateIntrinsicSize()
170 AFPPaintingState paintingState = context.getPaintingState(); in isCompatible() local
171 if (!paintingState.canEmbedJpeg()) { in isCompatible()
174 if (paintingState.getBitsPerPixel() < 8) { in isCompatible()
189 if (!paintingState.isCMYKImagesSupported()) { in isCompatible()
H A DAFPRenderingContext.java38 private AFPPaintingState paintingState; field in AFPRenderingContext
52 AFPPaintingState paintingState, in AFPRenderingContext() argument
56 this.paintingState = paintingState; in AFPRenderingContext()
76 return this.paintingState; in getPaintingState()
H A DAFPImageHandler.java79 AFPPaintingState paintingState = afpInfo.getPaintingState(); in generateDataObjectInfo() local
81 dataObjectInfo.setObjectAreaInfo(createObjectAreaInfo(paintingState, targetRect)); in generateDataObjectInfo()
107 public static AFPObjectAreaInfo createObjectAreaInfo(AFPPaintingState paintingState, in createObjectAreaInfo() argument
109 AFPUnitConverter unitConv = paintingState.getUnitConverter(); in createObjectAreaInfo()
116 int resolution = paintingState.getResolution(); in createObjectAreaInfo()
118 height, resolution, paintingState.getRotation()); in createObjectAreaInfo()
H A DAFPImageHandlerSVG.java88 AFPPaintingState paintingState = afpContext.getPaintingState(); in handleImage() local
89 final boolean textAsShapes = paintingState.isStrokeGOCAText(); in handleImage()
98 paintingState.setImageUri(image.getInfo().getOriginalURI()); in handleImage()
120 AFPObjectAreaInfo objectAreaInfo = AFPImageHandler.createObjectAreaInfo(paintingState, pos); in handleImage()
123 paintingState.save(); // save in handleImage()
126 paintingState.concatenate(placement); in handleImage()
140 paintingState.restore(); // resume in handleImage()
H A DAFPImageHandlerGraphics2D.java102 AFPPaintingState paintingState = afpContext.getPaintingState(); in handleImage() local
103 paintingState.save(); // save in handleImage()
106 paintingState.concatenate(placement); in handleImage()
110 final boolean textAsShapes = paintingState.isStrokeGOCAText(); in handleImage()
125 paintingState.restore(); // resume in handleImage()
H A DAbstractAFPImageHandlerRawStream.java105 AFPPaintingState paintingState = afpContext.getPaintingState(); in handleImage() local
106 int resolution = paintingState.getResolution(); in handleImage()
/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/afp/
H A DAFPUnitConverter.java32 private final AFPPaintingState paintingState; field in AFPUnitConverter
39 public AFPUnitConverter(AFPPaintingState paintingState) { in AFPUnitConverter() argument
40 this.paintingState = paintingState; in AFPUnitConverter()
92 return pt / ((float)AFPConstants.DPI_72 / paintingState.getResolution()); in pt2units()
102 return mpt / ((float)AFPConstants.DPI_72_MPTS / paintingState.getResolution()); in mpt2units()
109 AffineTransform at = paintingState.getData().getTransform(); in transformPoints()
H A DAFPDitheredRectanglePainter.java50 public AFPDitheredRectanglePainter(AFPPaintingState paintingState, DataStream dataStream, in AFPDitheredRectanglePainter() argument
52 super(paintingState, dataStream); in AFPDitheredRectanglePainter()
78 int resolution = paintingState.getResolution(); in paint()
89 Color col = paintingState.getColor(); in paint()
94 int rotation = paintingState.getRotation(); in paint()
95 AffineTransform at = paintingState.getData().getTransform(); in paint()
99 AFPUnitConverter unitConv = paintingState.getUnitConverter(); in paint()
H A DAbstractAFPPainter.java38 protected final AFPPaintingState paintingState; field in AbstractAFPPainter
46 public AbstractAFPPainter(AFPPaintingState paintingState, DataStream dataStream) { in AbstractAFPPainter() argument
47 this.paintingState = paintingState; in AbstractAFPPainter()
H A DAFPRectanglePainter.java36 public AFPRectanglePainter(AFPPaintingState paintingState, DataStream dataStream) { in AFPRectanglePainter() argument
37 super(paintingState, dataStream); in AFPRectanglePainter()
47 AFPUnitConverter unitConv = paintingState.getUnitConverter(); in paint()
53 AffineTransform at = paintingState.getData().getTransform(); in paint()
56 lineDataInfo.setColor(paintingState.getColor()); in paint()
57 lineDataInfo.setRotation(paintingState.getRotation()); in paint()
H A DAFPPaintingState.java598 AFPPaintingState paintingState = (AFPPaintingState) super.clone(); in clone() local
599 paintingState.pagePaintingState = (AFPPagePaintingState) this.pagePaintingState.clone(); in clone()
600 paintingState.portraitRotation = this.portraitRotation; in clone()
601 paintingState.landscapeRotation = this.landscapeRotation; in clone()
602 paintingState.bitsPerPixel = this.bitsPerPixel; in clone()
603 paintingState.colorImages = this.colorImages; in clone()
604 paintingState.colorConverter = this.colorConverter; in clone()
605 paintingState.resolution = this.resolution; in clone()
606 return paintingState; in clone()
H A DAFPGraphics2D.java113 private AFPPaintingState paintingState; field in AFPGraphics2D
132 public AFPGraphics2D(boolean textAsShapes, AFPPaintingState paintingState, in AFPGraphics2D() argument
136 setPaintingState(paintingState); in AFPGraphics2D()
150 this.paintingState = g2d.paintingState; in AFPGraphics2D()
209 private void setPaintingState(AFPPaintingState paintingState) { in setPaintingState() argument
210 this.paintingState = paintingState; in setPaintingState()
219 return this.paintingState; in getPaintingState()
251 return this.paintingState.getResolution(); in getResolution()
282 float correction = paintingState.getLineWidthCorrection(); in applyStroke()
289 if (paintingState.setDashArray(dashArray)) { in applyStroke()
[all …]
H A DDataStream.java96 private final AFPPaintingState paintingState; field in DataStream
105 public DataStream(Factory factory, AFPPaintingState paintingState, OutputStream outputStream) { in DataStream() argument
106 this.paintingState = paintingState; in DataStream()
342 return paintingState.getPoint(x, y); in getPoint()
359 int rotation = paintingState.getRotation(); in createText()
381 AFPUnitConverter unitConv = paintingState.getUnitConverter(); in createText()
487 currentPageObject.createIncludePageOverlay(name, x, y, paintingState.getRotation()); in createIncludePageOverlay()
518 int orientation = paintingState.getRotation(); in createIncludePageSegment()
H A DAFPBorderPainter.java39 public AFPBorderPainter(AFPPaintingState paintingState, DataStream dataStream) { in AFPBorderPainter() argument
40 super(paintingState, dataStream); in AFPBorderPainter()
60 AFPUnitConverter unitConv = paintingState.getUnitConverter(); in paint()
61 AffineTransform at = paintingState.getData().getTransform(); in paint()
68 switch (paintingState.getRotation()) { in paint()
98 lineDataInfo.setRotation(paintingState.getRotation()); in paint()
/dports/textproc/fop/fop-2.6/fop-core/src/test/java/org/apache/fop/afp/
H A DAFPGraphics2DTestCase.java48 private final AFPPaintingState paintingState = mock(AFPPaintingState.class); field in AFPGraphics2DTestCase
52 …private AFPGraphics2D graphics2D = new AFPGraphics2D(false, paintingState, resourceManager, resour…
60 when(paintingState.getLineWidthCorrection()).thenReturn(correction); in testApplyStroke()
/dports/textproc/fop/fop-2.6/fop-core/src/test/java/org/apache/fop/render/afp/
H A DAFPImageHandlerGraphics2DTestCase.java60 AFPPaintingState paintingState = new AFPPaintingState(); in testWrapGocaPSeg() local
61 paintingState.setWrapGocaPSeg(true); in testWrapGocaPSeg()
74 new AFPRenderingContext(null, resourceManager, paintingState, null, null); in testWrapGocaPSeg()
H A DAFPBorderPainterTestCase.java70 … public MyDataStream(Factory factory, AFPPaintingState paintingState, OutputStream outputStream) { in MyDataStream() argument
71 super(factory, paintingState, outputStream); in MyDataStream()
/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/svg/
H A DPDFGraphics2D.java141 protected PDFPaintingState paintingState; field in PDFGraphics2D
226 paintingState = new PDFPaintingState(); in PDFGraphics2D()
254 this.paintingState = g.paintingState; in PDFGraphics2D()
297 paintingState = state; in setPaintingState()
650 boolean newClip = paintingState.checkClip(imclip); in draw()
672 if (paintingState.setPaint(paint)) { in draw()
783 if (paintingState.setBackColor(col)) { in applyColor()
787 if (paintingState.setColor(col)) { in applyColor()
1571 if (paintingState.setPaint(paint)) { in fill()
1603 paintingState.save(); in saveGraphicsState()
[all …]
/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/afp/svg/
H A DAFPTextHandler.java122 AFPPaintingState paintingState = g2d.getPaintingState(); in drawString() local
123 paintingState.setColor(color); in drawString()
130 AFPPageFonts pageFonts = paintingState.getPageFonts(); in drawString()
/dports/textproc/fop/fop-2.6/fop-core/src/main/java/org/apache/fop/render/afp/extensions/
H A DAFPPageOverlayElement.java85 AFPPaintingState paintingState = new AFPPaintingState(); in processNode() local
86 AFPUnitConverter unitConverter = new AFPUnitConverter(paintingState); in processNode()

12