TextState.java
2.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
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
113
114
115
116
117
118
119
120
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.internal.pdftoolkit.core.types.ASName
*/
package com.adobe.internal.pdftoolkit.pdf.content.processor;
import com.adobe.internal.pdftoolkit.core.types.ASName;
import com.adobe.internal.pdftoolkit.pdf.graphics.font.PDFFont;
public class TextState {
private double charSpacing = 0.0;
private double wordSpacing = 0.0;
private double horizScaling = 100.0;
private double leading = 0.0;
private ASName fontName = null;
private double fontSize = 0.0;
private PDFFont font = null;
private int renderingMode = 0;
private double rise = 0.0;
private boolean knockout = true;
public TextState() {
}
TextState(TextState textState) {
this.setCharSpacing(textState.getCharSpacing());
this.setWordSpacing(textState.getWordSpacing());
this.setHorizScaling(textState.getHorizScaling());
this.setLeading(textState.getLeading());
this.setFontName(textState.getFontName());
this.setFontSize(textState.getFontSize());
this.setFont(textState.getFont());
this.setRenderingMode(textState.getRenderingMode());
this.setRise(textState.getRise());
this.setKnockout(textState.getKnockout());
}
public double getCharSpacing() {
return this.charSpacing;
}
public void setCharSpacing(double charSpacing) {
this.charSpacing = charSpacing;
}
public double getWordSpacing() {
return this.wordSpacing;
}
public void setWordSpacing(double wordSpacing) {
this.wordSpacing = wordSpacing;
}
public double getHorizScaling() {
return this.horizScaling;
}
public void setHorizScaling(double horizScaling) {
this.horizScaling = horizScaling;
}
public double getLeading() {
return this.leading;
}
public void setLeading(double leading) {
this.leading = leading;
}
public ASName getFontName() {
return this.fontName;
}
public void setFontName(ASName fontName) {
this.fontName = fontName;
}
public double getFontSize() {
return this.fontSize;
}
public void setFontSize(double fontSize) {
this.fontSize = fontSize;
}
public PDFFont getFont() {
return this.font;
}
public void setFont(PDFFont font) {
this.font = font;
}
public int getRenderingMode() {
return this.renderingMode;
}
public void setRenderingMode(int renderingMode) {
this.renderingMode = renderingMode;
}
public double getRise() {
return this.rise;
}
public void setRise(double rise) {
this.rise = rise;
}
public boolean getKnockout() {
return this.knockout;
}
public void setKnockout(boolean knockout) {
this.knockout = knockout;
}
}