|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmain.GenerateMap
main.GeneratePHP
public class GeneratePHP
The GeneratePHP class provides methods for creating a PHP
script that will generate and display the map.
| Field Summary | |
|---|---|
private java.lang.String |
phpString
|
| Fields inherited from class main.GenerateMap |
|---|
description, edgeParameters, imageParameters, map, nodeParameters, ORIGINAL_NODE_SIZE_FACTOR, scenarioConfig |
| Constructor Summary | |
|---|---|
GeneratePHP()
Constructs a new GenerateDescription. |
|
| Method Summary | |
|---|---|
protected void |
clearData()
removes the previously generated data ie all nodes of the mapImage |
protected void |
drawEdge(DrawableEdge drawableEdge)
Constructs PHP code to generate the given edge on a map. |
protected void |
drawLabel(DrawableLabel drawableLabel)
Constructs PHP code to generate the given label on a map. |
protected void |
drawNode(DrawableNode drawableNode)
Constructs PHP code to generate the given node on a map. |
java.lang.Object |
getMap()
Finishes creating the PHP script and returns it. |
protected void |
initialize()
Initializes the map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
private java.lang.String phpString
| Constructor Detail |
|---|
public GeneratePHP()
GenerateDescription.
| Method Detail |
|---|
protected void initialize()
throws java.io.FileNotFoundException,
java.io.IOException,
java.text.ParseException
initialize in class GenerateMapjava.io.FileNotFoundException - if a file is not found
java.io.IOException - if an I/O error occurs
java.text.ParseException - if a parse error occursprotected void clearData()
clearData in class GenerateMapprotected void drawNode(DrawableNode drawableNode)
drawNode in class GenerateMapdrawableNode - a DrawableNodeprotected void drawLabel(DrawableLabel drawableLabel)
drawLabel in class GenerateMapdrawableLabel - a DrawableLabelprotected void drawEdge(DrawableEdge drawableEdge)
drawEdge in class GenerateMapdrawableEdge - a DrawableEdgepublic java.lang.Object getMap()
getMap in class GenerateMapObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||