blob: eb30482e76cff8737434eaa6ed07a05c96a35f05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
package com.artifex.mupdf.fitz;
public class Outline
{
public String title;
public String uri;
public int page;
public Outline down[];
public float x;
public float y;
public Outline(String title, int page, String uri, float x, float y, Outline[] down) {
this.title = title;
this.page = page;
this.uri = uri;
this.down = down;
this.x = x;
this.y = y;
}
public String toString()
{
StringBuffer s = new StringBuffer();
s.append(page);
s.append(": ");
s.append(title);
s.append(' ');
s.append(uri);
s.append('\n');
if (down != null)
{
for (int i = 0; i < down.length; i++)
{
s.append('\t');
s.append(down[i]);
s.append('\n');
}
}
s.deleteCharAt(s.length() - 1);
return s.toString();
}
}
|