[Biojava-l] Help needed tp add "Number of Bits" vertical and column number labeling to DistributionLogos

mark.schreiber at novartis.com mark.schreiber at novartis.com
Tue Jan 31 20:12:36 EST 2006


Hi Todd,

The DistributionLogos class is not the best way to draw large logos with 
additional features such as labels.

The best way to do this is to make a custom component and copy the drawing 
code from DistributionLogo and incorporate your own code for labels etc. 
This way you can also draw several positions in the Logo into one 
component. The better option is to make the code draw direct to a 
Graphics2D object. In this way the code can paint to a component or to a 
BufferedImage.

- Mark





Todd Riley <toddri at eden.rutgers.edu>
Sent by: biojava-l-bounces at portal.open-bio.org
02/01/2006 05:33 AM

 
        To:     Biojava-l at biojava.org
        cc:     (bcc: Mark Schreiber/GP/Novartis)
        Subject:        [Biojava-l] Help needed tp add "Number of Bits" vertical and column number 
labeling to DistributionLogos


Hello,

I would like to add a "2 Bits" vertical label (with a bracket) and 
column numbering to my DistributionLogos.  I have seen both in some 
graphics, but haven't been able to find the code in the demos or on the 
web.

Thanks,
Todd

_______________________________________________
Biojava-l mailing list  -  Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l





More information about the Biojava-l mailing list