[Biojava-l] LayeredRenderer clipping bug

Matthew Pocock mrp@sanger.ac.uk
Mon, 17 Sep 2001 12:37:28 +0100


Keith James wrote:

> 
> I think the problem is in the paint method, somewhere near
> 
> clip.setFrame(minP, 0.0, maxP - minP, depth)
> 
> Keith


 From memory, the real-estate for a symbol at i as coordinate x is:

sequenceToGraphics(i-1) <= x < sequenceToGraphics(i)

It is possible that somewhere we are calculating the exclusive range 
rather than the inclusive range of legal values for x. Try checking how 
maxP and minP are calculated and make sure that they do include both the 
leading and trailing symbols.

M