Package com.studentgui.tools
Class RenderStudentProgress
java.lang.Object
com.studentgui.tools.RenderStudentProgress
Command-line utility for offline student progress chart rendering and export.
This standalone tool generates PNG charts for a specific student and progress type without launching the full GUI application. Useful for:
- Batch chart generation for multiple students/progress types
- Debugging chart rendering issues outside the GUI context
- Automated report generation in CI/CD pipelines
- Creating historical chart snapshots for archival purposes
Usage:
java -cp StudentDataGUI.jar com.studentgui.tools.RenderStudentProgress "Aaron A Aaronsson" "Braille"
Workflow:
- Ensures app folder hierarchy exists via
Helpers.createFolderHierarchy() - Queries database for canonical assessment part codes for the specified progress type
- Fetches up to 5 most recent assessment sessions via
Database.fetchLatestAssessmentResults(java.lang.String, java.lang.String, int) - Renders grouped chart using
JLineGraph.updateWithGroupedData(java.util.List<java.util.List<java.lang.Integer>>, java.lang.String[]) - Exports PNG to
StudentDataFiles/<student>/plots/<ProgressType>-render-<date>.png
Output: PNG file written to student's plots directory with filename format:
<ProgressType>-render-<ISO_DATE>.png
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExplicit no-arg constructor with documentation to avoid default-constructor javadoc warnings. -
Method Summary
-
Constructor Details
-
RenderStudentProgress
public RenderStudentProgress()Explicit no-arg constructor with documentation to avoid default-constructor javadoc warnings.
-
-
Method Details
-
main
Render and write a progress chart for the provided student and progress type.- Parameters:
args- first arg: student display name, second arg: progress type name- Throws:
Exception- on I/O or database access errors
-