DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class AutoGradient

java.lang.Object
  extended by com.cete.dynamicpdf.Color
      extended by com.cete.dynamicpdf.Pattern
          extended by com.cete.dynamicpdf.Gradient
              extended by 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.
 
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.
 
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(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

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 DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software