com.mindfusion.pdf
Class PdfPath
java.lang.Object
com.mindfusion.pdf.PdfObject
com.mindfusion.pdf.PdfPath
- All Implemented Interfaces:
- INotify<PdfObject>, IPdfSaver, java.lang.Comparable
public class PdfPath
- extends PdfObject
Field Summary |
protected java.awt.Color[] |
colors
|
Constructor Summary |
PdfPath(java.awt.geom.GeneralPath path,
boolean isFill)
|
PdfPath(java.awt.geom.GeneralPath path,
java.awt.Paint paint,
java.awt.Stroke stroke,
PdfPage page,
boolean isFill)
|
PdfPath(java.awt.Shape shape,
boolean isFill)
|
Methods inherited from class com.mindfusion.pdf.PdfObject |
compare, compareTo, getCollectionId, getCurrentRotation, getCurrentTransform, getDocument, getId, getName, getObjectFooter, getObjectHeader, getOffset, getPage, getParent, getPdfType, getSize, isParentless, isRoot, OnAdded, OnChanged, registerObject, Save, setCollectionId, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
colors
protected java.awt.Color[] colors
PdfPath
public PdfPath(java.awt.Shape shape,
boolean isFill)
throws java.io.IOException
- Throws:
java.io.IOException
PdfPath
public PdfPath(java.awt.geom.GeneralPath path,
boolean isFill)
throws java.io.IOException
- Throws:
java.io.IOException
PdfPath
public PdfPath(java.awt.geom.GeneralPath path,
java.awt.Paint paint,
java.awt.Stroke stroke,
PdfPage page,
boolean isFill)
throws java.io.IOException
- Throws:
java.io.IOException
getGradientEnd
public java.awt.geom.Point2D getGradientEnd()
getGradientStart
public java.awt.geom.Point2D getGradientStart()
getColors
public java.awt.Color[] getColors()
getColors
public java.awt.Color getColors(int index)
getPattern
public PdfPattern getPattern()
isAlpha
public boolean isAlpha()
isGradient
public boolean isGradient()
getGState
public PdfGraphicsState getGState()
getPenWidth
public float getPenWidth()
getColor
public java.awt.Color getColor()
isFilled
public boolean isFilled()
getStroke
public java.awt.BasicStroke getStroke()
getPaint
public java.awt.Paint getPaint()
getPaintType
public PaintType getPaintType()
getTranslatedPoints
public java.awt.geom.Point2D[] getTranslatedPoints()
getInitialPath
public java.awt.geom.GeneralPath getInitialPath()
getTranslatedPath
public java.awt.geom.GeneralPath getTranslatedPath()
getPathContent
public byte[] getPathContent()
getContent
protected byte[] getContent()
throws java.io.IOException
- Overrides:
getContent
in class PdfObject
- Throws:
java.io.IOException