Package eu.bandm.tools.graficUtils
Class ImportGraphSvg
java.lang.Object
eu.bandm.tools.graficUtils.ImportGraphSvg
Creates a two-diemnsional clickable visualisation of a rooted directed graph.
Usage: create a fresh instance, call once "makeGraph", and then request results.
Names of nodes are arbitrary.
HRefs of nodes must not contain a ":" colon.
Lines have an ID which combines both nodes, thereby are switchable.
Requires (currently) "renderedDtd.js" (or sim.) !
svg link GEHT NICHT, stattdessen xhtml-[map] danebenlegen:
(" <a xlink:href=\"%s\">\n" +" <text x=\"%dpx\" y=\"%dpx\" id=\"%s\" title=\"%s\" " +"onmouseover=\"doMoveIn(this.id)\">%s$lt;/text>\n" +" </a>\n", "#"+shortname2textanchor(s), // FIXME geht nicht !!! script-loesung ?? string2x.get(s), string2y.get(s), shortname2graphanchor(s), shortname2usertext(s), s);
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
protected int
protected int
protected int
protected int
protected int
protected String
(package private) static final String
(package private) static final String
protected int
protected int
protected int
protected int
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getWidth()
void
makeGraph
(String title, String path_to_js, String separator, Multimap<String, String> usageRelation, Map<String, String> outgoingHref, Map<String, String> incomingHref, Map<String, String> tooltip) Generate "linefeed" documents, not "cr+lf" or "cr"void
makeGraph
(String title, String path_to_js, String separator, Multimap<String, String> usageRelation, Map<String, String> outgoingHref, Map<String, String> incomingHref, Map<String, String> tooltip, int width, int height, Map<String, Integer> string2x, Map<String, Integer> string2y)
-
Field Details
-
min_x
protected int min_x -
limit_x
protected int limit_x -
modulo_shift_x
protected int modulo_shift_x -
modulo
protected int modulo -
factor_x
protected int factor_x -
x_gap
protected int x_gap -
x_margin_right
protected int x_margin_right -
min_y
protected int min_y -
y_step_inner
protected int y_step_inner -
y_step_outer
protected int y_step_outer -
y_margin_bottom
protected int y_margin_bottom -
CHAR_HEIGHT
protected int CHAR_HEIGHT -
width
protected int width -
height
protected int height -
result_svg
-
style_invisibleLines
- See Also:
-
style_by_external_css
- See Also:
-
-
Constructor Details
-
ImportGraphSvg
public ImportGraphSvg()
-
-
Method Details
-
getResult_svg
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
makeGraph
public void makeGraph(String title, String path_to_js, String separator, Multimap<String, String> usageRelation, Map<String, String> outgoingHref, Map<String, String> incomingHref, Map<String, String> tooltip) Generate "linefeed" documents, not "cr+lf" or "cr" -
makeGraph
-