de.grogra.mtg
public class MTGTranslator extends java.lang.Object
| Constructor and Description |
|---|
MTGTranslator(java.io.Reader reader,
java.lang.String sysId)
MTGTranslator constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorMessage() |
MTGNode |
getFirstNode() |
int |
getLineCounter() |
MTGNode |
getMTGRootNode()
Allows other classes to obtain the root node of the graph generated from translating MTG data file.
|
RGGRoot |
getRootNode() |
Sphere |
getSphere() |
int |
translateMTGFile()
Translates the MTG file into a graph.
|
int |
translateMTGFileBody() |
int |
translateMTGFileHeader() |
public MTGTranslator(java.io.Reader reader,
java.lang.String sysId)
reader - Reader instance from the MTGFilter.
File resources are loaded into FilterSource objects in GroIMP.
The MTGFilter is constructed with a member FilterSource variable.public java.lang.String getErrorMessage()
public MTGNode getFirstNode()
public int getLineCounter()
public MTGNode getMTGRootNode()
public RGGRoot getRootNode()
public Sphere getSphere()
public int translateMTGFile()
MTGError.MTGPlantFrameExceptionpublic int translateMTGFileBody()
public int translateMTGFileHeader()