public class ContextMapGenerator extends AbstractContextMapGenerator
contextMappingModel
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 |
setContextMapFormat(ContextMapFormat format)
Changes the format 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 setContextMapFormat(ContextMapFormat format)
format
- the requested formatpublic 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()