|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.visualization.svg.SvgXmlFile
massim.visualization.MainPolicy
public class MainPolicy
Field Summary | |
---|---|
org.w3c.dom.Document |
doc
|
int |
numberCellGridX
|
int |
numberCellGridY
|
static java.lang.String |
previewFile
|
boolean |
readTheConfig
|
boolean |
setAgentblue
|
boolean |
setAgentred
|
boolean |
setBlueDepot
|
boolean |
setDepot
|
boolean |
setFence
|
boolean |
setGold
|
boolean |
setRedDepot
|
boolean |
setSwitch
|
boolean |
setTree
|
static java.lang.String |
svgFile
|
Fields inherited from class massim.visualization.svg.SvgXmlFile |
---|
svgEnding |
Constructor Summary | |
---|---|
MainPolicy()
|
Method Summary | |
---|---|
void |
createFile(java.lang.String part1,
java.lang.String part2)
|
void |
createFolder(java.lang.String name)
|
void |
createPathFolder()
this method create the output folder if not exist. |
org.w3c.dom.Document |
createXML()
) This method create a new svg (xml) file |
java.lang.String |
getConfigFile()
|
java.lang.String |
getNameOutputFile()
|
java.lang.String |
getNamePreviewSvg()
|
java.lang.String |
getOutPut()
|
java.lang.String |
getPath()
|
java.lang.String |
getSvgEnding()
|
void |
previewSvg()
create the preview / controll svg to play the simulation |
void |
resetValues()
|
void |
save(org.w3c.dom.Document doc,
double internalHeight,
double internalWidth)
method write the SVG file to disk. |
void |
setConfigPath(java.lang.String string)
|
void |
setHeadInformationFirstLevel(java.lang.String headInfo)
set the first Informationline over the grid |
void |
setHeadInformationSecondLevel(java.lang.String headInfo)
set the second Informationline over the grid |
void |
setImageHeight(java.lang.String newSvgImageHeight)
|
void |
setImageWidth(java.lang.String newSvgImageWidth)
|
void |
setNameOutputFile(java.lang.String newNameOutputFile)
|
void |
setOutPut(java.lang.String newPath)
|
void |
setPath(java.lang.String newPath)
|
Methods inherited from class massim.visualization.svg.SvgXmlFile |
---|
generateXML, openFile, saveXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String svgFile
public static java.lang.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 org.w3c.dom.Document doc
public boolean setAgentblue
public boolean setAgentred
public boolean setFence
public boolean setSwitch
Constructor Detail |
---|
public MainPolicy()
Method Detail |
---|
public java.lang.String getSvgEnding()
public java.lang.String getConfigFile()
public java.lang.String getNameOutputFile()
public java.lang.String getNamePreviewSvg()
public java.lang.String getPath()
public void setOutPut(java.lang.String newPath)
public java.lang.String getOutPut()
public void setPath(java.lang.String newPath)
public void setNameOutputFile(java.lang.String newNameOutputFile)
public void setImageHeight(java.lang.String newSvgImageHeight)
public void setImageWidth(java.lang.String newSvgImageWidth)
public void setHeadInformationFirstLevel(java.lang.String headInfo)
headInfo
- the String with the textpublic void setHeadInformationSecondLevel(java.lang.String headInfo)
headInfo
- the String with the textpublic void setConfigPath(java.lang.String string)
public void resetValues()
public void createPathFolder()
public void createFolder(java.lang.String name)
public void createFile(java.lang.String part1, java.lang.String part2) throws java.io.IOException
java.io.IOException
public org.w3c.dom.Document createXML()
public void previewSvg()
public void save(org.w3c.dom.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 scale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |