public class PajekContext extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
directed |
(package private) FileSourcePajek |
pajek |
(package private) String |
sourceId |
protected String |
weightAttributeName |
Constructor and Description |
---|
PajekContext(FileSourcePajek pajek) |
Modifier and Type | Method and Description |
---|---|
protected String |
addEdge(String src,
String trg) |
protected void |
addEdgeGraphics(String id,
EdgeGraphics graphics) |
protected void |
addEdges(EdgeMatrix mat) |
protected void |
addEdgeWeight(String id,
Token nb) |
protected void |
addGraphAttribute(String attr,
String value) |
protected void |
addNodeGraphics(String id,
NodeGraphics graphics) |
protected void |
addNodeLabel(String nb,
String label) |
protected void |
addNodePosition(String id,
Token x,
Token y,
Token z) |
protected int |
addNodes(Token nb) |
protected static int |
getInt(Token nb) |
protected static double |
getReal(Token nb) |
protected void |
setDirected(boolean on) |
static String |
toColorValue(Token R,
Token G,
Token B) |
FileSourcePajek pajek
protected boolean directed
protected String weightAttributeName
public PajekContext(FileSourcePajek pajek)
protected void setDirected(boolean on)
protected int addNodes(Token nb) throws ParseException
ParseException
protected void addGraphAttribute(String attr, String value)
protected void addNodeLabel(String nb, String label)
protected void addNodeGraphics(String id, NodeGraphics graphics)
protected void addNodePosition(String id, Token x, Token y, Token z) throws ParseException
ParseException
protected void addEdges(EdgeMatrix mat)
protected void addEdgeWeight(String id, Token nb) throws ParseException
ParseException
protected void addEdgeGraphics(String id, EdgeGraphics graphics)
protected static int getInt(Token nb) throws ParseException
ParseException
protected static double getReal(Token nb) throws ParseException
ParseException
public static String toColorValue(Token R, Token G, Token B) throws ParseException
ParseException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses