Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow deterministic values #6

Closed
alexeyvasilyev opened this issue Jul 18, 2016 · 5 comments
Closed

Allow deterministic values #6

alexeyvasilyev opened this issue Jul 18, 2016 · 5 comments

Comments

@alexeyvasilyev
Copy link

alexeyvasilyev commented Jul 18, 2016

At the moment all methods return float values.

I want to have only a couple values (5) in the wheel. To do that two additional methods (beside setMin/setMax) should be added.

Add a method setIntegerValues(boolean) which will force view to return only int values.
Add a method setMarkInterval(int) to say when exactly marks should be drawn.

Then I can say in the code:
view.setMin(0);
view.setMax(4);
view.setIntegerValues(true);
view.setMarkInterval(1);

@shchurov
Copy link
Owner

Hi @alexeyvasilyev,
Atm it has setMaxVisibleMarks attribute though it's not accurate if you want to set the total number of marks. But I think that could be a nice feature, I will try to figure out what's the best way to implement it. Regarding setIntegerValues, do you want the wheel to snap to the marks?

@alexeyvasilyev
Copy link
Author

Yes, it should snap to the marks.

PS. Again it has maxVisibleMarks xml attribute, but not setMaxVisibleMarks method.

@shchurov
Copy link
Owner

@alexeyvasilyev those are reasonable features, I will add them

@shchurov
Copy link
Owner

e04242a maxVisibleMarks changed to marksCount, I also added method setMarksCount(int count).
It will be included in the next release

@shchurov
Copy link
Owner

shchurov commented Aug 7, 2016

@alexeyvasilyev, 0.9.5 is released, thanks!

@shchurov shchurov closed this as completed Aug 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants