ElegantJ PDF Library Java API Specification v1.1

com.elegantj.pdf
Class PDFArc

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

public class PDFArc
extends PDFGraphicsObject

This class represents PDF Arc 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
PDFArc(int x1, int y1, int x2, int y2, int cx1, int cy1, int cx2, int cy2)
          Constructs the PDFArc object with default outline width, default outline color and fill color It constructs the PDFArc object with the specified two start point and the specified two control points
PDFArc(int x1, int y1, int x2, int y2, int cx1, int cy1, int cx2, int cy2, int outlineWidth, java.awt.Color outLineColor, java.awt.Color fillColor)
          Constructs the PDFArc object with default outline width, default outline color and fill color It constructs the PDFArc object with the specified start point, end point, two control points, outline width, line color and fill color
 
Method Summary
 java.lang.Object clone()
          Returns the clone of this object
 int getCX1()
          Returns the X coordinate of the first control point of the arc
 int getCX2()
          Returns the X coordinate of the second control point of the arc
 int getCY1()
          Returns the Y coordinate of the first control point of the arc
 int getCY2()
          Returns the Y coordinate of the second control point of the arc
 boolean getFillMode()
          Method which returns the state of fill mode
 int getOutlineWidth()
          Method which returns the outline width of arc
 PDFPattern getPattern()
          Returns the PDFPattern which is used to fill to this object
 int getX1()
          Returns the X coordinate of the first point of the arc
 int getX2()
          Returns the X coordinate of the second point of the arc
 int getY1()
          Returns the Y coordinate of the first point of the arc
 int getY2()
          Returns the Y coordinate of the first point of the arc
 void setCX1(int cx)
          Method which sets the X coordinate of the first control point of the arc
 void setCX2(int cx)
          Method which sets the X coordinate of the second control point of the arc
 void setCY1(int cy)
          Method which sets the Y coordinate of the first control point of the arc
 void setCY2(int cy)
          Method which sets the Y coordinate of the second control point of the arc
 void setFillColor(java.awt.Color fillColor)
          Method which sets the fill color of arc
 void setFillMode(boolean flag)
          Method which sets the state of fill mode
 void setOutlineColor(java.awt.Color outLineColor)
          Method which sets the outline color of arc
 void setOutlineWidth(int width)
          Method which sets the outline width of arc
 void setPattern(PDFPattern pattern)
          Sets the PDFPattern to fill this object
 void setX1(int x)
          Method which sets the X coordinate of the first point of the arc
 void setX2(int x)
          Method which sets the X coordinate of the second point of the arc
 void setY1(int y)
          Method which sets the Y coordinate of the first point of the arc
 void setY2(int y)
          Method which sets the Y coordinate of the second point of the arc
 
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

PDFArc

public PDFArc(int x1,
              int y1,
              int x2,
              int y2,
              int cx1,
              int cy1,
              int cx2,
              int cy2)
Constructs the PDFArc object with default outline width, default outline color and fill color It constructs the PDFArc object with the specified two start point and the specified two control points

Parameters:
x1 - The x coordinate of the start point of the arc
y1 - The y coordinate of the start point of the arc
x2 - The x coordinate of the end point of the arc
y2 - The y coordinate of the end point of the arc
cx1 - The x coordinate of the first control point
cy1 - The y coordinate of the first control point
cx2 - The x coordinate of the second control point
cy2 - The y coordinate of the second control point

PDFArc

public PDFArc(int x1,
              int y1,
              int x2,
              int y2,
              int cx1,
              int cy1,
              int cx2,
              int cy2,
              int outlineWidth,
              java.awt.Color outLineColor,
              java.awt.Color fillColor)
Constructs the PDFArc object with default outline width, default outline color and fill color It constructs the PDFArc object with the specified start point, end point, two control points, outline width, line color and fill color

Parameters:
x1 - The x coordinate of the start point of the arc
y1 - The y coordinate of the start point of the arc
x2 - The x coordinate of the end point of the arc
y2 - The y coordinate of the end point of the arc
cx1 - The x coordinate of the first control point for the arc
cy1 - The y coordinate of the first control point for the arc
cx2 - The x coordinate of the second control point for the arc
cy2 - The y coordinate of the second control point for the arc
outlineWidth - The out line width of the arc
outLineColor - The out line color of the arc
fillColor - The fill color of the arc
Method Detail

setX1

public void setX1(int x)
Method which sets the X coordinate of the first point of the arc

Parameters:
x - The X coordinate of the first point of the arc

getX1

public int getX1()
Returns the X coordinate of the first point of the arc

Returns:
The X coordinate of the first point of the arc

setY1

public void setY1(int y)
Method which sets the Y coordinate of the first point of the arc

Parameters:
y - The Y coordinate of the first point of the arc

getY1

public int getY1()
Returns the Y coordinate of the first point of the arc

Returns:
The Y coordinate of the first point of the arc

setX2

public void setX2(int x)
Method which sets the X coordinate of the second point of the arc

Parameters:
x - The X coordinate of the second point of the arc

getX2

public int getX2()
Returns the X coordinate of the second point of the arc

Returns:
The X coordinate of the second point of the arc

setY2

public void setY2(int y)
Method which sets the Y coordinate of the second point of the arc

Parameters:
y - The Y coordinate of the second point of the arc

getY2

public int getY2()
Returns the Y coordinate of the first point of the arc

Returns:
The Y coordinate of the first point of the arc

setCX1

public void setCX1(int cx)
Method which sets the X coordinate of the first control point of the arc

Parameters:
cx - The X coordinate of the first control point of the arc

getCX1

public int getCX1()
Returns the X coordinate of the first control point of the arc

Returns:
The X coordinate of the first control point of the arc

setCY1

public void setCY1(int cy)
Method which sets the Y coordinate of the first control point of the arc

Parameters:
cy - The Y coordinate of the first control point of the arc

getCY1

public int getCY1()
Returns the Y coordinate of the first control point of the arc

Returns:
The Y coordinate of the first control point of the arc

setCX2

public void setCX2(int cx)
Method which sets the X coordinate of the second control point of the arc

Parameters:
cx - The X coordinate of the second control point of the arc

getCX2

public int getCX2()
Returns the X coordinate of the second control point of the arc

Returns:
The X coordinate of the second control point of the arc

setCY2

public void setCY2(int cy)
Method which sets the Y coordinate of the second control point of the arc

Parameters:
cy - The Y coordinate of the second control point of the arc

getCY2

public int getCY2()
Returns the Y coordinate of the second control point of the arc

Returns:
The Y coordinate of the second point of the arc

setOutlineWidth

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

Parameters:
width - the outline width of arc

getOutlineWidth

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

Returns:
the outline width of arc

setFillMode

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

Parameters:
flag - the state of fill mode if true, arc 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, arc will be filled with fill color

setFillColor

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

Parameters:
fillColor - the fill color of arc

setOutlineColor

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

Parameters:
outLineColor - The outline color of arc

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.