public class MainPolicy extends SvgXmlFile
Modifier and Type | Field and Description |
---|---|
Document |
doc |
int |
numberCellGridX |
int |
numberCellGridY |
static String |
previewFile |
boolean |
readTheConfig |
boolean |
setAgentblue |
boolean |
setAgentred |
boolean |
setBlueDepot |
boolean |
setDepot |
boolean |
setFence |
boolean |
setGold |
boolean |
setRedDepot |
boolean |
setSwitch |
boolean |
setTree |
static String |
svgFile |
svgEnding
Constructor and Description |
---|
MainPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
createFile(String part1,
String part2) |
void |
createFolder(String name) |
void |
createPathFolder()
this method create the output folder if not exist.
|
Document |
createXML()
) This method create a new svg (xml) file
|
String |
getConfigFile() |
String |
getNameOutputFile() |
String |
getNamePreviewSvg() |
String |
getOutPut() |
String |
getPath() |
String |
getSvgEnding() |
void |
previewSvg()
create the preview / controll svg to play the simulation
|
void |
resetValues() |
void |
save(Document doc,
double internalHeight,
double internalWidth)
method write the SVG file to disk.
|
void |
setConfigPath(String string) |
void |
setHeadInformationFirstLevel(String headInfo)
set the first Informationline over the grid
|
void |
setHeadInformationSecondLevel(String headInfo)
set the second Informationline over the grid
|
void |
setImageHeight(String newSvgImageHeight) |
void |
setImageWidth(String newSvgImageWidth) |
void |
setNameOutputFile(String newNameOutputFile) |
void |
setOutPut(String newPath) |
void |
setPath(String newPath) |
generateXML, openFile, saveXML
public static String svgFile
public static String previewFile
public boolean setTree
public boolean setDepot
public boolean setGold
public boolean setRedDepot
public boolean setBlueDepot
public boolean readTheConfig
public int numberCellGridX
public int numberCellGridY
public Document doc
public boolean setAgentblue
public boolean setAgentred
public boolean setFence
public boolean setSwitch
public String getSvgEnding()
public String getConfigFile()
public String getNameOutputFile()
public String getNamePreviewSvg()
public String getPath()
public void setOutPut(String newPath)
public String getOutPut()
public void setPath(String newPath)
public void setNameOutputFile(String newNameOutputFile)
public void setImageHeight(String newSvgImageHeight)
public void setImageWidth(String newSvgImageWidth)
public void setHeadInformationFirstLevel(String headInfo)
headInfo
- the String with the textpublic void setHeadInformationSecondLevel(String headInfo)
headInfo
- the String with the textpublic void setConfigPath(String string)
public void resetValues()
public void createPathFolder()
public void createFolder(String name)
public void createFile(String part1, String part2) throws IOException
IOException
public Document createXML()
public void previewSvg()
public void save(Document doc, double internalHeight, double internalWidth)
doc
- the document which will be write to diskinternalHeight
- the height of the hole SVG need to scaleinternalWidth
- the width of the hole SVG need to scaleCopyright © 2013. All Rights Reserved.