[Biojava-l] Rendering hints and GUI's

Matthew Pocock matthew_pocock@yahoo.co.uk
Thu, 16 Jan 2003 16:10:12 +0000


You could write a thin renderer impl that passes all methods through to 
a delegate except the drawing method, where it first sets rendering 
hints. I guess that functionality should realy be in the component that 
requests the rendering though (i.e. SequencePanel).

Matthew

Schreiber, Mark wrote:
> Hi -
> 
> I would like to be able to add RenderingHints to the various renderers
> in BioJava. How can I intercept the Graphics object that is passed to
> the Renderers paint(Graphics g, SequencePanel sp) method?
> 
> I could overide the method to use the RenderingHints before passing the
> arguments to super but that seems a bit overkill. Is there another way?
> 
> - Mark
> 
> 
> Mark Schreiber PhD
> Bioinformatics
> AgResearch Invermay
> PO Box 50034
> Mosgiel
> New Zealand
>  
> PH:   +64 3 489 9175
> FAX:  +64 3 489 3739
> 
> =======================================================================
> Attention: The information contained in this message and/or attachments
> from AgResearch Limited is intended only for the persons or entities
> to which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipients is prohibited by AgResearch
> Limited. If you have received this message in error, please notify the
> sender immediately.
> =======================================================================
> 
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l
> 


-- 
BioJava Consulting LTD - Support and training for BioJava
http://www.biojava.co.uk