Class ViewExporter

java.lang.Object
lu.kbra.modelizer_next.ui.export.ViewExporter

public final class ViewExporter extends Object
Exports one or more document views to image files.
  • Field Details

  • Method Details

    • baseName

      public static String baseName(String fileName)
      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,File>> exportViews(Map<PanelType,DiagramCanvas> canvases, ViewExportRequest request, Optional<File> sourceFileName, Consumer<lu.kbra.pclib.datastructure.triplet.Triplet<Optional<File>,PanelType,File>> callback) throws IOException
      Exports the views.
      Parameters:
      canvases - canvases value used by the operation
      request - export request being processed
      sourceFileName - name value to use
      callback - 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

      public static String replaceDateTimeTokens(String value)
      Replaces date and time fields in an export text.
      Parameters:
      value - text value to process
      Returns:
      text with date and time tokens replaced
    • typeToken

      public static String typeToken(PanelType panelType)
      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