Class GraphGroup

java.lang.Object
com.codename1.graph.GraphGroup

public class GraphGroup extends Object
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.
  • 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.