Class ScriptableProcessor


  • public class ScriptableProcessor
    extends cz.vutbr.fit.layout.impl.BaseProcessor
    Author:
    burgetr
    • Constructor Detail

      • ScriptableProcessor

        public ScriptableProcessor()
    • Method Detail

      • getOperatorIds

        public List<String> getOperatorIds()
      • getArtifactProviderIds

        public List<String> getArtifactProviderIds​(String artifactTypeIRI)
      • processArtifact

        public cz.vutbr.fit.layout.model.Artifact processArtifact​(cz.vutbr.fit.layout.model.Artifact input,
                                                                  String providerName,
                                                                  Map<String,​Object> params)
      • apply

        public void apply​(cz.vutbr.fit.layout.model.AreaTree atree,
                          String operatorName,
                          Map<String,​Object> params)
      • drawToImage

        public void drawToImage​(cz.vutbr.fit.layout.model.Page page,
                                String path)
        Draws the current page to an image file.
        Parameters:
        page - the page to draw
        path - The path to the destination image file.
      • drawToImageWithAreas

        public void drawToImageWithAreas​(cz.vutbr.fit.layout.model.Page page,
                                         cz.vutbr.fit.layout.model.AreaTree areaTree,
                                         String path,
                                         String areaNames)
        Draws the page to an image file and marks selected areas in the image.
        Parameters:
        path - The path to the destination image file.
        areaNames - A substring of the names of areas that should be marked in the image. When set to null, all the areas are marked.
      • flushIO

        public void flushIO()