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(board, id, name, objects)
Creates a new instance of Group.
|
Field Attributes | Field Name and Description |
---|---|
<deprecated> |
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)
Sends an update to all group members.
|
Class Detail
JXG.Group(board, id, name, objects)
Creates a new instance of Group.
- Parameters:
- {JXG.Board} board
- {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.
- {Array} objects
- Array of points to add to this group.
Field Detail
setProperty
- Deprecated:
- Use setAttribute
Method Detail
addGroup(group)
Adds all points in a group to this group.
- Parameters:
- {JXG.Group} 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)
Sends an update to all group members. This method is called from the points' coords object event listeners
and not by the board.
- Parameters:
- {JXG.Point} point
- The point that caused the update.
- {Number} dX
- {Number} dY