public class SyntaxDiagramTab extends GrammarWindowTab implements GContextProvider
| Modifier and Type | Field and Description |
|---|---|
protected GContext |
context |
protected VisualDrawing |
drawing |
protected boolean |
enable |
protected GPanel |
panel |
protected Skin |
skin |
window| Constructor and Description |
|---|
SyntaxDiagramTab(GrammarWindow editor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDrawingProcess() |
boolean |
canExportToBitmap() |
boolean |
canExportToEPS() |
boolean |
canSaveImage() |
void |
clearCacheGraphs() |
void |
close() |
Color |
contextGetColorForLabel(String label) |
void |
createGraphsForRule(ElementRule rule) |
Console |
getConsole() |
Container |
getContainer() |
GGraphAbstract |
getCurrentGraph() |
ANTLRGrammarEngine |
getEngineGrammar() |
BufferedImage |
getImage() |
Component |
getTabComponent() |
String |
getTabName() |
boolean |
isEnabled() |
void |
serializeSyntaxDiagram() |
void |
setEnable(boolean flag) |
void |
setPlaceholder(String placeholder) |
void |
setRule(ElementRule rule,
boolean immediate) |
void |
setText(String text,
String filename) |
void |
toggleNFAOptimization() |
boolean |
update() |
canExportToDOT, editorActivated, getDOTString, getExportableGViewprotected VisualDrawing drawing
protected GContext context
protected Skin skin
protected GPanel panel
protected boolean enable
public SyntaxDiagramTab(GrammarWindow editor)
public Console getConsole()
public void close()
public void setEnable(boolean flag)
public boolean isEnabled()
public void toggleNFAOptimization()
public Color contextGetColorForLabel(String label)
contextGetColorForLabel in interface GContextProviderpublic void setRule(ElementRule rule, boolean immediate)
public void setPlaceholder(String placeholder)
public void cancelDrawingProcess()
public void clearCacheGraphs()
public void createGraphsForRule(ElementRule rule) throws Exception
Exceptionpublic boolean update()
public ANTLRGrammarEngine getEngineGrammar()
public Container getContainer()
public GGraphAbstract getCurrentGraph()
public boolean canSaveImage()
public BufferedImage getImage()
public boolean canExportToBitmap()
canExportToBitmap in class GrammarWindowTabpublic boolean canExportToEPS()
canExportToEPS in class GrammarWindowTabpublic String getTabName()
getTabName in class GrammarWindowTabpublic Component getTabComponent()
getTabComponent in class GrammarWindowTabpublic void serializeSyntaxDiagram()
Copyright © 2013. All rights reserved.