DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class ColorSpace

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.ColorSpace
Direct Known Subclasses:
SpotColorInk

public abstract class ColorSpace
extends Resource

Represents a color space resource for a color.

Licensing:
This class is a DynamicPDF Generator Community Edition feature.


Constructor Summary
ColorSpace()
           
 
Method Summary
 void draw(DocumentWriter writer)
          Draws the color space to the given DocumentWriter object.
abstract  void drawColorSpace(DocumentWriter writer)
          Draws the color space to the specified DocumentWriter.
abstract  void drawName(PageWriter writer)
          Draws the color space name to the specified PageWriter.
static ColorSpace getDeviceCmyk()
          Gets the DeviceCmyk color space.
static ColorSpace getDeviceGray()
          Gets the DeviceGray color space.
static ColorSpace getDeviceRgb()
          Gets the DeviceRgb color space.
static ColorSpace getPattern()
          Gets the Pattern color space.
 
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

ColorSpace

public ColorSpace()
Method Detail

getDeviceGray

public static ColorSpace getDeviceGray()
Gets the DeviceGray color space.

Returns:
the DeviceGray color space.

getDeviceRgb

public static ColorSpace getDeviceRgb()
Gets the DeviceRgb color space.

Returns:
the DeviceRgb color space.

getDeviceCmyk

public static ColorSpace getDeviceCmyk()
Gets the DeviceCmyk color space.

Returns:
the DeviceCmyk color space.

getPattern

public static ColorSpace getPattern()
Gets the Pattern color space.

Returns:
the Pattern color space.

draw

public void draw(DocumentWriter writer)
Draws the color space to the given DocumentWriter object.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter to receive the encoder's output.
See Also:
DocumentWriter

drawName

public abstract void drawName(PageWriter writer)
Draws the color space name to the specified PageWriter.

Parameters:
writer - PageWriter to take the color space name.
See Also:
PageWriter

drawColorSpace

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

Parameters:
writer - DocumentWriter to receive color space.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

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