Default implementation of RatingModel.
More...
Default implementation of RatingModel.
- Version
- 1.23
◆ getRating()
| Integer Dragengine.Gui.DefaultRatingModel.getRating |
( |
| ) |
|
◆ getTypeCount()
| int Dragengine.Gui.DefaultRatingModel.getTypeCount |
( |
| ) |
|
◆ new() [1/3]
Create default rating model.
- Parameters
-
| typeCount | Count of rating types. |
- Exceptions
-
| EInvalidParam | typeCount is less than 1 |
References new().
Referenced by new().
◆ new() [2/3]
| DefaultRatingModel Dragengine.Gui.DefaultRatingModel.new |
( |
int | typeCount, |
|
|
Integer | rating ) |
Create default rating model with initial rating.
- Parameters
-
| typeCount | Count of rating types. |
| rating | Rating in the range from 0 to getTypeCount() - 1 or null. |
- Exceptions
-
| EInvalidParam | typeCount is less than 1 |
◆ new() [3/3]
| DefaultRatingModel Dragengine.Gui.DefaultRatingModel.new |
( |
int | typeCount, |
|
|
Integer | rating, |
|
|
Dictionary | countsPerType ) |
Create default rating model with initial rating and counts per type.
- Parameters
-
| typeCount | Count of rating types. |
| rating | Rating in the range from 0 to getTypeCount() - 1 or null. |
| countsPerType | Dictionary with rating type as key (int) and count for this rating type as value (float). For rating types not present in the dictionary a count of 0 will be used. |
- Exceptions
-
| EInvalidParam | typeCount is less than 1 |
◆ setCountsPerType()
| void Dragengine.Gui.DefaultRatingModel.setCountsPerType |
( |
Dictionary | countsPerType | ) |
|
Set breakdown of submitted ratings per rating type.
- Parameters
-
| countsPerType | Dictionary with rating type as key (int) and count for this rating type as value (float). For rating types not present in the dictionary a count of 0 will be used. |
Implements Dragengine.Gui.RatingModel.
◆ setRating()
| void Dragengine.Gui.DefaultRatingModel.setRating |
( |
Integer | rating | ) |
|
◆ pCountsPerType
| Dictionary Dragengine.Gui.DefaultRatingModel.pCountsPerType |
◆ pListeners
| Array Dragengine.Gui.DefaultRatingModel.pListeners |
◆ pRating
| Integer Dragengine.Gui.DefaultRatingModel.pRating |
◆ pTypeCount
| int Dragengine.Gui.DefaultRatingModel.pTypeCount |
The documentation for this class was generated from the following file: