|
18 | 18 | */ |
19 | 19 | @SuppressWarnings({"WeakerAccess", "unused", "DuplicatedCode"}) |
20 | 20 | public class Barcode { |
| 21 | + /** |
| 22 | + * Represents the types of file formats that can be used for saving files. |
| 23 | + * This enumeration includes common image file formats as well as an unspecified option. |
| 24 | + * Enum Constants: |
| 25 | + * - JPG: Represents the JPEG image format. |
| 26 | + * - BMP: Represents the BMP (Bitmap) image format. |
| 27 | + * - PNG: Represents the PNG (Portable Network Graphics) image format. |
| 28 | + * - GIF: Represents the GIF (Graphics Interchange Format) image format. |
| 29 | + * - TIFF: Represents the TIFF (Tagged Image File Format) image format. |
| 30 | + * - UNSPECIFIED: Represents an undefined or unspecified file format. |
| 31 | + */ |
| 32 | + public enum SaveTypes { |
| 33 | + /** |
| 34 | + * Represents the JPEG image file format. |
| 35 | + * Commonly used for storing and compressing digital images, particularly for photographs. |
| 36 | + */ |
| 37 | + JPG, |
| 38 | + /** |
| 39 | + * Represents the BMP (Bitmap) image file format. |
| 40 | + * BMP is a raster graphics image file format used to store bitmap digital images. |
| 41 | + * It is commonly utilized for simple and uncompressed images. |
| 42 | + */ |
| 43 | + BMP, |
| 44 | + /** |
| 45 | + * Represents the PNG (Portable Network Graphics) image file format. |
| 46 | + * PNG is a raster-graphics file format that supports lossless data compression. |
| 47 | + * It is widely used for high-quality images with support for transparency. |
| 48 | + */ |
| 49 | + PNG, |
| 50 | + /** |
| 51 | + * Represents the GIF (Graphics Interchange Format) image file format. |
| 52 | + * GIF is widely used for animated images and simple graphics with limited color palettes. |
| 53 | + */ |
| 54 | + GIF, |
| 55 | + /** |
| 56 | + * Represents the TIFF (Tagged Image File Format) image file format. |
| 57 | + * TIFF is a flexible and adaptable file format used for storing high-quality raster graphics and images. |
| 58 | + * It is commonly used in applications requiring detailed image data, such as desktop publishing and professional photography. |
| 59 | + */ |
| 60 | + TIFF, |
| 61 | + /** |
| 62 | + * Represents an undefined or unspecified file format. |
| 63 | + * This constant is used when no specific file format is selected or applicable. |
| 64 | + */ |
| 65 | + UNSPECIFIED |
| 66 | + } |
21 | 67 |
|
22 | | - public enum SaveTypes {JPG, BMP, PNG, GIF, TIFF, UNSPECIFIED} |
23 | | - |
24 | | - public enum AlignmentPositions {CENTER, LEFT, RIGHT} |
| 68 | + /** |
| 69 | + * The AlignmentPositions enum represents the alignment positions |
| 70 | + * that can be used to specify the layout or positioning of elements. |
| 71 | + * It defines the following constants: |
| 72 | + * - CENTER: Represents a centered alignment. |
| 73 | + * - LEFT: Represents a left-aligned position. |
| 74 | + * - RIGHT: Represents a right-aligned position. |
| 75 | + */ |
| 76 | + public enum AlignmentPositions { |
| 77 | + /** |
| 78 | + * Represents a centered alignment position. |
| 79 | + * Typically used to specify that an element should be positioned |
| 80 | + * or aligned at the center within its container or layout. |
| 81 | + */ |
| 82 | + CENTER, |
| 83 | + /** |
| 84 | + * Represents a left-aligned position. |
| 85 | + * Typically used to specify that an element should be positioned |
| 86 | + * or aligned to the left within its container or layout. |
| 87 | + */ |
| 88 | + LEFT, |
| 89 | + /** |
| 90 | + * Represents a right-aligned position. |
| 91 | + * Typically used to specify that an element should be positioned |
| 92 | + * or aligned to the right within its container or layout. |
| 93 | + */ |
| 94 | + RIGHT |
| 95 | + } |
25 | 96 |
|
26 | 97 | private IBarcode ibarcode; |
27 | 98 | private String rawData = ""; |
|
0 commit comments