Package org.contextmapper.dsl.generator
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
-
-
Field Summary
-
Fields inherited from class org.contextmapper.dsl.generator.AbstractContextMapGenerator
contextMappingModel, resourceSet
-
-
Constructor Summary
Constructors Constructor Description ContextMapGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.contextmapper.contextmap.generator.ContextMapGenerator
createContextMapGenerator()
protected void
generateFromContextMap(ContextMap cmlContextMap, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI)
boolean
isGraphvizInstalled()
boolean
printAdditionalLabels()
void
printAdditionalLabels(boolean printAdditionalLabels)
Defines whether additional labels for the relationship name and implementation technology are printed or not.void
setContextMapFormats(ContextMapFormat... formats)
Changes the formats which will be generated when calling the generator.void
setHeight(int height)
Changes/fixes the height of the generated image.void
setLabelSpacingFactor(int labelSpacingFactor)
Changes the spacing used to avoid label overlappings (factor between 1 and 20).void
setWidth(int width)
Changes/fixes the width of the generated image.-
Methods inherited from class org.contextmapper.dsl.generator.AbstractContextMapGenerator
doGenerate
-
-
-
-
Method Detail
-
generateFromContextMap
protected void generateFromContextMap(ContextMap cmlContextMap, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI)
- Specified by:
generateFromContextMap
in classAbstractContextMapGenerator
-
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()
-
createContextMapGenerator
protected org.contextmapper.contextmap.generator.ContextMapGenerator createContextMapGenerator()
-
isGraphvizInstalled
public boolean isGraphvizInstalled()
-
-