PosnMarker.java
1.86 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.text;
import com.adobe.xfa.text.TextMarker;
import com.adobe.xfa.text.TextPosn;
import com.adobe.xfa.text.TextPosnBase;
class PosnMarker
extends TextPosn {
private PosnMarker mpoMate = null;
private TextMarker mpoMarker;
PosnMarker(TextMarker poMarker) {
this.mpoMarker = poMarker;
this.position(1);
}
PosnMarker(TextPosnBase oSource, TextMarker poMarker, int ePosn) {
super(oSource);
this.mpoMarker = poMarker;
this.setMarkerPosition(true);
this.position(ePosn);
}
PosnMarker(TextPosnBase oSource, TextMarker poMarker) {
this(oSource, poMarker, 1);
}
PosnMarker getMate() {
return this.mpoMate;
}
@Override
public boolean equals(Object object) {
return super.equals(object);
}
@Override
public int hashCode() {
return super.hashCode();
}
void setMate(PosnMarker poMate) {
this.mpoMate = poMate;
}
TextMarker getMarker() {
return this.mpoMarker;
}
void setMarker(TextMarker poMarker) {
this.mpoMarker = poMarker;
}
void setMarkerIndex(int nIndex) {
this.index(nIndex);
boolean bPrimary = true;
if (this.mpoMate != null) {
if (this.mpoMate.index() == this.index()) {
return;
}
if (this.mpoMate.index() < this.index()) {
bPrimary = false;
}
}
if (bPrimary) {
this.tighten(true);
if (this.mpoMate != null && this.index() > this.mpoMate.index()) {
this.index(this.mpoMate.index());
}
} else {
this.tighten(false);
if (this.index() < this.mpoMate.index()) {
this.index(this.mpoMate.index());
}
}
}
}