Package lu.kbra.modelizer_next.ui.export
Class ViewExporter
java.lang.Object
lu.kbra.modelizer_next.ui.export.ViewExporter
Exports one or more document views to image files.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a file name without its last extension.exportViews(Map<PanelType, DiagramCanvas> canvases, ViewExportRequest request, Optional<File> sourceFileName, Consumer<lu.kbra.pclib.datastructure.triplet.Triplet<Optional<File>, PanelType, File>> callback) Exports the views.static StringreplaceDateTimeTokens(String value) Replaces date and time fields in an export text.static StringReturns the file-name token for a panel type.
-
Field Details
-
DEFAULT_FILE_PATTERN
- See Also:
-
FILE_PATTERN_TOKENS
-
SVG_NAMESPACE_URI
- See Also:
-
-
Method Details
-
baseName
Returns a file name without its last extension.- Parameters:
fileName- name value to process- Returns:
- the base name
-
exportViews
public static List<lu.kbra.pclib.datastructure.triplet.Triplet<Optional<File>,PanelType, exportViewsFile>> (Map<PanelType, DiagramCanvas> canvases, ViewExportRequest request, Optional<File> sourceFileName, Consumer<lu.kbra.pclib.datastructure.triplet.Triplet<Optional<File>, throws IOExceptionPanelType, File>> callback) Exports the views.- Parameters:
canvases- canvases value used by the operationrequest- export request being processedsourceFileName- name value to usecallback- callback value used by the operation- Returns:
- an optional result when a matching value is available
- Throws:
IOException- if the operation cannot be completed
-
replaceDateTimeTokens
Replaces date and time fields in an export text.- Parameters:
value- text value to process- Returns:
- text with date and time tokens replaced
-
typeToken
Returns the file-name token for a panel type.- Parameters:
panelType- diagram panel type whose model or layout should be used- Returns:
- the type token result
-