DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class AutoGradient

java.lang.Object
  |
  +--com.cete.dynamicpdf.Color
        |
        +--com.cete.dynamicpdf.Pattern
              |
              +--com.cete.dynamicpdf.Gradient
                    |
                    +--com.cete.dynamicpdf.AutoGradient

public class AutoGradient
extends Gradient

Represents an automatically calculated gradient pattern. NOTE: The X1, Y1, X2 and Y2 properties of this class will be automatically calculated. If these values are set, they will be overwritten.

Licensing :
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

View Example

See Also:
Colors

Constructor Summary
AutoGradient(float angle, CmykColor color1, CmykColor color2)
          Initializes a new instance of the AutoGradient class.
AutoGradient(float angle, Grayscale color1, Grayscale color2)
          Initializes a new instance of the AutoGradient class.
AutoGradient(float angle, RgbColor color1, RgbColor color2)
          Initializes a new instance of the AutoGradient class.
AutoGradient(int angle, CmykColor color1, CmykColor color2)
          Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.AutoGradient(float angle, CmykColor color1, CmykColor color2)
AutoGradient(int angle, Grayscale color1, Grayscale color2)
          Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.AutoGradient(float angle, Grayscale color1, Grayscale color2)
AutoGradient(int angle, RgbColor color1, RgbColor color2)
          Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.AutoGradient(float angle, RgbColor color1, RgbColor color2)
 
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.
 float getAngle()
          Gets the angle of the Gradient.
 void setAngle(float val)
          Sets the angle of the Gradient.
 void setAngle(int val)
          Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.setAngle(float angle)
 
Methods inherited from class com.cete.dynamicpdf.Gradient
equals, getColor1, getColor2, getColorSpace, getResource, getX1, getX2, getY1, getY2, hashCode, setX1, setX2, setY1, setY2
 
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

AutoGradient

public AutoGradient(int angle,
                    RgbColor color1,
                    RgbColor color2)
Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.AutoGradient(float angle, RgbColor color1, RgbColor color2)

Initializes a new instance of the AutoGradient class.

Parameters:
angle - Angle of the AutoGradient.
color1 - First RGB color.
color2 - Second RGB color. NOTE: The X1, Y1, X2 and Y2 properties of this class will be automatically calculated. If these values are set, they will be overwritten.

AutoGradient

public AutoGradient(int angle,
                    CmykColor color1,
                    CmykColor color2)
Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.AutoGradient(float angle, CmykColor color1, CmykColor color2)

Initializes a new instance of the AutoGradient class.

Parameters:
angle - Angle of the AutoGradient.
color1 - First CMYK color.
color2 - Second CMYK color. NOTE: The X1, Y1, X2 and Y2 properties of this class will be automatically calculated. If these values are set, they will be overwritten.

AutoGradient

public AutoGradient(int angle,
                    Grayscale color1,
                    Grayscale color2)
Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.AutoGradient(float angle, Grayscale color1, Grayscale color2)

Initializes a new instance of the AutoGradient class.

Parameters:
angle - Angle of the AutoGradient.
color1 - First GRAYSCALE color.
color2 - Second GRAYSCALE color. NOTE: The X1, Y1, X2 and Y2 properties of this class will be automatically calculated. If these values are set, they will be overwritten.

AutoGradient

public AutoGradient(float angle,
                    RgbColor color1,
                    RgbColor color2)
Initializes a new instance of the AutoGradient class.

Parameters:
angle - Angle of the AutoGradient.
color1 - First RGB color.
color2 - Second RGB color. NOTE: The X1, Y1, X2 and Y2 properties of this class will be automatically calculated. If these values are set, they will be overwritten.

AutoGradient

public AutoGradient(float angle,
                    CmykColor color1,
                    CmykColor color2)
Initializes a new instance of the AutoGradient class.

Parameters:
angle - Angle of the AutoGradient.
color1 - First CMYK color.
color2 - Second CMYK color. NOTE: The X1, Y1, X2 and Y2 properties of this class will be automatically calculated. If these values are set, they will be overwritten.

AutoGradient

public AutoGradient(float angle,
                    Grayscale color1,
                    Grayscale color2)
Initializes a new instance of the AutoGradient class.

Parameters:
angle - Angle of the AutoGradient.
color1 - First GRAYSCALE color.
color2 - Second GRAYSCALE color. NOTE: The X1, Y1, X2 and Y2 properties of this class will be automatically calculated. If these values are set, they will be overwritten.
Method Detail

setAngle

public void setAngle(int val)
Deprecated. As of DynamicPDF Generator v5.0.1. replaced by AutoGradient.setAngle(float angle)

Sets the angle of the Gradient.

Parameters:
val - Angle of the AutoGradient.

getAngle

public float getAngle()
Gets the angle of the Gradient.

Returns:
angle the angle of the Gradient.

setAngle

public void setAngle(float val)
Sets the angle of the Gradient.

Parameters:
val - Angle of the AutoGradient.

drawFill

public void drawFill(PageWriter writer)
Draws the color data to the given PageWriter object.

Overrides:
drawFill in class Gradient
Parameters:
writer - PageWriter object to receive the color data.
See Also:
PageWriter

drawStroke

public void drawStroke(PageWriter writer)
Draws the color data to the given PageWriter object.

Overrides:
drawStroke in class Gradient
Parameters:
writer - PageWriter object to receive the color data.
See Also:
PageWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v6.0 for Java generated on February 4, 2011
© Copyright 2011, ceTe Software