Need an advice on how to achieve decoupling of UI graphs from content.
I have an abstract Sensor interface and a bunch of implementations. Interface defines a couple of functions, such as parsing text to actual values, etc.
On the other hand, each Sensor implementation has it's own defined maximum range, which is final constant (and, in sense, static). On the user interface I would like to draw graphs of incoming Sensor data. Each graph has to have default Y range set to maximum range of the particular implementation.
Is there a way of accessing static fields of implementations via abstract superclass or interface without actually instantiating a dummy object of specific implementation type?