DispPosn.java
2.55 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.text;
import com.adobe.xfa.text.DispLine;
import com.adobe.xfa.text.DispMapItem;
import com.adobe.xfa.text.TextPosn;
import com.adobe.xfa.text.TextPosnBase;
import com.adobe.xfa.text.TextStream;
class DispPosn
extends DispMapItem {
private int mnStreamCount;
private TextPosn moPosn;
DispPosn() {
this.mnStreamCount = 0;
}
DispPosn(DispPosn oSource) {
super(oSource);
this.moPosn = new TextPosn(oSource.moPosn);
this.mnStreamCount = oSource.mnStreamCount;
}
DispPosn(DispPosn oSource, int index, int length) {
super(index, length);
this.moPosn = new TextPosn(oSource.moPosn);
this.mnStreamCount = oSource.mnStreamCount;
}
DispPosn(TextPosn oSource) {
this.moPosn = new TextPosn(oSource);
this.mnStreamCount = 0;
}
DispPosn(TextPosnBase oSource) {
this.moPosn = new TextPosn(oSource);
this.mnStreamCount = 0;
}
DispPosn(TextStream poStream, int nIndex, int ePosn) {
this.moPosn = new TextPosn(poStream, nIndex, ePosn);
this.mnStreamCount = 0;
}
DispPosn(TextStream poStream, int nIndex) {
this(poStream, nIndex, 0);
this.mnStreamCount = 0;
}
@Override
TextPosn pp() {
return this.moPosn;
}
int getStreamCount() {
return this.mnStreamCount;
}
void setStreamCount(int nStreamCount) {
this.mnStreamCount = nStreamCount;
}
static void split(DispPosn oPosn, int nSplit) {
oPosn.moPosn.index(oPosn.moPosn.index() + nSplit);
}
void copyFrom(DispPosn oSource) {
super.copyFrom(oSource);
this.moPosn = new TextPosn(oSource.moPosn);
this.mnStreamCount = oSource.mnStreamCount;
}
void copyFrom(TextPosn oSource) {
this.moPosn = new TextPosn(oSource);
this.mnStreamCount = 0;
}
void copyFrom(TextPosnBase oSource) {
this.moPosn = new TextPosn(oSource);
this.mnStreamCount = 0;
}
@Override
DispPosn p() {
return this;
}
@Override
void add(DispLine line, int start, int length) {
line.add(this, start, length);
}
@Override
DispMapItem cloneMapItem() {
return new DispPosn(this);
}
@Override
DispMapItem cloneMapItem(int index, int length) {
return new DispPosn(this, index, length);
}
@Override
void copyFrom(DispMapItem source) {
assert (source instanceof DispPosn);
this.copyFrom((DispPosn)source);
}
}