Class RenderStudentProgress

java.lang.Object
com.studentgui.tools.RenderStudentProgress

public class RenderStudentProgress extends Object
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:

  1. Ensures app folder hierarchy exists via Helpers.createFolderHierarchy()
  2. Queries database for canonical assessment part codes for the specified progress type
  3. Fetches up to 5 most recent assessment sessions via Database.fetchLatestAssessmentResults(java.lang.String, java.lang.String, int)
  4. Renders grouped chart using JLineGraph.updateWithGroupedData(java.util.List<java.util.List<java.lang.Integer>>, java.lang.String[])
  5. 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 Details

    • RenderStudentProgress

      Explicit no-arg constructor with documentation to avoid default-constructor javadoc warnings.
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      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