ElegantJ PDF Library Java API Specification v1.1

com.elegantj.pdf
Class PDFOval

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

public class PDFOval
extends PDFGraphicsObject

This class represents PDF Oval 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
PDFOval(int x, int y, int width, int height)
          Constructs a PDFOval object with default outline width, default outline color and fill color
PDFOval(int x, int y, int width, int height, int outlineWidth, java.awt.Color outLineColor, java.awt.Color fillColor)
          Constructs a PDFOval 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
 int getHeight()
          Method which returns the value of height of the oval
 int getOutlineWidth()
          Method which returns the outline width of oval
 PDFPattern getPattern()
          Returns the PDFPattern which is used to fill to this object
 int getWidth()
          Method which returns the value of width of the oval
 int getX()
          Method which returns the x coordinate of center of oval
 int getY()
          Method which returns the y coordinate of center of oval
 void setFillColor(java.awt.Color fillColor)
          Method which sets the fill color of oval
 void setFillMode(boolean flag)
          Method which sets the state of fill mode
 void setHeight(int height)
          Method which sets the value of height of the oval
 void setOutlineColor(java.awt.Color outLineColor)
          Method which sets the outline color of oval
 void setOutlineWidth(int width)
          Method which sets the outline width of oval
 void setPattern(PDFPattern pattern)
          Sets the PDFPattern to fill this object
 void setWidth(int width)
          Method which sets the value of width of the oval
 void setX(int x)
          Method which sets the x coordinate of center of oval
 void setY(int y)
          Method which sets the y coordinate of oval
 
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

PDFOval

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

Parameters:
x - The x coordinate of center of oval
y - The y coordinate of center of oval
width - of the oval
height - of the oval

PDFOval

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

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

setX

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

Parameters:
x - the x coordinate of center of oval

getX

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

Returns:
the x coordinate of center of oval

setY

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

Parameters:
y - the y coordinate of center of oval

getY

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

Returns:
the y coordinate of center of oval

setWidth

public void setWidth(int width)
Method which sets the value of width of the oval

Parameters:
width - The value of width of the oval

getWidth

public int getWidth()
Method which returns the value of width of the oval

Returns:
The value of width of the oval

setHeight

public void setHeight(int height)
Method which sets the value of height of the oval

Parameters:
height - The value of height of the oval

getHeight

public int getHeight()
Method which returns the value of height of the oval

Returns:
The value of height of the oval

setOutlineWidth

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

Parameters:
width - the outline width of oval

getOutlineWidth

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

Returns:
the outline width of oval

setFillMode

public void setFillMode(boolean flag)
Method which sets the state of fill mode

Parameters:
flag - the state of fill mode if true, oval will be filled with fill color

getFillMode

public boolean getFillMode()
Method which returns the state of fill mode

Returns:
the state of fill mode if true, oval will be filled with fill color

setFillColor

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

Parameters:
fillColor - The fill colro of oval

setOutlineColor

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

Parameters:
outLineColor - The outline color of oval

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.