Vincent Hennebert
|
f8dd309bf6
|
Added more complete tests
Keep floats for bounds instead of converting them to doubles
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1611653 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
a1e5851e19
|
Check bounds and encode
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1611652 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
dc62d10348
|
For a Shading object, domain is optional and its default value is what we need
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1611651 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
0a7069adae
|
Removed unused functionType parameter
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1611650 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
0a505d2b84
|
Added test case for the gradient package
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1611649 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
b49267763c
|
Cleaned up and re-organized PS gradient test case
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1611648 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
6b998b1ba3
|
createPDFPattern can be made private
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610540 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
fbf34c38dc
|
Use the appropriate double formatter depending on the selected output
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610539 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
5166be88be
|
Factorized outputDoubles into GradientMaker
Removed conversion to Double when unnecessary
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610538 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
bff76cd4a3
|
Rename toWriteableString into output and added StringBuilder parameter
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610537 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
cc8de67793
|
Delegate function rendering to dedicated class intead of taking as parameter a list of Strings coming from who knows where
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610535 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
137171a8e7
|
Renamed shading package to gradient
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610534 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
41cfa73d4b
|
Moved stuff that is common to PDF and PS to Pattern
Removed PSPattern class and no longer necessary PDF and PS sub-classes of GradientMaker
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610532 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
48d4ad4993
|
Moved content of FunctionPattern into Function
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610528 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
decb63c9df
|
Moved content of ShadingPattern into Shading
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609760 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
b7b8ba98b4
|
Factorized shading code that was common to PDF and PostScript
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609759 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
fd5c47183e
|
Renamed GradientFactory into GradientMaker
Moved PDF/PSGradientMaker into dedicated packages
Factory stands for a pattern relating to application deployment. This is just about rendering a gradient to a certain output format.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609758 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
27b5b411cd
|
Tightened access control to Function's fields
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609756 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
06adde0ea4
|
Simplified makeShading and makePattern methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609754 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
811e218ebc
|
More sensible variable naming
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609751 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
f9e61a8128
|
Avoid unnecessary conversion to List of Double by keeping the original float[] array for colors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609750 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
1ead2b6ba0
|
Removed makeFunction methods, whose implementations are the same for both PDF and PS
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609746 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
d2b8aba113
|
Removed unnecessary FunctionDelegate class
Removed makeFunction/Shading/Gradient methods in PDFFactory that were not used, duplicates of methods in (PDF)GradientFactory and getting in the way of refactoring
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609745 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
2be89ddec6
|
Moved creation of colors into createFunctions
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609547 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
09781c3b8f
|
Removed makeGradient and moved its content into createGradient
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609542 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
3a36357fca
|
Extracted function creation into separate method and simplified it
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609538 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
89c15128cb
|
Removed dead code
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609535 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
07df6c3deb
|
Gave more sensible names to variables
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609533 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
ed15912213
|
Removed createGradient abstract method, that was not having any specific implementation in sub-classes
Removed unnecessary GradientRegistrar interface
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609532 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
1cc7422fab
|
Factorized code that is common to linear and radial gradient creation
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609530 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
43597cfb65
|
Factorized gradient creation out of PDF & PS into GradientFactory
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609529 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
290077cc21
|
Moved checks for repeated gradient out of gradient-creation methods
Will ease factorizing of common code between PDF and PostScript
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609527 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
2cf4301b4f
|
Small adjustments to make duplication in PDF and PostScript gradients more apparent
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609526 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
b1e0d1b19f
|
Removed unused code
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609525 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
e848ca20e3
|
Factorized creation of gradient bounds
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609524 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
a201927a5e
|
Factorized creation of gradient colors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609523 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
73b9837624
|
Factorized creation of gradient transform
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609522 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
47b6aab658
|
Small adjustments to make duplication in linear and radial gradients more apparent
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609521 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
c693acafaf
|
Removed unused code
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609519 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
cf24cc5673
|
Factorized creation of gradient bounds
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609518 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
ea7fa816d2
|
Factorized creation of gradient colors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609517 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
c085138424
|
Factorized check for transparent colors out of gradient-handling code
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609516 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
291a0f7840
|
Factorized creation of gradient transform
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609515 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
7b8a5d5b63
|
Small adjustments to make duplication in linear and radial gradients more apparent
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609514 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
619f55e1a4
|
Extracted gradient painting into own methods
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609513 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
160ddd9863
|
Removed pseudo-factory method GradientFactory.newInstance
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609511 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
512823a2da
|
Fixed gradients in PostScript output
Linear gradients were not rendered properly in non-square shapes
Gradial gradients don't need to be rasterized in ellipses
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609508 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
46f24b2b1a
|
If the start/end stop does not coincide with the start/end of the gradient, repeat the first/last color
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609507 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Vincent Hennebert
|
66599dd58a
|
Created branch for working on FOP-2393, gradient rendering
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1609496 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |
Luis Bernardo
|
9dc7ab3cca
|
FOP-2389: PDFEncryption: error when Password length>32
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1608815 13f79535-47bb-0310-9956-ffa450edef68
|
10 years ago |