Top Banner
Jack Chen
56
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Javadoc study and presentation

Jack Chen

Page 2: Javadoc study and presentation

How to use it?

Page 3: Javadoc study and presentation

Generate HTML

Page 4: Javadoc study and presentation

Step 1

Page 5: Javadoc study and presentation

Step 2

Page 6: Javadoc study and presentation

Step 3

Page 7: Javadoc study and presentation

Step 4

Page 8: Javadoc study and presentation
Page 9: Javadoc study and presentation

Hierachy Tree

Page 10: Javadoc study and presentation
Page 11: Javadoc study and presentation

Navigation Bar

Page 12: Javadoc study and presentation
Page 13: Javadoc study and presentation

Index

Page 14: Javadoc study and presentation
Page 15: Javadoc study and presentation

$ javadoc -d “Destination directory for output files” \

-sourcepath "Specify where to find source files” \

“package names”

Command Line

$ javadoc -d "/home/jackchen/桌面/javadoc_html/" \

-sourcepath “/home/jackchen/桌面/project/SiME_Service/SiMESpeech/SiMESpeechLibrary/mylibrary/src/main/java/

“ \

com.chipsip.speech

Example

Page 16: Javadoc study and presentation

$ javadoc

Page 17: Javadoc study and presentation

Generate PDF

Page 18: Javadoc study and presentation

• HTMLDOC

• PDFDoclet

Page 19: Javadoc study and presentation

HTMLDOC

PDF

HTML

HTMLHTML

Page 20: Javadoc study and presentation

Step 1

$ sudo apt-get install htmldoc

$ htmldoc

Page 21: Javadoc study and presentation

Step 2

Page 22: Javadoc study and presentation

Step 3

Page 23: Javadoc study and presentation

Step 4

Page 24: Javadoc study and presentation
Page 25: Javadoc study and presentation

Page

Page 26: Javadoc study and presentation

Table of Contents

Page 27: Javadoc study and presentation

Color

Page 28: Javadoc study and presentation
Page 29: Javadoc study and presentation

Fonts

Page 30: Javadoc study and presentation
Page 31: Javadoc study and presentation

• HTMLDOC

• PDFDoclet

Page 32: Javadoc study and presentation

PDFDoclet

Page 33: Javadoc study and presentation

http://sourceforge.net/projects/pdfdoclet/

Step 1

Page 34: Javadoc study and presentation

Javadoc \

-doclet "Generate output via alternate doclet" \

-docletpath "Specify where to find doclet class files" \

-pdf "The path of the created PDF file" \

-config "Specify where to find config file" \

-sourcepath "Specify where to find source files“ \

“package names”

Command Line

javadoc \

-doclet "com.tarsec.javadoc.pdfdoclet.PDFDoclet" \

-docletpath "./jar/pdfdoclet-1.0.3-all.jar" \

-pdf "/home/jackchen/桌面/doc/pdfdoclet-1.0.3.pdf" \

-config "example/laby/config_laby.properties" \

-sourcepath "/home/jackchen/桌面/project/SiME_Service/SiMESpeech/SiMESpeechLibrary/mylibrary/src/main

/java/" \

“com.chipsip.speech”

Example

Step 2

Package name

Page 35: Javadoc study and presentation
Page 36: Javadoc study and presentation

Configuration

http://pdfdoclet.sourceforge.net/configuration.ht

ml

Page 37: Javadoc study and presentation

Configuration

http://pdfdoclet.sourceforge.net/configuration.ht

ml

Page 38: Javadoc study and presentation

Configuration

Page 39: Javadoc study and presentation

create.links=yes create.links=no

Page 40: Javadoc study and presentation

Generate RTF

Page 41: Javadoc study and presentation

• Docflex-Doclet - Free

• Docflex-Javadoc – Limited Free

Page 42: Javadoc study and presentation

Step 1

Docflex-Doclet

http://www.filigris.com/downloads/

Page 43: Javadoc study and presentation

javadoc -doclet "Generate output via alternate doclet" \

-docletpath "Specify where to find doclet class files" \

-docflexconfig "Specify where to find config file" \

-d “Destination directory for output files” \

-sourcepath "Specify where to find source files“ \

“package names”

Command Line

javadoc -doclet com.docflex.javadoc.Doclet \

-docletpath "/home/jackchen/桌面/docflex-doclet-1.6.1/lib/docflex-doclet.jar" \

-docflexconfig "/home/jackchen/桌面/docflex-doclet-1.6.1/linux/docflex.config" \

-d "/home/jackchen/桌面/doc/" \

-sourcepath "/home/jackchen/桌面/project/SiME_Service/SiMESpeech/SiMESpeechLibrary/mylibrary/src/main/java/“

"com.chipsip.speech"

Example

Step 2

Package name

Page 44: Javadoc study and presentation

Step 3

Page 45: Javadoc study and presentation
Page 46: Javadoc study and presentation
Page 47: Javadoc study and presentation
Page 48: Javadoc study and presentation

Step 1

http://www.filigris.com/downloads/

Docflex-JavaDoc

Page 49: Javadoc study and presentation

$ ./designer.sh

Command Line

Page 50: Javadoc study and presentation
Page 51: Javadoc study and presentation
Page 52: Javadoc study and presentation
Page 53: Javadoc study and presentation

Comparison

Page 54: Javadoc study and presentation

Doxygen

HTMLDOC

PDFDoclet

Docflex-Doclet

Page 55: Javadoc study and presentation

Doxygen

HTMLDOC

PDFDoclet

Docflex-Doclet

Page 56: Javadoc study and presentation

Thanks for your

attention