Styles of nodes

Hypergraph is able to set various graphical attributes of a node like color, font and size of the node.

Colors

The color can be set in the GraphXML file for each node seperately, for a group of nodes or the whole graph. Additionaly, the default can also be set in a property file in case no color is specified in the GraphXML file.

Fonts

The font can be set in the property file for all text in the applet; the corresponding property name is hypergraph.hyperbolic.text.fontName. It can be any font that is available in Java, classical font names like Arial can be used. Be careful to take common fonts so that you can be sure they are known to any browser / java installation. Setting different fonts for different nodes is not supported.

Example :

The following line in your property file will cause the applet to use the font Arial for all text.

hypergraph.hyperbolic.text.fontName = Arial