Class GuiXMLReader
java.lang.Object
common.xml.GuiXMLReader
- All Implemented Interfaces:
GuiXMLConstants
Title: Gui XML Reader
Description: Reads JModel GUI specific information from an XML file. This class provides methods for model load.
- Author:
- Bertoli Marco Date: 27-lug-2005 Time: 11.04.13
-
Field Summary
Fields inherited from interface GuiXMLConstants
XML_A_CLASS_COLOR, XML_A_CLASS_NAME, XML_A_CONNECTION_SOURCE, XML_A_CONNECTION_TARGET, XML_A_FIELD_NAME, XML_A_FIELD_VALUE, XML_A_PARAMETRIC_CLASSPATH, XML_A_PARAMETRIC_ENABLED, XML_A_POINT_X, XML_A_POINT_Y, XML_A_POSITION_ANGLE, XML_A_POSITION_ROTATE, XML_A_POSITION_X, XML_A_POSITION_Y, XML_A_SOURCE_X, XML_A_SOURCE_Y, XML_A_STATION_NAME, XML_A_TARGET_X, XML_A_TARGET_Y, XML_ARCHIVE_A_NAME, XML_ARCHIVE_A_TIMESTAMP, XML_ARCHIVE_DOCUMENT_ROOT, XML_ARCHIVE_DOCUMENT_XSD, XML_DOCUMENT_ROOT, XML_DOCUMENT_XSD, XML_E_ARC, XML_E_CLASS, XML_E_CONNECTION_SHAPE, XML_E_FIELD, XML_E_PARAMETRIC, XML_E_POINT, XML_E_POSITION, XML_E_SOURCE, XML_E_STATION, XML_E_TARGET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidparseXML(Document xml, CommonModel model) Parses given Gui XML Document to reconstruct all gui related stuff.static voidparseXML(Element root, CommonModel model) Parses given Gui XML Document to reconstruct all gui related stuff.protected static voidsetConnectionShapes(Element root, JSimGraphModel model) Sets gui specific connection shape parametersprotected static voidsetParametricAnalysis(Element root, CommonModel model) Sets gui specific parametric analysis parametersprotected static voidsetStations(Element root, JSimGraphModel model) Sets gui specific station parametersprotected static voidsetUserClasses(Element root, JSimGraphModel model) Sets gui specific user class parameters
-
Constructor Details
-
GuiXMLReader
public GuiXMLReader()
-
-
Method Details
-
parseXML
Parses given Gui XML Document to reconstruct all gui related stuff. This method is designed to be called ONLY when all simulation's data has already been put into data structure (as will never create new user classes or stations)- Parameters:
xml- document to be parsedmodel- data model to be elaborated
-
parseXML
Parses given Gui XML Document to reconstruct all gui related stuff. This method is designed to be called ONLY when all simulation's data has already been put into data structure (as will never create new user classes or stations)- Parameters:
root- root element of Document to be parsedmodel- data model to be elaborated
-
setConnectionShapes
Sets gui specific connection shape parameters- Parameters:
root- GuiXML document rootmodel- data structure where properties have to be set
-
setUserClasses
Sets gui specific user class parameters- Parameters:
root- GuiXML document rootmodel- data structure where properties have to be set
-
setStations
Sets gui specific station parameters- Parameters:
root- GuiXML document rootmodel- data structure where properties have to be set
-
setParametricAnalysis
Sets gui specific parametric analysis parameters- Parameters:
root- GuiXML document rootmodel- data structure where properties have to be set
-