Date: 2005-02-15T11:42:59
   Editor: JeremiasMaerki
   Wiki: XML Graphics - FOP Wiki
   Page: CollapsingBorderModel
   URL: http://wiki.apache.org/xmlgraphics-fop/CollapsingBorderModel

   Additional comments concerning the table's outer border.

Change Log:

------------------------------------------------------------------------------
@@ -21,7 +21,7 @@
 
 '''TODO''' Find out what strategy to use for painting the border.
 
- * Strategy 1: Each cell paints its own 4 partial (half) border lines (each 
clipped at the grid lines) in which case it only needs to know it own 4 join 
points and can use a trapezoid (polygon with 4 points) for clipping. This is 
relatively simple to implement but it might result in the borders not looking 
good because the same border line is painted twice with 2 clipping polygons 
complementing each other.
+ * Strategy 1: Each cell paints its own 4 partial (half) border lines (each 
clipped at the grid lines) in which case it only needs to know it own 4 join 
points and can use a trapezoid (polygon with 4 points) for clipping. This is 
relatively simple to implement but it might result in the borders not looking 
good because the same border line is painted twice with 2 clipping polygons 
complementing each other. One difficulty in this approach are the outer borders 
of a table. The renderer needs an information which border sides represent the 
outer border of the table in which case the clipping polygon has to be extended 
beyond the cell area. But in contrast to strategy 2 there's no need for 
information that belongs to neighbouring cells. And the clipping polygon still 
always consists of 4 points. 
 
  * Strategy 2: Cells are assigned a specific subset of border lines to paint. 
Example: All cells of the first row paint "before" borders, all cells of the 
first column paint paint the "start" borders, all cells paint "end" and "after" 
borders. Problem with this approach is the additional info necessary to create 
the right clip polygon and handling empty cells.
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to