|
| record | CommonFields (File logoFile, int size, double imageRatio, Color qrColor, Color bgColor, boolean roundedModules, int margin) |
| | Common form fields used to configure QR code generation.
|
| |
| record | EncodedData (String data, String defaultFileName) |
| | Encapsulates the encoded QR data and the suggested default file name for saving.
|
| |
| record | MecardJFields (JTextField nameField, JTextField orgField, JTextField phoneField, JTextField emailField, JTextField adrField, JTextField urlField) |
| | Encapsulates all MECARD input fields for QR code generation.
|
| |
| record | MeetJFields (JTextField meetTitleField, JTextField meetUIdField, JTextField meetNameField, DatePicker meetBeginDatePicker, TimePicker meetBeginTimePicker, DatePicker meetEndDatePicker, TimePicker meetEndTimePicker, JTextField meetLatField, JTextField meetLongField) |
| | Encapsulates all MEET fields for QR code generation.
|
| |
| record | ModuleContext (CommonFields config, int matrixWidth, int matrixHeight, int whiteBoxX, int whiteBoxY, int whiteBoxSize) |
| | Context for QR module rendering, including configuration, matrix dimensions, and logo area.
|
| |
| record | NativeImageUiComponents (JTextField nameField, JButton browseButton, JSlider ratioSlider, JButton qrColorButton, JRadioButton freeRadio, JRadioButton meetRadio, JTextArea freeField, TimePicker meetBeginTimePicker) |
| | Encapsulates core Swing GUI components used for UI testing and previews simulating Native Image configuration.
|
| |
| record | WholeFields (IntSupplier availableHeightForQrCode, Mode currentMode, String free, String name, String org, String tel, String email, String adr, String url, String meetTitle, String meetUId, String meetName, String meetBeginDateTime, String meetEndDateTime, String meetLat, String meetLong, String logoPath, int size, int margin, double ratio, Color qrColor, Color bgColor, boolean isRoundedModules) |
| | Immutable data structure (record) for QR code generation input.
|
| |
| record fr.softsf.canscan.model.NativeImageUiComponents |
( |
JTextField | nameField, |
|
|
JButton | browseButton, |
|
|
JSlider | ratioSlider, |
|
|
JButton | qrColorButton, |
|
|
JRadioButton | freeRadio, |
|
|
JRadioButton | meetRadio, |
|
|
JTextArea | freeField, |
|
|
TimePicker | meetBeginTimePicker ) |
Encapsulates core Swing GUI components used for UI testing and previews simulating Native Image configuration.
The record holds direct references to mutable Swing components (e.g., JButton, JTextField); this is intentional as copying them is impractical.
Provides a method to assign unique names for reliable identification by test frameworks.
Assigns unique names to all non-null components for automated tests.
This ensures that each component can be reliably identified by UI testing frameworks or native image simulators.
| record fr.softsf.canscan.model.WholeFields |
( |
IntSupplier | availableHeightForQrCode, |
|
|
Mode | currentMode, |
|
|
String | free, |
|
|
String | name, |
|
|
String | org, |
|
|
String | tel, |
|
|
String | email, |
|
|
String | adr, |
|
|
String | url, |
|
|
String | meetTitle, |
|
|
String | meetUId, |
|
|
String | meetName, |
|
|
String | meetBeginDateTime, |
|
|
String | meetEndDateTime, |
|
|
String | meetLat, |
|
|
String | meetLong, |
|
|
String | logoPath, |
|
|
int | size, |
|
|
int | margin, |
|
|
double | ratio, |
|
|
Color | qrColor, |
|
|
Color | bgColor, |
|
|
boolean | isRoundedModules ) |
Immutable data structure (record) for QR code generation input.
This record encapsulates all user-provided data (text content, coordinates) and visual configuration (colors, dimensions, logo) required to create and render a QR code.
It supports different encoding modes (defined by Mode):
-
Mode#MECARD: Structured business/contact cards.
-
Mode#MEET: Event or meeting invitations (calendar data).
-
Mode#FREE: Simple free-form text or URL.
- Parameters
-
| availableHeightForQrCode | An IntSupplier that provides the available vertical height in pixels for QR code rendering upon invocation (lazy evaluation). |
| currentMode | The active encoding mode for the QR code content. MECARD Mode Parameters
|
- Parameters
-
| name | Full name of the contact. |
| org | Organization or company name. |
| tel | Telephone number. |
| email | Email address. |
| adr | Postal address. |
| url | Website or profile URL. MEETING Mode Parameters
|
- Parameters
-
| meetTitle | Title of the meeting or event. |
| meetUId | Unique event identifier (UID). |
| meetName | Organizer or event name. |
| meetBeginDateTime | Event start date and time in UTC format (e.g., 19970715T040000Z). |
| meetEndDateTime | Event end date and time in UTC format (e.g., 19970715T040000Z). |
| meetLat | Geographic latitude of the meeting location. |
| meetLong | Geographic longitude of the meeting location. FREE Mode Parameter
|
- Parameters
-
| free | Free-form text content (unstructured text or simple URL). General and Visual Configuration
|
- Parameters
-
| logoPath | Optional file path for the image to embed in the center of the QR code. |
| size | Target image size of the QR code in pixels (including the quiet zone). |
| margin | Quiet zone size in modules. |
| ratio | Logo visibility ratio (maximum logo radius / QR code size), between 0.0 and 1.0. |
| qrColor | Color of the QR code modules. |
| bgColor | Background color of the QR code and the quiet zone. |
| isRoundedModules | true if modules should be rendered with rounded corners. |