This project is part of a home control application. The application writes events (light on/off, temperature changes etc.) into a mySQL database. The main fields are Object(Light....)-Name, New Value, Time.
What needs to be done: Write a class which opens a window which has 3 parts.
The bottom part needs to display a (scrollable) text array for the database columns (and a header) for the given timeframe.
The middlepart needs to display a graphic, X-direction is time, Y direction is value.
Top part are buttons to change the timeframe (1 period back, 1 period forward, double the period (eg 1 day to 2 days - zoom out), half the period (zoom in).
Initial call is: ObjectName, TimeFrom, TimeTo, DisplayValLow, DisplayValHigh (lower and upper limit for Y-axis), sizeX, SizeY (Size of the Window in Pixels).
Everything needs to be in absolute positioning, no Layoutmanager since the class will be used only one one specific end device and portability etc is not an issue.
Feel free to ask questions.