com.mindfusion.pdf
Class PdfPath

java.lang.Object
  extended by com.mindfusion.pdf.PdfObject
      extended by 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
           
 
Fields inherited from class com.mindfusion.pdf.PdfObject
currentRotation, currentTransform, id, offset, page, parent, pdfType, size
 
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)
           
 
Method Summary
 java.awt.Color getColor()
           
 java.awt.Color[] getColors()
           
 java.awt.Color getColors(int index)
           
protected  byte[] getContent()
           
 java.awt.geom.Point2D getGradientEnd()
           
 java.awt.geom.Point2D getGradientStart()
           
 PdfGraphicsState getGState()
           
 java.awt.geom.GeneralPath getInitialPath()
           
 java.awt.Paint getPaint()
           
 PaintType getPaintType()
           
 byte[] getPathContent()
           
 PdfPattern getPattern()
           
 float getPenWidth()
           
 java.awt.BasicStroke getStroke()
           
 java.awt.geom.GeneralPath getTranslatedPath()
           
 java.awt.geom.Point2D[] getTranslatedPoints()
           
 boolean isAlpha()
           
 boolean isFilled()
           
 boolean isGradient()
           
 
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
 

Field Detail

colors

protected java.awt.Color[] colors
Constructor Detail

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
Method Detail

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