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

ImageSpeedometer can't call drawDefMinMaxSpeedPosition without overriding class #246

Open
agronick opened this issue Oct 16, 2023 · 1 comment
Labels
Bug report Participants report a bug

Comments

@agronick
Copy link

agronick commented Oct 16, 2023

Describe the bug
This seems like an oversight. There is no way to set min and max on an image speedometer without overriding the class. SpeedView has this code in updateBackgroundBitmap.

        if (tickNumber > 0)
            drawTicks(c)
        else
            drawDefMinMaxSpeedPosition(c)

ImageSpeedometer just has

        drawMarks(c)
        drawTicks(c)

drawDefMinMaxSpeedPosition is protected so you can't call it without overriding the class.

@agronick agronick added the Bug report Participants report a bug label Oct 16, 2023
@anastr
Copy link
Owner

anastr commented Oct 16, 2023

ImageSpeedometer doesn't have this functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Participants report a bug
Projects
None yet
Development

No branches or pull requests

2 participants