|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bsd.x2svg.Runner
public class Runner
Field Summary | |
---|---|
private static boolean |
debug
|
private static java.lang.String |
DOTS
|
private RuntimeProperties |
rProps
|
private static org.apache.batik.svggen.SVGGraphics2D |
svgGenerator
|
Constructor Summary | |
---|---|
Runner()
|
Method Summary | |
---|---|
private void |
computeTreeSize(Container rootCont)
Fill in the sizes of each element |
private int |
drawContainer(Container rootCont,
int startX,
int startY)
Draw the passed container into a SVG Canvas by invoking the containers paint() method |
private void |
printContainer(Container rootCont,
java.lang.String indent)
Print the passed container with its children to stdout. |
void |
run(RuntimeParameters params)
Main code block, runs the whole show. |
private void |
setupSvg()
Set up the SVG routines |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String DOTS
private static org.apache.batik.svggen.SVGGraphics2D svgGenerator
private static boolean debug
private RuntimeProperties rProps
Constructor Detail |
---|
public Runner()
Method Detail |
---|
public void run(RuntimeParameters params) throws java.lang.Exception
params
- RuntimeParameters that have e.g. been on the command line.
java.lang.Exception
- if anything goes wrong internallyprivate void setupSvg()
private void printContainer(Container rootCont, java.lang.String indent)
rootCont
- The root element of the Container treeindent
- how much spaces should this be indended?private int drawContainer(Container rootCont, int startX, int startY)
rootCont
- The root of the container tree to showstartX
- The top left corner of the drawing areastartY
- The top left corner of the drawing area
private void computeTreeSize(Container rootCont)
rootCont
- Container in the tree to start with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |