Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public class GraphGroup

  1. Object
  2. GraphGroup
A labeled box drawn around the nodes whose group id names it, such as the services of one subsystem. A collapsed group is drawn as a single node and the edges of its members end on it.

Constructors

public GraphGroup(String id, String label)A group.

Methods

public String getId()The id members name in GraphNode.setGroupId.
public String getLabel()The title painted on the group.
public void setLabel(String label)Sets the title.
public boolean isCollapsed()True when the group is drawn as one node.
public void setCollapsed(boolean collapsed)Collapses or expands the group.
public String getStyleKey()A key a renderer may map to a colour, or null.
public void setStyleKey(String styleKey)Sets the style key.

Inherited methods

Constructor details

GraphGroup

public GraphGroup(String id, String label)
A group.

Method details

getId

public String getId()
The id members name in GraphNode.setGroupId.

getLabel

public String getLabel()
The title painted on the group.

setLabel

public void setLabel(String label)
Sets the title.

isCollapsed

public boolean isCollapsed()
True when the group is drawn as one node.

setCollapsed

public void setCollapsed(boolean collapsed)
Collapses or expands the group. A model shown by a component is told through GraphModel.setCollapsed.

getStyleKey

public String getStyleKey()
A key a renderer may map to a colour, or null.

setStyleKey

public void setStyleKey(String styleKey)
Sets the style key.