DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class SpotColorInk

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.ColorSpace
          extended by com.cete.dynamicpdf.SpotColorInk

public class SpotColorInk
extends ColorSpace

Represents a spot color ink.

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


Constructor Summary
SpotColorInk(java.lang.String name, CmykColor alternateColor)
          Initializes a new instance of the SpotColorInk class.
 
Method Summary
 void draw(DocumentWriter writer)
          Draws the spot color ink to the specified DocumentWriter.
 void drawColorSpace(DocumentWriter writer)
          Draws the color space to the specified .
 void drawName(PageWriter writer)
          Draws the spot color ink name to the specified PageWriter.
 CmykColor getAlternateColor()
          Gets the CMYK color to be used as the alternative color.
 java.lang.String getName()
          Gets the name of the ink to be used.
 
Methods inherited from class com.cete.dynamicpdf.ColorSpace
getDeviceCmyk, getDeviceGray, getDeviceRgb, getPattern
 
Methods inherited from class com.cete.dynamicpdf.Resource
getRequiredPdfObjects, getResourceType, getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpotColorInk

public SpotColorInk(java.lang.String name,
                    CmykColor alternateColor)
Initializes a new instance of the SpotColorInk class.

Parameters:
name - Name of the spot color ink to be used.
alternateColor - The CMYK color to be used when the device does not contain the sopt color specified.
Method Detail

getName

public java.lang.String getName()
Gets the name of the ink to be used.

Returns:
the name of the ink to be used.

getAlternateColor

public CmykColor getAlternateColor()
Gets the CMYK color to be used as the alternative color.

Returns:
the CMYK color to be used as the alternative color.

drawName

public void drawName(PageWriter writer)
Draws the spot color ink name to the specified PageWriter.

Specified by:
drawName in class ColorSpace
Parameters:
writer - PageWriter to take the spot color ink name.
See Also:
PageWriter

drawColorSpace

public void drawColorSpace(DocumentWriter writer)
Draws the color space to the specified .

Specified by:
drawColorSpace in class ColorSpace
Parameters:
writer - DocumentWriter to take the color space.
See Also:
DocumentWriter

draw

public void draw(DocumentWriter writer)
Draws the spot color ink to the specified DocumentWriter.

Overrides:
draw in class ColorSpace
Parameters:
writer - DocumentWriter to take the spot color ink.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software