Glyph.java
1.51 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.internal.pdftoolkit.graphicsDOM;
import java.awt.geom.GeneralPath;
import java.lang.ref.WeakReference;
public class Glyph {
private int charCode;
private int gid;
private double xPos;
private double yPos;
private WeakReference<GeneralPath> savedGlyphOutline;
protected int id;
protected Glyph() {
}
public Glyph(int charCode, int gid, double xPos, double yPos, int id) {
this.setCharCode(charCode);
this.setGID(gid);
this.setXPos(xPos);
this.setYPos(yPos);
this.id = id;
}
public int getID() {
return this.id;
}
public int getCharCode() {
return this.charCode;
}
public void setCharCode(int charCode) {
this.charCode = charCode;
}
public int getGID() {
return this.gid;
}
public void setGID(int gid) {
this.gid = gid;
}
public double getXPos() {
return this.xPos;
}
public void setXPos(double xPos) {
this.xPos = xPos;
}
public double getYPos() {
return this.yPos;
}
public void setYPos(double yPos) {
this.yPos = yPos;
}
public GeneralPath getGlyphOutline() {
if (this.savedGlyphOutline != null) {
return this.savedGlyphOutline.get();
}
return null;
}
public void setGlyphOutline(GeneralPath savedGlyphOutline) {
this.savedGlyphOutline = new WeakReference<GeneralPath>(savedGlyphOutline);
}
}