public class SDGenerator extends Object implements GContextProvider
| Modifier and Type | Field and Description |
|---|---|
GContext |
context |
GrammarEngine |
engine |
| Constructor and Description |
|---|
SDGenerator(GrammarEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
Color |
contextGetColorForLabel(String label) |
void |
renderRuleToBitmapFile(String ruleName,
String imageFormat,
String file) |
void |
renderRuleToEPSFile(String ruleName,
String file) |
void |
serializeRule(String name,
SEncoder encoder) |
public GrammarEngine engine
public GContext context
public SDGenerator(GrammarEngine engine)
public void serializeRule(String name, SEncoder encoder) throws Exception
Exceptionpublic void renderRuleToEPSFile(String ruleName, String file) throws Exception
Exceptionpublic void renderRuleToBitmapFile(String ruleName, String imageFormat, String file) throws Exception
Exceptionpublic Color contextGetColorForLabel(String label)
contextGetColorForLabel in interface GContextProviderCopyright © 2013. All rights reserved.