DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class SpotColor

java.lang.Object
  extended by com.cete.dynamicpdf.Color
      extended by com.cete.dynamicpdf.SpotColor

public class SpotColor
extends Color

Represents a spot color.

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


Constructor Summary
SpotColor(float tint, SpotColorInk ink)
          Initializes a new instance of the SpotColor class.
 
Method Summary
 void drawFill(PageWriter writer)
          Draws the color data to the given object.
 void drawStroke(PageWriter writer)
          Draws the color data to the given object.
 boolean equals(java.lang.Object obj)
          Tests equality of colors.
 ColorSpace getColorSpace()
          Gets the color space for the color.
 float getTint()
          Gets the color space for the 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.
 
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

SpotColor

public SpotColor(float tint,
                 SpotColorInk ink)
Initializes a new instance of the SpotColor class.

Parameters:
tint - Value between 0 and 1 specifying a percentage of the color to come through.
ink - The SpotColorInk to be used.
Method Detail

getColorSpace

public ColorSpace getColorSpace()
Gets the color space for the color.

Specified by:
getColorSpace in class Color
Returns:
the color space for the color.

getTint

public float getTint()
Gets the color space for the color.

Returns:
the color space for the color.

equals

public boolean equals(java.lang.Object obj)
Tests equality of colors.

Specified by:
equals in class Color
Parameters:
obj - Object to compare to the current Color.
Returns:
true if the two colors are equal.

hashCode

public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Specified by:
hashCode in class Color
Returns:
A hash code for the current Color object.

drawStroke

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

Specified by:
drawStroke in class Color
Parameters:
writer - PageWriter object to receive the color data.
See Also:
PageWriter

drawFill

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

Specified by:
drawFill in class Color
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