|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.Color
|
+--com.cete.dynamicpdf.Pattern
|
+--com.cete.dynamicpdf.Gradient
Represents a gradient pattern.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
Gradient(float x1,
float y1,
float x2,
float y2,
CmykColor color1,
CmykColor color2)
Initializes a new instance of the Gradient class. |
|
Gradient(float x1,
float y1,
float x2,
float y2,
Grayscale color1,
Grayscale color2)
Initializes a new instance of the Gradient class. |
|
Gradient(float x1,
float y1,
float x2,
float y2,
RgbColor color1,
RgbColor color2)
Initializes a new instance of the Gradient class. |
|
| Method Summary | |
void |
drawFill(PageWriter writer)
Draws the color data to the given PageWriter object. |
void |
drawStroke(PageWriter writer)
Draws the color data to the given PageWriter object. |
boolean |
equals(java.lang.Object obj)
Tests equality of colors. |
DeviceColor |
getColor1()
Gets the first color. |
DeviceColor |
getColor2()
Gets the second color. |
ColorSpace |
getColorSpace()
Gets the color space for the color. |
Resource |
getResource(PageWriter writer)
Gets the resource for the gradient. |
float |
getX1()
Gets the X coordinate of the first color. |
float |
getX2()
Gets the X coordinate of the second color. |
float |
getY1()
Gets the Y coordinate of the first color. |
float |
getY2()
Gets the Y coordinate of the second color. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
void |
setX1(float val)
Sets the X coordinate of the first color. |
void |
setX2(float val)
Sets the X coordinate of the second color. |
void |
setY1(float val)
Sets the Y coordinate of the first color. |
void |
setY2(float val)
Sets the Y coordinate of the second color. |
| Methods inherited from class com.cete.dynamicpdf.Color |
drawFill, drawStroke |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Gradient(float x1,
float y1,
float x2,
float y2,
RgbColor color1,
RgbColor color2)
Gradient class.
GeneratorException - Gradient Colors is not of same color space.x1 - X coordinate of the first color.y1 - Y coordinate of the first color.x2 - X coordinate of the second color.y2 - Y coordinate of the second color.color1 - First RGB color.color2 - Second RGB color.
public Gradient(float x1,
float y1,
float x2,
float y2,
CmykColor color1,
CmykColor color2)
Gradient class.
GeneratorException - Gradient Colors is not of same color space.x1 - X coordinate of the first color.y1 - Y coordinate of the first color.x2 - X coordinate of the second color.y2 - Y coordinate of the second color.color1 - First CMYK color.color2 - Second CMYK color.
public Gradient(float x1,
float y1,
float x2,
float y2,
Grayscale color1,
Grayscale color2)
Gradient class.
GeneratorException - Gradient Colors is not of same color space.x1 - X coordinate of the first color.y1 - Y coordinate of the first color.x2 - X coordinate of the second color.y2 - Y coordinate of the second color.color1 - First Grayscale color.color2 - Second Grayscale color.| Method Detail |
public float getX1()
public void setX1(float val)
public float getY1()
public void setY1(float val)
public float getX2()
public void setX2(float val)
public float getY2()
public void setY2(float val)
public DeviceColor getColor1()
public DeviceColor getColor2()
public ColorSpace getColorSpace()
getColorSpace in class Patternpublic boolean equals(java.lang.Object obj)
equals in class Colorobj - Object to compare to the current Color.
Colorpublic int hashCode()
hashCode in class Color Color object.public void drawStroke(PageWriter writer)
PageWriter object.
drawStroke in class Colorwriter - PageWriter object to receive the color data.PageWriterpublic void drawFill(PageWriter writer)
PageWriter object.
drawFill in class Colorwriter - PageWriter object to receive the color data.PageWriterpublic Resource getResource(PageWriter writer)
writer - PageWriter object to receive the gradient color data.
PageWriter
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||