public class CustomPathDrawer
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private org.apache.pdfbox.pdmodel.graphics.state.PDGraphicsState |
state |
构造器和说明 |
---|
CustomPathDrawer(org.apache.pdfbox.pdmodel.graphics.state.PDGraphicsState state) |
限定符和类型 | 方法和说明 |
---|---|
private void |
clearPathGraphics(java.awt.geom.Rectangle2D.Double bounds,
java.awt.Graphics2D gfx) |
org.fit.pdfdom.resource.ImageResource |
drawPath(java.util.List<org.fit.pdfdom.PathSegment> path) |
private void |
drawPathSegments(java.util.List<org.fit.pdfdom.PathSegment> path,
java.awt.Graphics2D gfx) |
private java.awt.geom.Rectangle2D.Double |
getPathBounds(java.util.List<org.fit.pdfdom.PathSegment> path) |
private java.awt.Color |
pdfColorToColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color) |
public CustomPathDrawer(org.apache.pdfbox.pdmodel.graphics.state.PDGraphicsState state)
public org.fit.pdfdom.resource.ImageResource drawPath(java.util.List<org.fit.pdfdom.PathSegment> path) throws java.io.IOException
java.io.IOException
private void clearPathGraphics(java.awt.geom.Rectangle2D.Double bounds, java.awt.Graphics2D gfx) throws java.io.IOException
java.io.IOException
private void drawPathSegments(java.util.List<org.fit.pdfdom.PathSegment> path, java.awt.Graphics2D gfx)
private java.awt.geom.Rectangle2D.Double getPathBounds(java.util.List<org.fit.pdfdom.PathSegment> path)
private java.awt.Color pdfColorToColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color) throws java.io.IOException
java.io.IOException