Class ContextMapGenerator

java.lang.Object
org.eclipse.xtext.generator.AbstractGenerator
org.contextmapper.dsl.generator.AbstractContextMapGenerator
org.contextmapper.dsl.generator.ContextMapGenerator
All Implemented Interfaces:
org.eclipse.xtext.generator.IGenerator2

public class ContextMapGenerator extends AbstractContextMapGenerator
  • Constructor Details

    • ContextMapGenerator

      public ContextMapGenerator()
  • Method Details

    • generateFromContextMap

      protected void generateFromContextMap(ContextMap cmlContextMap, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI)
      Specified by:
      generateFromContextMap in class AbstractContextMapGenerator
    • setContextMapFormats

      public void setContextMapFormats(ContextMapFormat... formats)
      Changes the formats which will be generated when calling the generator.
      Parameters:
      formats - the formats which shall be generated
    • setLabelSpacingFactor

      public void setLabelSpacingFactor(int labelSpacingFactor)
      Changes the spacing used to avoid label overlappings (factor between 1 and 20).
      Parameters:
      labelSpacingFactor - the factor to be used
    • setWidth

      public void setWidth(int width)
      Changes/fixes the width of the generated image. If the width is fixed, the height will be adjusted dynamically!
    • setHeight

      public void setHeight(int height)
      Changes/fixes the height of the generated image. If the height is fixed, the width will be adjusted dynamically!
    • printAdditionalLabels

      public void printAdditionalLabels(boolean printAdditionalLabels)
      Defines whether additional labels for the relationship name and implementation technology are printed or not.
    • printAdditionalLabels

      public boolean printAdditionalLabels()
    • clusterTeams

      public void clusterTeams(boolean clusterTeams)
      Defines whether team BCs and generic BCs in the generated Context Map ar clustered or not. Only relevant for team maps.
      Parameters:
      clusterTeams - boolean that indicates whether team BCs and generic BCs shall be clustered
    • clusterTeams

      public boolean clusterTeams()
      Indicates whether team BCs and generic BCs are clustered or not.
      Returns:
      true, if team BCs and generic BCs are clustered, false otherwise
    • createContextMapGenerator

      protected org.contextmapper.contextmap.generator.ContextMapGenerator createContextMapGenerator()
    • isGraphvizInstalled

      public boolean isGraphvizInstalled()