MCPcopy Index your code
hub / github.com/ArtifexSoftware/mupdf / flattenOutline

Method flattenOutline

platform/java/example/ViewerCore.java:267–277  ·  view source on GitHub ↗
(Outline[] rawOutline, String indent, Vector<OutlineItem> v)

Source from the content-addressed store, hash-verified

265 worker.add(new Worker.Task() {
266 OutlineItem[] outline = null;
267 protected void flattenOutline(Outline[] rawOutline, String indent, Vector<OutlineItem> v) {
268 for (Outline node : rawOutline) {
269 if (node.title != null) {
270 Location loc = doc.resolveLink(node);
271 String title = indent + node.title;
272 v.add(new OutlineItem(title, node.uri, loc));
273 }
274 if (node.down != null)
275 flattenOutline(node.down, indent + " ", v);
276 }
277 }
278 public void work() {
279 Outline[] rawOutline = doc.loadOutline();
280 if (rawOutline != null) {

Callers 1

workMethod · 0.95

Calls 2

resolveLinkMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected