-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBarcodeImageParams.java
More file actions
238 lines (203 loc) · 7.47 KB
/
BarcodeImageParams.java
File metadata and controls
238 lines (203 loc) · 7.47 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
package com.aspose.barcode.cloud.model;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
/** Barcode image optional parameters */
@ApiModel(description = "Barcode image optional parameters")
@jakarta.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.8.0")
public class BarcodeImageParams {
@SerializedName(value = "imageFormat")
private BarcodeImageFormat imageFormat;
@SerializedName(value = "textLocation")
private CodeLocation textLocation;
@SerializedName(value = "foregroundColor")
private String foregroundColor = "Black";
@SerializedName(value = "backgroundColor")
private String backgroundColor = "White";
@SerializedName(value = "units")
private GraphicsUnit units;
@SerializedName(value = "resolution")
private Float resolution;
@SerializedName(value = "imageHeight")
private Float imageHeight;
@SerializedName(value = "imageWidth")
private Float imageWidth;
@SerializedName(value = "rotationAngle")
private Integer rotationAngle;
/**
* Get imageFormat
*
* @return imageFormat
*/
@ApiModelProperty(value = "imageFormat")
public BarcodeImageFormat getImageFormat() {
return imageFormat;
}
public void setImageFormat(BarcodeImageFormat imageFormat) {
this.imageFormat = imageFormat;
}
/**
* Get textLocation
*
* @return textLocation
*/
@ApiModelProperty(value = "textLocation")
public CodeLocation getTextLocation() {
return textLocation;
}
public void setTextLocation(CodeLocation textLocation) {
this.textLocation = textLocation;
}
/**
* Specify the displaying bars and content Color. Value: Color name from
* https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #.
* For example: AliceBlue or #FF000000 Default value: Black.
*
* @return foregroundColor
*/
@ApiModelProperty(value = "foregroundColor")
public String getForegroundColor() {
return foregroundColor;
}
public void setForegroundColor(String foregroundColor) {
this.foregroundColor = foregroundColor;
}
/**
* Background color of the barcode image. Value: Color name from
* https://reference.aspose.com/drawing/net/system.drawing/color/ or ARGB value started with #.
* For example: AliceBlue or #FF000000 Default value: White.
*
* @return backgroundColor
*/
@ApiModelProperty(value = "backgroundColor")
public String getBackgroundColor() {
return backgroundColor;
}
public void setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
}
/**
* Get units
*
* @return units
*/
@ApiModelProperty(value = "units")
public GraphicsUnit getUnits() {
return units;
}
public void setUnits(GraphicsUnit units) {
this.units = units;
}
/**
* Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi.
* Decimal separator is dot. minimum: 1 maximum: 100000
*
* @return resolution
*/
@ApiModelProperty(example = "96", value = "resolution")
public Float getResolution() {
return resolution;
}
public void setResolution(Float resolution) {
this.resolution = resolution;
}
/**
* Height of the barcode image in given units. Default units: pixel. Decimal separator is dot.
*
* @return imageHeight
*/
@ApiModelProperty(example = "200", value = "imageHeight")
public Float getImageHeight() {
return imageHeight;
}
public void setImageHeight(Float imageHeight) {
this.imageHeight = imageHeight;
}
/**
* Width of the barcode image in given units. Default units: pixel. Decimal separator is dot.
*
* @return imageWidth
*/
@ApiModelProperty(example = "200", value = "imageWidth")
public Float getImageWidth() {
return imageWidth;
}
public void setImageWidth(Float imageWidth) {
this.imageWidth = imageWidth;
}
/**
* BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or
* RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0,
* it may increase the difficulty for the scanner to read the image. Default value: 0.
*
* @return rotationAngle
*/
@ApiModelProperty(value = "rotationAngle")
public Integer getRotationAngle() {
return rotationAngle;
}
public void setRotationAngle(Integer rotationAngle) {
this.rotationAngle = rotationAngle;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BarcodeImageParams barcodeImageParams = (BarcodeImageParams) o;
return Objects.equals(this.imageFormat, barcodeImageParams.imageFormat)
&& Objects.equals(this.textLocation, barcodeImageParams.textLocation)
&& Objects.equals(this.foregroundColor, barcodeImageParams.foregroundColor)
&& Objects.equals(this.backgroundColor, barcodeImageParams.backgroundColor)
&& Objects.equals(this.units, barcodeImageParams.units)
&& Objects.equals(this.resolution, barcodeImageParams.resolution)
&& Objects.equals(this.imageHeight, barcodeImageParams.imageHeight)
&& Objects.equals(this.imageWidth, barcodeImageParams.imageWidth)
&& Objects.equals(this.rotationAngle, barcodeImageParams.rotationAngle);
}
@Override
public int hashCode() {
return Objects.hash(
imageFormat,
textLocation,
foregroundColor,
backgroundColor,
units,
resolution,
imageHeight,
imageWidth,
rotationAngle);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BarcodeImageParams {\n");
sb.append(" imageFormat: ").append(toIndentedString(imageFormat)).append("\n");
sb.append(" textLocation: ").append(toIndentedString(textLocation)).append("\n");
sb.append(" foregroundColor: ").append(toIndentedString(foregroundColor)).append("\n");
sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n");
sb.append(" units: ").append(toIndentedString(units)).append("\n");
sb.append(" resolution: ").append(toIndentedString(resolution)).append("\n");
sb.append(" imageHeight: ").append(toIndentedString(imageHeight)).append("\n");
sb.append(" imageWidth: ").append(toIndentedString(imageWidth)).append("\n");
sb.append(" rotationAngle: ").append(toIndentedString(rotationAngle)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first
* line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}