Class JXG.Group
↳ JXG.Group
In this class all group management is done.
Defined in: Group.js.
Constructor Attributes | Constructor Name and Description |
---|---|
JXG.Group(id, name, name)
Creates a new instance of Group.
|
Method Attributes | Method Name and Description |
---|---|
addGroup(object)
Adds an Point to this group.
|
|
addPoint(object)
Adds an Point to this group.
|
|
addPoints(objects)
Adds multiple points to this group.
|
|
ungroup()
Releases the group added to the points in this group, but only if this group is the last group.
|
|
update(point)
Sends an update to all group members.
|
Class Detail
JXG.Group(id, name, name)
Creates a new instance of Group.
- Parameters:
- {String} id
- Unique identifier for this object. If null or an empty string is given, an unique id will be generated by Board
- {String} name
- Not necessarily unique name, displayed on the board. If null or an empty string is given, an unique name will be generated.
- name
Method Detail
addGroup(object)
Adds an Point to this group.
- Parameters:
- {JXG.Point} object
- The object added to the group.
addPoint(object)
Adds an Point to this group.
- Parameters:
- {JXG.Point} object
- The object added to the group.
addPoints(objects)
Adds multiple points to this group.
- Parameters:
- {Array} objects
- An array of points to add to the group.
ungroup()
Releases the group added to the points in this group, but only if this group is the last group.
update(point)
Sends an update to all group members.
- Parameters:
- {JXG.Point} point
- The point that caused the update.