Class 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(group)
Adds all points in a group to this group.
|
|
addPoint(object)
Adds an Point to this group.
|
|
addPoints(objects)
Adds multiple points to this group.
|
|
removePoint(point)
Removes a point from the group.
|
|
ungroup()
Releases the group added to the points in this group, but only if this group is the last group.
|
|
update(point, dX, dY, dZ)
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(group)
Adds all points in a group to this group.
- Parameters:
- {JXG.Point} group
- The group added to this group.
addPoint(object)
Adds an Point to this group.
- Parameters:
- {JXG.Point} object
- The point added to the group.
addPoints(objects)
Adds multiple points to this group.
- Parameters:
- {Array} objects
- An array of points to add to the group.
removePoint(point)
Removes a point from the group.
- Parameters:
- {JXG.Point} point
ungroup()
Releases the group added to the points in this group, but only if this group is the last group.
update(point, dX, dY, dZ)
Sends an update to all group members.
- Parameters:
- {JXG.Point} point
- The point that caused the update.
- dX
- dY
- dZ