sorry,
I forgot to mention that createverticalline is a local method, implemented
as follows : (something similar is valid for the text field)


        protected JRDesignLine createVerticalLine(int left,int top,int width,int
height) {
                return createLine(left, top,
width,height,JRDesignLine.POSITION_TYPE_FIX_RELATIVE_TO_TOP);
        }
                
        protected JRDesignLine createLine(int left,int top, int width, int 
height,
byte positionType) {
                JRDesignLine line = new JRDesignLine();
                line.setWidth(width);
                line.setX(left);
                line.setY(top);
                line.setHeight(height);
                line.setPen(JRDesignLine.PEN_THIN);
                line.setFill(JRDesignLine.FILL_SOLID);
                line.setPositionType(positionType);
                return line;
        }


Dieter D'haeyere wrote:
> 
> I have a problem when generating vertical lines in the detail band.
> I want to add an uninterupted vertical line in the detail band.  I draw a
> line with the height of the band, but when the band gets repeated
> (serveral beans in my collection that is sent to the band), there is a
> tiny small space between those vertical lines.
> 
> Consider following peace of code :
>               JRDesignBand detailBand= new JRDesignBand();
>               detailBand.setHeight(20);
>               
>               JRDesignLine firstVerticalLineOfTable=  createVerticalLine(25, 
> 0,0, 20);
>               detailBand.addElement(firstVerticalLineOfTable);
>               detailBand.addElement(createRightStringTextField(26, 2, 363, 12,
> "$F{productName}"));
>               JRDesignLine secondVerticalLineOfTable=  
> createVerticalLine(390, 0, 0,
> 20);
>               
>               setDetail(detailBand);
> 
> The lines have exactly the same height as the band, but still, there is
> that little bit of whitespace between the chunks.
> 
> Thx in advance,
> 
> 

-- 
View this message in context: 
http://www.nabble.com/vertical-lines-in-detail-band-tp14286279p14286311.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to