Package de.rototor.pdfbox.graphics2d
Class PdfBoxGraphics2DColor
- java.lang.Object
-
- java.awt.Color
-
- de.rototor.pdfbox.graphics2d.PdfBoxGraphics2DColor
-
- All Implemented Interfaces:
IPdfBoxGraphics2DColor,Paint,Transparency,Serializable
- Direct Known Subclasses:
PdfBoxGraphics2DCMYKColor
public class PdfBoxGraphics2DColor extends Color implements IPdfBoxGraphics2DColor
Universal PDColor Carrying class. It does not assume any specific colorspace. Useful for e.g. speration colors- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
-
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
-
Constructor Summary
Constructors Constructor Description PdfBoxGraphics2DColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color)PdfBoxGraphics2DColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color, int alpha)PdfBoxGraphics2DColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color, int alpha, boolean overprint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAlpha()booleanisOverprint()org.apache.pdfbox.pdmodel.graphics.color.PDColortoPDColor()-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
-
-
-
-
Constructor Detail
-
PdfBoxGraphics2DColor
public PdfBoxGraphics2DColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color)
- Parameters:
color- the PDColor
-
PdfBoxGraphics2DColor
public PdfBoxGraphics2DColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color, int alpha)- Parameters:
color- the PDColoralpha- the alpha to use
-
PdfBoxGraphics2DColor
public PdfBoxGraphics2DColor(org.apache.pdfbox.pdmodel.graphics.color.PDColor color, int alpha, boolean overprint)- Parameters:
color- the PDColoralpha- the alpha to useoverprint- determine if overprint should be used
-
-
Method Detail
-
isOverprint
public boolean isOverprint()
- Specified by:
isOverprintin interfaceIPdfBoxGraphics2DColor- Returns:
- true if this color should be applied with overprint
-
toPDColor
public org.apache.pdfbox.pdmodel.graphics.color.PDColor toPDColor()
- Specified by:
toPDColorin interfaceIPdfBoxGraphics2DColor- Returns:
- the PDColor represented by this color object
-
-