public class ContextMapGenerator extends AbstractContextMapGenerator
contextMappingModel, resourceSet
Constructor and Description |
---|
ContextMapGenerator() |
Modifier and Type | Method and 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() |
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.
|
doGenerate
protected void generateFromContextMap(ContextMap cmlContextMap, org.eclipse.xtext.generator.IFileSystemAccess2 fsa, org.eclipse.emf.common.util.URI inputFileURI)
generateFromContextMap
in class AbstractContextMapGenerator
public void setContextMapFormats(ContextMapFormat... formats)
formats
- the formats which shall be generatedpublic void setLabelSpacingFactor(int labelSpacingFactor)
labelSpacingFactor
- the factor to be usedpublic void setWidth(int width)
public void setHeight(int height)
protected org.contextmapper.contextmap.generator.ContextMapGenerator createContextMapGenerator()
public boolean isGraphvizInstalled()