Note
Objects of this class are stateful and *not* thread safe!
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private class | |
| private static class | |
| pack-priv static class | |
| public static class | PdfBoxGraphics2DPaintApplier.
Internal State of the PaintApplyer. |
| private static class | |
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private Object | |
| private Object | |
| private Object | |
| private Object | |
| private static final double | EPSILON
Very small number, everything smaller than this is zero for us. |
| private final PdfBoxGraphics2DPaintApplier. | |
| private final PdfBoxGraphics2DPaintApplier. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| private void | |
| public PDShading | applyPaint(Paint
the paint which should be applied paint, PDPageContentStream the content stream to apply the paint on contentStream, AffineTransform the current transform of the Graphics2D relative to the
contentStream default coordinate space. This is always a copy of the
current transform, so we can modify it. tf, IPdfBoxGraphics2DPaintApplier.Environment for mapping the paint. envImplements de. Apply the paint on the ContentStream |
| protected PDShading | applyPaint(Paint paint, PdfBoxGraphics2DPaintApplier.
Apply paint and graphic state |
| private void | |
| private void | |
| private void | |
| private PDShading | buildGradientShading(GradientPaint gradientPaint, PdfBoxGraphics2DPaintApplier.
|
| private PDShading | |
| private PDShading | |
| private COSArray | Returns: the Type2 function COSArraythe color to encode colors, COSArray the domain which should already been setuped. It will be used for the Type2 function domain, COSArray will get the domain information per color channel, i.e. colors.length x [0, 1] encode, PdfBoxGraphics2DPaintApplier.our internal state, this is needed for color mapping stateBuild a type2 function to interpolate between the given colors. |
| private PDFunctionType3 | Returns: the type3 functionThe colors to encode colors, float[] the fractions for encoding fractions, PdfBoxGraphics2DPaintApplier.our state, this is needed for color mapping stateEncode a color gradient as a type3 function |
| private Point2D | |
| private MultipleGradientPaint. | |
| private MultipleGradientPaint. | Returns: the CycleMethodthe paint to get the cycleMethod from (if not in any other way possible using reflection) paint)Map the cycleMethod of the GradientPaint to the java.awt.MultipleGradientPaint.CycleMethod enum. |
| protected static < the type of the property you want to get. T> T | Returns: the value read from the objectThe object to get a property from. obj, String method name of the getter, i.e. "getXY". propertyGetter)Get a property value from an object using reflection |
| pack-priv static boolean | |
| private PDShading | |
| private PDShading | |
| private PDShading | linearGradientUserSpaceOnUseShading(Paint paint, PdfBoxGraphics2DPaintApplier.
This is the default gradient mode for both SVG and java.awt gradients. |
| pack-priv static PdfBoxGraphics2DColor | |
| pack-priv static PdfBoxGraphics2DColor[] | |
| private PDColor | |
| private boolean | |
| private PDShadingType3 | |
| private void | |
| private COSArray | |
| private void |