public class GridPolicy extends MainPolicy
Modifier and Type | Field and Description |
---|---|
double |
cellHeight |
double |
cellWidth |
String |
gridBackgroundColour0 |
String |
gridBackgroundColour1 |
String |
gridFontFamily |
double |
gridFontSize |
double |
gridLineStrength |
String |
gridStrokeColour |
doc, numberCellGridX, numberCellGridY, previewFile, readTheConfig, setAgentblue, setAgentred, setBlueDepot, setDepot, setFence, setGold, setRedDepot, setSwitch, setTree, svgFile
svgEnding
Constructor and Description |
---|
GridPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
addImage(long id,
int x,
int y,
String image) |
void |
create() |
void |
createPreviewSvg()
for the previewSvg create it and set the head NOTE: run createPreviewSvg
at the end !!!
|
void |
drawAgent(String color,
Integer posx,
Integer posy) |
void |
drawCircle(String id,
int x,
int y,
String color) |
void |
drawCow(long id,
int x,
int y) |
void |
drawCow(long id,
int x,
int y,
String rotation) |
void |
drawCow(long id,
String text,
int x,
int y) |
void |
drawCow(long id,
String text,
int x,
int y,
String rotation) |
void |
drawCow(String id,
int x,
int y) |
void |
drawCow(String id,
int x,
int y,
String rotation) |
void |
drawCow(String id,
String text,
int x,
int y) |
void |
drawCow(String id,
String text,
int x,
int y,
String rotation) |
void |
drawFences(int x,
int y) |
void |
drawGold(long id,
int x,
int y) |
void |
drawGold(long id,
int x,
int y,
String rotation) |
void |
drawGold(long id,
String text,
int x,
int y) |
void |
drawGold(long id,
String text,
int x,
int y,
String rotation) |
void |
drawGold(String id,
int x,
int y) |
void |
drawGold(String id,
int x,
int y,
String rotation) |
void |
drawGold(String id,
String text,
int x,
int y) |
void |
drawGold(String id,
String text,
int x,
int y,
String rotation) |
void |
drawGoldDepot(long id,
int x,
int y) |
void |
drawGoldDepot(long id,
int x,
int y,
String rotation) |
void |
drawGoldDepot(long id,
String text,
int x,
int y) |
void |
drawGoldDepot(long id,
String text,
int x,
int y,
String rotation) |
void |
drawGoldDepot(String id,
int x,
int y) |
void |
drawGoldDepot(String id,
int x,
int y,
String rotation) |
void |
drawGoldDepot(String id,
String text,
int x,
int y) |
void |
drawGoldDepot(String id,
String text,
int x,
int y,
String rotation) |
void |
drawGoldDigger(long id,
long teamId,
int x,
int y) |
void |
drawGoldDigger(long id,
long teamId,
int x,
int y,
String rotation) |
void |
drawGoldDigger(long id,
long teamId,
String text,
int x,
int y) |
void |
drawGoldDigger(long id,
long teamId,
String text,
int x,
int y,
String rotation) |
void |
drawGoldDigger(long id,
String teamId,
int x,
int y) |
void |
drawGoldDigger(long id,
String teamId,
int x,
int y,
String rotation) |
void |
drawGoldDigger(long id,
String teamId,
String text,
int x,
int y) |
void |
drawGoldDigger(long id,
String teamId,
String text,
int x,
int y,
String rotation) |
void |
drawGoldDiggerWithGold(long id,
long teamId,
int x,
int y) |
void |
drawGoldDiggerWithGold(long id,
long teamId,
int x,
int y,
String rotation) |
void |
drawGoldDiggerWithGold(long id,
long teamId,
String text,
int x,
int y) |
void |
drawGoldDiggerWithGold(long id,
long teamId,
String text,
int x,
int y,
String rotation) |
void |
drawGoldDiggerWithGold(long id,
String teamId,
int x,
int y) |
void |
drawGoldDiggerWithGold(long id,
String teamId,
int x,
int y,
String rotation) |
void |
drawGoldDiggerWithGold(long id,
String teamId,
String text,
int x,
int y) |
void |
drawGoldDiggerWithGold(long id,
String teamId,
String text,
int x,
int y,
String rotation) |
void |
drawGrid(long id,
int x,
int y) |
void |
drawGrid(long id,
String text,
int x,
int y) |
void |
drawGrid(String id,
int x,
int y)
this method create a grid
|
void |
drawGrid(String id,
String text,
int x,
int y)
this method create a grid with text
|
void |
drawStable(long id,
int x,
int y,
boolean team) |
void |
drawStable(long id,
int x,
int y,
String rotation,
boolean team) |
void |
drawStable(long id,
String text,
int x,
int y,
boolean team) |
void |
drawStable(long id,
String text,
int x,
int y,
String rotation,
boolean team) |
void |
drawStable(String id,
int x,
int y,
boolean team) |
void |
drawStable(String id,
int x,
int y,
String rotation,
boolean team) |
void |
drawStable(String id,
String text,
int x,
int y,
boolean team) |
void |
drawStable(String id,
String text,
int x,
int y,
String rotation,
boolean team) |
void |
drawSwitch(int x,
int y) |
void |
drawText(long id,
String text,
int x,
int y) |
void |
drawText(long id,
String text,
int x,
int y,
String rotation) |
void |
drawText(String id,
String text,
int x,
int y) |
void |
drawText(String id,
String text,
int x,
int y,
String rotation) |
void |
drawTrees(long id,
int x,
int y) |
void |
drawTrees(long id,
int x,
int y,
String rotation) |
void |
drawTrees(long id,
String text,
int x,
int y) |
void |
drawTrees(long id,
String text,
int x,
int y,
String rotation) |
void |
drawTrees(String id,
int x,
int y) |
void |
drawTrees(String id,
int x,
int y,
String rotation) |
void |
drawTrees(String id,
String text,
int x,
int y) |
void |
drawTrees(String id,
String text,
int x,
int y,
String rotation) |
void |
save() |
void |
setConfigPath(String string) |
void |
setGridStatistic(Map<String,String> myMap)
set the style read from config file
|
createFile, createFolder, createPathFolder, createXML, getConfigFile, getNameOutputFile, getNamePreviewSvg, getOutPut, getPath, getSvgEnding, previewSvg, resetValues, save, setHeadInformationFirstLevel, setHeadInformationSecondLevel, setImageHeight, setImageWidth, setNameOutputFile, setOutPut, setPath
generateXML, openFile, saveXML
public double cellHeight
public double cellWidth
public double gridFontSize
public String gridFontFamily
public String gridStrokeColour
public String gridBackgroundColour0
public String gridBackgroundColour1
public double gridLineStrength
public void createPreviewSvg()
public void create()
public void save()
public void drawGrid(String id, int x, int y)
id
- is the id of the grid (String or Long)x
- is the horizontal number of cells (if x=5 then there are cells
0 ... 4)y
- is the vertical number of cells (if y=5 then there are cells 0
... 4)public void drawGrid(long id, int x, int y)
public void drawGrid(String id, String text, int x, int y)
id
- is the id of the grid (String or Long)text
- text under the gridx
- is the horizontal number of cells (if x=5 then there are cells
0 ... 4)y
- is the vertical number of cells (if y=5 then there are cells 0
... 4)public void drawGrid(long id, String text, int x, int y)
public void setGridStatistic(Map<String,String> myMap)
gridStyle
- MainGrid objectpublic void drawGoldDigger(long id, long teamId, int x, int y, String rotation)
public void drawGoldDigger(long id, long teamId, int x, int y)
public void drawGoldDigger(long id, long teamId, String text, int x, int y, String rotation)
public void drawGoldDigger(long id, long teamId, String text, int x, int y)
public void drawGoldDigger(long id, String teamId, int x, int y)
public void drawGoldDigger(long id, String teamId, String text, int x, int y, String rotation)
public void drawGoldDiggerWithGold(long id, long teamId, int x, int y, String rotation)
public void drawGoldDiggerWithGold(long id, long teamId, int x, int y)
public void drawGoldDiggerWithGold(long id, long teamId, String text, int x, int y, String rotation)
public void drawGoldDiggerWithGold(long id, long teamId, String text, int x, int y)
public void drawGoldDiggerWithGold(long id, String teamId, int x, int y, String rotation)
public void drawGoldDiggerWithGold(long id, String teamId, int x, int y)
public void drawGoldDiggerWithGold(long id, String teamId, String text, int x, int y, String rotation)
public void drawGoldDiggerWithGold(long id, String teamId, String text, int x, int y)
public void drawGoldDepot(long id, int x, int y, String rotation)
public void drawGoldDepot(String id, int x, int y)
public void drawGoldDepot(long id, int x, int y)
public void drawGoldDepot(long id, String text, int x, int y)
public void drawGold(long id, int x, int y, String rotation)
public void drawGold(String id, int x, int y)
public void drawGold(long id, int x, int y)
public void drawGold(long id, String text, int x, int y)
public void drawStable(long id, int x, int y, String rotation, boolean team)
public void drawStable(String id, int x, int y, boolean team)
public void drawStable(long id, int x, int y, boolean team)
public void drawStable(String id, String text, int x, int y, String rotation, boolean team)
public void drawStable(long id, String text, int x, int y, String rotation, boolean team)
public void drawStable(long id, String text, int x, int y, boolean team)
public void drawTrees(long id, int x, int y, String rotation)
public void drawTrees(String id, int x, int y)
public void drawTrees(long id, int x, int y)
public void drawTrees(long id, String text, int x, int y)
public void drawCow(long id, int x, int y, String rotation)
public void drawCow(String id, int x, int y)
public void drawCow(long id, int x, int y)
public void drawCow(long id, String text, int x, int y)
public void drawFences(int x, int y)
public void drawSwitch(int x, int y)
public void drawText(long id, String text, int x, int y)
public void addImage(long id, int x, int y, String image)
public void setConfigPath(String string)
setConfigPath
in class MainPolicy
Copyright © 2013. All Rights Reserved.