78 * @param label Tag for the link. |
78 * @param label Tag for the link. |
79 * @return String Hyper Link. |
79 * @return String Hyper Link. |
80 */ |
80 */ |
81 public String getHyperLinkString(DocPath link, String label) { |
81 public String getHyperLinkString(DocPath link, String label) { |
82 return getHyperLinkString(link, label, false, "", "", ""); |
82 return getHyperLinkString(link, label, false, "", "", ""); |
|
83 } |
|
84 |
|
85 public Content getHyperLink(DocPath link, String label) { |
|
86 return getHyperLink(link, new StringContent(label), false, "", "", ""); |
83 } |
87 } |
84 |
88 |
85 public String getHyperLinkString(DocLink link, String label) { |
89 public String getHyperLinkString(DocLink link, String label) { |
86 return getHyperLinkString(link, label, false, "", "", ""); |
90 return getHyperLinkString(link, label, false, "", "", ""); |
87 } |
91 } |
180 if (stylename != null && stylename.length() != 0) { |
184 if (stylename != null && stylename.length() != 0) { |
181 retlink.append("</FONT>"); |
185 retlink.append("</FONT>"); |
182 } |
186 } |
183 retlink.append("</a>"); |
187 retlink.append("</a>"); |
184 return retlink.toString(); |
188 return retlink.toString(); |
|
189 } |
|
190 |
|
191 public Content getHyperLink(DocPath link, |
|
192 Content label, boolean strong, |
|
193 String stylename, String title, String target) { |
|
194 return getHyperLink(new DocLink(link), label, strong, |
|
195 stylename, title, target); |
185 } |
196 } |
186 |
197 |
187 public Content getHyperLink(DocLink link, |
198 public Content getHyperLink(DocLink link, |
188 Content label, boolean strong, |
199 Content label, boolean strong, |
189 String stylename, String title, String target) { |
200 String stylename, String title, String target) { |
280 Content htmlDocument = new HtmlDocument(htmlDocType, |
291 Content htmlDocument = new HtmlDocument(htmlDocType, |
281 htmlComment, htmlTree); |
292 htmlComment, htmlTree); |
282 write(htmlDocument); |
293 write(htmlDocument); |
283 } |
294 } |
284 |
295 |
285 /** |
|
286 * Print the appropriate spaces to format the class tree in the class page. |
|
287 * |
|
288 * @param len Number of spaces. |
|
289 */ |
|
290 public String spaces(int len) { |
|
291 String space = ""; |
|
292 |
|
293 for (int i = 0; i < len; i++) { |
|
294 space += " "; |
|
295 } |
|
296 return space; |
|
297 } |
|
298 |
|
299 protected String getGeneratedByString() { |
296 protected String getGeneratedByString() { |
300 Calendar calendar = new GregorianCalendar(TimeZone.getDefault()); |
297 Calendar calendar = new GregorianCalendar(TimeZone.getDefault()); |
301 Date today = calendar.getTime(); |
298 Date today = calendar.getTime(); |
302 return "Generated by javadoc ("+ ConfigurationImpl.BUILD_DATE + ") on " + today; |
299 return "Generated by javadoc ("+ ConfigurationImpl.BUILD_DATE + ") on " + today; |
303 } |
300 } |