de.dante.extex.backend.documentWriter.pdf
Class PdfColorVisitor

java.lang.Object
  extended byde.dante.extex.backend.documentWriter.pdf.PdfColorVisitor
All Implemented Interfaces:
ColorVisitor

public class PdfColorVisitor
extends java.lang.Object
implements ColorVisitor

Color visitor for pdf.

Version:
$Revision: 1.2 $
Author:
Michael Niedermair

Constructor Summary
PdfColorVisitor()
           
 
Method Summary
 java.lang.Object visitCmyk(CmykColor color, java.lang.Object value)
          This method is called when an CmykColor has been encountered.
 java.lang.Object visitGray(GrayscaleColor color, java.lang.Object value)
          This method is called when an GrayscaleColor has been encountered.
 java.lang.Object visitHsv(HsvColor color, java.lang.Object value)
          This method is called when an HsvColor has been encountered.
 java.lang.Object visitRgb(RgbColor color, java.lang.Object value)
          This method is called when an RgbColor has been encountered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfColorVisitor

public PdfColorVisitor()
Method Detail

visitCmyk

public java.lang.Object visitCmyk(CmykColor color,
                                  java.lang.Object value)
                           throws GeneralException
Description copied from interface: ColorVisitor
This method is called when an CmykColor has been encountered.

Specified by:
visitCmyk in interface ColorVisitor
Parameters:
color - the first parameter for the visitor is the color visited
value - the second parameter is a visitor specific object
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
ColorVisitor.visitCmyk(de.dante.extex.color.model.CmykColor, java.lang.Object)

visitGray

public java.lang.Object visitGray(GrayscaleColor color,
                                  java.lang.Object value)
                           throws GeneralException
Description copied from interface: ColorVisitor
This method is called when an GrayscaleColor has been encountered.

Specified by:
visitGray in interface ColorVisitor
Parameters:
color - the first parameter for the visitor is the color visited
value - the second parameter is a visitor specific object
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
ColorVisitor.visitGray( de.dante.extex.color.model.GrayscaleColor, java.lang.Object)

visitHsv

public java.lang.Object visitHsv(HsvColor color,
                                 java.lang.Object value)
                          throws GeneralException
Description copied from interface: ColorVisitor
This method is called when an HsvColor has been encountered.

Specified by:
visitHsv in interface ColorVisitor
Parameters:
color - the first parameter for the visitor is the color visited
value - the second parameter is a visitor specific object
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
ColorVisitor.visitHsv( de.dante.extex.color.model.HsvColor, java.lang.Object)

visitRgb

public java.lang.Object visitRgb(RgbColor color,
                                 java.lang.Object value)
                          throws GeneralException
Description copied from interface: ColorVisitor
This method is called when an RgbColor has been encountered.

Specified by:
visitRgb in interface ColorVisitor
Parameters:
color - the first parameter for the visitor is the color visited
value - the second parameter is a visitor specific object
Returns:
the visitor specific value
Throws:
GeneralException - in case of an error
See Also:
ColorVisitor.visitRgb( de.dante.extex.color.model.RgbColor, java.lang.Object)