Changing Javadoc Styles

     

There is a default stylesheet that Sun's Javadoc tool creates when you use it to generate Javadoc. It looks like this:

 

 /* Javadoc style sheet */ /* Define colors, fonts and other style attributes    here to override the defaults */ /* Page background color */ body { background-color: #FFFFFF } /* Headings */ h1 { font-size: 145% } /* Table colors */ .TableHeadingColor     { background: #CCCCFF } /*  Dark mauve */ .TableSubHeadingColor  { background: #EEEEFF } /*  Light mauve */ .TableRowColor    { background: #FFFFFF } /* White */ /* Font used in left-hand frame lists */ .FrameTitleFont     { font-size: 100%; font-family:  Helvetica, Arial, sans-serif   } .FrameHeadingFont   { font-size: 90%; font-family:  Helvetica, Arial, sans-serif   } .FrameItemFont      { font-size: 90%; font-family:  Helvetica, Arial, sans-serif   } /* Navigation bar fonts and colors */ .NavBarCell1      { background-color:#EEEEFF;} /*  Light mauve */ .NavBarCell1Rev   { background-color:#00008B;} /*  Dark Blue */ .NavBarFont1      { font-family: Arial, Helvetica,  sans-serif; color:#000000;} .NavBarFont1Rev   { font-family: Arial, Helvetica,  sans-serif; color:#FFFFFF;} .NavBarCell2    { font-family: Arial, Helvetica,  sans-serif; background-color:#FFFFFF;} .NavBarCell3    { font-family: Arial, Helvetica,  sans-serif; background-color:#FFFFFF;} 

I include it here so that you can see the elements that you would need to change if you want to specify your own values.

To change the style your docs use, just use the Javadoc tool in the normal way, but also add the “ stylesheet flag.

 

 >javadoc -d /my/docs -stylesheet /home/styles/docs.css      net.javagarage 



Java Garage
Java Garage
ISBN: 0321246233
EAN: 2147483647
Year: 2006
Pages: 228
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net