ElegantJ PDF Library Java API Specification v1.1

com.elegantj.pdf
Class PDFCircle

java.lang.Object
  extended bycom.elegantj.pdf.PDFObject
      extended bycom.elegantj.pdf.PDFGraphicsObject
          extended bycom.elegantj.pdf.PDFCircle

public class PDFCircle
extends PDFGraphicsObject

This class represents PDF Circle object


Field Summary
 
Fields inherited from class com.elegantj.pdf.PDFGraphicsObject
BEVEL_JOINS, BUTT_CAPS, MITER_JOINS, ROUND_CAPS, ROUND_JOINS, SQUARE_CAPS
 
Constructor Summary
PDFCircle(int x, int y, int radius)
          Constructs a PDFCircle object with default outline width, default outline color and fill color
PDFCircle(int x, int y, int radius, int outlineWidth, java.awt.Color outLineColor, java.awt.Color fillColor)
          Constructs a PDFCircle object with specified outline width, outline color and fill color
 
Method Summary
 java.lang.Object clone()
          Returns the clone of this object
 boolean getFillMode()
          Method which returns the state of fill mode if true, circle will be filled with fill color
 int getOutlineWidth()
          Method which returns the outline width of circle
 PDFPattern getPattern()
          Returns the PDFPattern which is used to fill to this object
 int getRadius()
          Method which returns the radius of circle
 int getX()
          Method which returns the x coordinate of center of circle
 int getY()
          Method which returns the y coordinate of center of circle
 void setFillColor(java.awt.Color fillColor)
          Method which sets the fill color of circle
 void setFillMode(boolean flag)
          Method which sets the state of fill mode if true, circle will be filled with fill color
 void setOutlineColor(java.awt.Color outLineColor)
          Method which sets the outline color of circle
 void setOutlineWidth(int width)
          Method which sets the outline width of circle
 void setPattern(PDFPattern pattern)
          Sets the PDFPattern to fill this object
 void setRadius(int radius)
          Method which sets the radius of circle
 void setX(int x)
          Method which sets the x coordinate of center of circle
 void setY(int y)
          Method which sets the y coordinate of circle
 
Methods inherited from class com.elegantj.pdf.PDFObject
getPDFObjectID, getPDFObjectRefStr, getPDFObjectType, setPDFObjectID, setPDFObjectType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFCircle

public PDFCircle(int x,
                 int y,
                 int radius)
Constructs a PDFCircle object with default outline width, default outline color and fill color

Parameters:
x - The x coordinate of center of circle
y - The y coordinate of center of circle
radius - of circle

PDFCircle

public PDFCircle(int x,
                 int y,
                 int radius,
                 int outlineWidth,
                 java.awt.Color outLineColor,
                 java.awt.Color fillColor)
Constructs a PDFCircle object with specified outline width, outline color and fill color

Parameters:
x - The x coordinate of center of circle
y - The y coordinate of center of circle
radius - of circle
outlineWidth - The out line width of the circle
outLineColor - The outline color of the circle
fillColor - The fill color of the circle
Method Detail

setX

public void setX(int x)
Method which sets the x coordinate of center of circle

Parameters:
x - The X coordinate of center of circle

getX

public int getX()
Method which returns the x coordinate of center of circle

Returns:
The X coordinate of center of circle

setY

public void setY(int y)
Method which sets the y coordinate of circle

Parameters:
y - The Y coordinate of center of circle

getY

public int getY()
Method which returns the y coordinate of center of circle

Returns:
The Y coordinate of center of circle

setRadius

public void setRadius(int radius)
Method which sets the radius of circle

Parameters:
radius - The radius of circle

getRadius

public int getRadius()
Method which returns the radius of circle

Returns:
The radius of circle

setOutlineWidth

public void setOutlineWidth(int width)
Method which sets the outline width of circle

Parameters:
width - The outline width of circle

getOutlineWidth

public int getOutlineWidth()
Method which returns the outline width of circle

Returns:
The outline width of circle

setFillMode

public void setFillMode(boolean flag)
Method which sets the state of fill mode if true, circle will be filled with fill color

Parameters:
flag - The state of fill mode

getFillMode

public boolean getFillMode()
Method which returns the state of fill mode if true, circle will be filled with fill color

Returns:
The state of fill mode

setFillColor

public void setFillColor(java.awt.Color fillColor)
Method which sets the fill color of circle

Parameters:
fillColor - The fill color of circle

setOutlineColor

public void setOutlineColor(java.awt.Color outLineColor)
Method which sets the outline color of circle

Parameters:
outLineColor - The outline color of circle

setPattern

public void setPattern(PDFPattern pattern)
Sets the PDFPattern to fill this object


getPattern

public PDFPattern getPattern()
Returns the PDFPattern which is used to fill to this object

Returns:
The PDFPattern which is used to fill to this object

clone

public java.lang.Object clone()
Returns the clone of this object

Returns:
The clone of this object

ElegantJ PDF Library Java API Specification v1.1

For any feedback, suggestion, or query, please revert back to support@elegantjpdf.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjpdf.com
All Rights Reserved.