DynamicPDF by ceTe Software

com.cete.dynamicpdf
Class Color

java.lang.Object
  extended by com.cete.dynamicpdf.Color
Direct Known Subclasses:
DeviceColor, Pattern, SpotColor

public abstract class Color
extends java.lang.Object

Class provides the base class representing color.

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


Constructor Summary
protected Color()
          Initializes a new instance of the Color class.
 
Method Summary
 void drawFill(OperatorWriter writer)
          Draws the color data to the given OperatorWriter object.
abstract  void drawFill(PageWriter writer)
          Draws the color data to the given PageWriter object.
 void drawStroke(OperatorWriter writer)
          Draws the color data to the given OperatorWriter object.
abstract  void drawStroke(PageWriter writer)
          Draws the color data to the given PageWriter object.
abstract  boolean equals(java.lang.Object obj)
          Tests equality of colors.
abstract  ColorSpace getColorSpace()
          Gets the color space for the color.
abstract  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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Color

protected Color()
Initializes a new instance of the Color class. Colors derived classes are:

See Also:
CmykColor, Grayscale, WebColor, RgbColor, SpotColor, Gradient
Method Detail

equals

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

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

hashCode

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

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for the current Color.

getColorSpace

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

Returns:
the color space for the color.

drawStroke

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

Parameters:
writer - PageWriter object to receive the color data.
See Also:
PageWriter

drawStroke

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

Parameters:
writer - OperatorWriter object to receive the color data.
See Also:
OperatorWriter

drawFill

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

Parameters:
writer - PageWriter object to receive the color data.
See Also:
PageWriter

drawFill

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

Parameters:
writer - OperatorWriter object to receive the color data.
See Also:
OperatorWriter

DynamicPDF by ceTe Software

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