Skip to content

Commit 35a1700

Browse files
author
Michael Ryan Hunsaker
committed
added javadoc
1 parent c033f79 commit 35a1700

File tree

496 files changed

+17448
-10179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

496 files changed

+17448
-10179
lines changed

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/java
3+
{
4+
"name": "Java",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/java:1-21-bullseye",
7+
8+
"features": {
9+
"ghcr.io/devcontainers/features/java:1": {
10+
"version": "none",
11+
"installMaven": "true",
12+
"installGradle": "true"
13+
},
14+
"ghcr.io/devcontainers/features/powershell:1": {},
15+
"ghcr.io/devcontainers/features/python:1": {}
16+
}
17+
18+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
19+
// "forwardPorts": [],
20+
21+
// Use 'postCreateCommand' to run commands after the container is created.
22+
// "postCreateCommand": "java -version",
23+
24+
// Configure tool-specific properties.
25+
// "customizations": {},
26+
27+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
28+
// "remoteUser": "root"
29+
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

src/main/java/com/studentgui/app/Main.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import java.awt.BorderLayout;
44
import java.awt.CardLayout;
55
import java.awt.FlowLayout;
6+
import java.awt.Font;
67
import java.time.LocalDate;
78
import java.time.format.DateTimeParseException;
89
import java.util.List;
@@ -432,12 +433,15 @@ private static JPanel buildTopBar() {
432433
JComboBox<String> studentBox = new JComboBox<>(students.toArray(new String[0]));
433434
studentBox.setEditable(false);
434435

436+
JLabel studentLabel = new JLabel("Student:");
437+
studentLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24));
435438
JLabel dateLabel = new JLabel("Date (YYYY-MM-DD):");
439+
dateLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24));
436440
JTextField dateField = new JTextField(LocalDate.now().toString(), 10);
437441

438442
JButton goBtn = new JButton("Apply");
439443

440-
bar.add(new JLabel("Student:"));
444+
bar.add(studentLabel);
441445
bar.add(studentBox);
442446
bar.add(dateLabel);
443447
bar.add(dateField);

src/main/java/com/studentgui/app/PreferencesDialog.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.awt.BorderLayout;
44
import java.awt.FlowLayout;
5+
import java.awt.Font;
56
import java.awt.Frame;
67

78
import javax.swing.JButton;
@@ -47,7 +48,9 @@ public static void showDialog(final Frame owner) {
4748
center.add(jitterCb);
4849
center.add(detCb);
4950
center.add(dumpsCb);
50-
center.add(new JLabel("Seed:"));
51+
JLabel seedLabel = new JLabel("Seed:");
52+
seedLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24));
53+
center.add(seedLabel);
5154
center.add(seedField);
5255

5356
JPanel south = new JPanel(new FlowLayout(FlowLayout.RIGHT));

src/main/java/com/studentgui/apppages/Abacus.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Abacus(final String studentName, final LocalDate date, final JLineGraph l
127127
gbc.weighty = 0.0;
128128

129129
this.titleLabel = new JLabel(baseTitle);
130-
this.titleLabel.setFont(this.titleLabel.getFont().deriveFont(Font.BOLD, 16));
130+
this.titleLabel.setFont(this.titleLabel.getFont().deriveFont(Font.BOLD, 28f));
131131
gbc.gridx = 0;
132132
gbc.gridy = 0;
133133
gbc.gridwidth = GridBagConstraints.REMAINDER;
@@ -141,7 +141,7 @@ public Abacus(final String studentName, final LocalDate date, final JLineGraph l
141141
// visual spacing controlled by PhaseScoreField and layout
142142

143143
String[] labels = java.util.Arrays.stream(this.parts).map(x->x[1]).toArray(String[]::new);
144-
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(titleLabel.getFont(), labels);
144+
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(com.studentgui.uicomp.PhaseScoreField.getLabelFont(), labels);
145145
com.studentgui.uicomp.PhaseScoreField.setGlobalLabelWidth(Math.min(320, Math.max(140, maxPx + 50)));
146146
skillFields = new com.studentgui.uicomp.PhaseScoreField[this.parts.length];
147147
for (int i = 0; i < this.parts.length; i++) {

src/main/java/com/studentgui/apppages/Braille.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public Braille(final String studentName, final LocalDate date, final JLineGraph
140140
gbc.weighty = 0.0;
141141

142142
this.titleLabel = new JLabel(baseTitle);
143-
this.titleLabel.setFont(this.titleLabel.getFont().deriveFont(Font.BOLD, 16));
143+
this.titleLabel.setFont(this.titleLabel.getFont().deriveFont(Font.BOLD, 28f));
144144
gbc.gridx = 0;
145145
gbc.gridy = 0;
146146
gbc.gridwidth = GridBagConstraints.REMAINDER;
@@ -153,7 +153,7 @@ public Braille(final String studentName, final LocalDate date, final JLineGraph
153153

154154
// compute longest label width to align inputs
155155
String[] labels = java.util.Arrays.stream(parts).map(x->x[1]).toArray(String[]::new);
156-
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(titleLabel.getFont(), labels);
156+
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(com.studentgui.uicomp.PhaseScoreField.getLabelFont(), labels);
157157
com.studentgui.uicomp.PhaseScoreField.setGlobalLabelWidth(Math.min(320, Math.max(140, maxPx + 50)));
158158
skillFields = new com.studentgui.uicomp.PhaseScoreField[this.parts.length];
159159
for (int i = 0; i < this.parts.length; i++) {

src/main/java/com/studentgui/apppages/BrailleNote.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public BrailleNote(String studentName, LocalDate date, JLineGraph lineGraph) {
150150
gbc.weighty = 0.0;
151151

152152
this.titleLabel = new JLabel(baseTitle);
153-
this.titleLabel.setFont(this.titleLabel.getFont().deriveFont(Font.BOLD, 16));
153+
this.titleLabel.setFont(this.titleLabel.getFont().deriveFont(Font.BOLD, 28f));
154154
gbc.gridx = 0;
155155
gbc.gridy = 0;
156156
gbc.gridwidth = GridBagConstraints.REMAINDER;
@@ -165,7 +165,7 @@ public BrailleNote(String studentName, LocalDate date, JLineGraph lineGraph) {
165165

166166
// compute pixel width using font metrics so labels align precisely
167167
String[] labelsArr = java.util.Arrays.stream(parts).map(x->x[1]).toArray(String[]::new);
168-
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(titleLabel.getFont(), labelsArr);
168+
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(com.studentgui.uicomp.PhaseScoreField.getLabelFont(), labelsArr);
169169
com.studentgui.uicomp.PhaseScoreField.setGlobalLabelWidth(Math.min(320, Math.max(140, maxPx + 50)));
170170
skillFields = new com.studentgui.uicomp.PhaseScoreField[parts.length];
171171
for (int i = 0; i < parts.length; i++) {

src/main/java/com/studentgui/apppages/BrailleSense.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public BrailleSense(String studentName, LocalDate date, JLineGraph graph) {
113113

114114
JLabel titleLabel = new JLabel("BrailleSense Skills");
115115
// Use an explicit font so theme changes don't alter the title appearance
116-
titleLabel.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 16));
116+
titleLabel.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 28));
117117
gbc.gridx = 0;
118118
gbc.gridy = 0;
119119
gbc.gridwidth = GridBagConstraints.REMAINDER;
@@ -141,7 +141,7 @@ public BrailleSense(String studentName, LocalDate date, JLineGraph graph) {
141141

142142
// compute pixel width using font metrics so labels align precisely
143143
String[] labels = java.util.Arrays.stream(this.parts).map(x -> x[1]).toArray(String[]::new);
144-
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(titleLabel.getFont(), labels);
144+
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(com.studentgui.uicomp.PhaseScoreField.getLabelFont(), labels);
145145
com.studentgui.uicomp.PhaseScoreField.setGlobalLabelWidth(Math.min(360, Math.max(200, maxPx + 50)));
146146
int row = 1;
147147
for (String[] def : this.parts) {

src/main/java/com/studentgui/apppages/CVI.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@ public CVI(String studentName, LocalDate date, JLineGraph graph) {
106106
JScrollPane scroll = new JScrollPane(view);
107107
GridBagConstraints gbc = new GridBagConstraints(); gbc.insets=new Insets(2,2,2,2); gbc.fill = GridBagConstraints.HORIZONTAL; gbc.anchor = GridBagConstraints.NORTHWEST;
108108

109-
JLabel title = new JLabel("CVI Progression");
110-
title.setFont(title.getFont().deriveFont(Font.BOLD,16));
109+
JLabel title = new JLabel("CVI Progression");
110+
title.setFont(title.getFont().deriveFont(Font.BOLD,28f));
111111
title.getAccessibleContext().setAccessibleName("CVI Progression Title");
112112
title.setHorizontalAlignment(JLabel.LEFT);
113113
gbc.gridx=0; gbc.gridy=0; gbc.gridwidth=2; panel.add(title, gbc);
114114

115115
String[][] parts = new String[][]{{"P1_1","Color Preference"},{"P1_2","Need for Movement"},{"P1_3","Latency"},{"P1_4","Field Preference"},{"P1_5","Visual Complexity"},{"P1_6","Nonpurposeful Gaze"},{"P2_1","Distance Viewing"},{"P2_2","Atypical Reflexes"},{"P2_3","Visual Novelty"},{"P2_4","Visual Reach"}};
116-
String[] labels = java.util.Arrays.stream(parts).map(x->x[1]).toArray(String[]::new);
117-
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(title.getFont(), labels);
116+
String[] labels = java.util.Arrays.stream(parts).map(x->x[1]).toArray(String[]::new);
117+
int maxPx = com.studentgui.uicomp.PhaseScoreField.computeMaxLabelPixelWidth(com.studentgui.uicomp.PhaseScoreField.getLabelFont(), labels);
118118
com.studentgui.uicomp.PhaseScoreField.setGlobalLabelWidth(Math.min(320, Math.max(140, maxPx + 50)));
119119
int row = 1;
120120
for (String[] pdef: parts) {

src/main/java/com/studentgui/apppages/ContactLog.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,36 +111,36 @@ public ContactLog(String studentName, LocalDate date, JLineGraph graph) {
111111
JScrollPane scroll = new JScrollPane(view);
112112
scroll.getAccessibleContext().setAccessibleName("Contact Log data entry scroll pane");
113113
GridBagConstraints gbc = new GridBagConstraints(); gbc.insets=new Insets(2,2,2,2); gbc.fill = GridBagConstraints.HORIZONTAL; gbc.anchor = GridBagConstraints.NORTHWEST;
114-
JLabel title = new JLabel("Contact Log"); title.setFont(title.getFont().deriveFont(Font.BOLD,16)); title.setHorizontalAlignment(JLabel.LEFT); gbc.gridx=0; gbc.gridy=0; gbc.gridwidth=2; p.add(title, gbc);
114+
JLabel title = new JLabel("Contact Log"); title.setFont(title.getFont().deriveFont(Font.BOLD,28f)); title.setHorizontalAlignment(JLabel.LEFT); gbc.gridx=0; gbc.gridy=0; gbc.gridwidth=2; p.add(title, gbc);
115115

116116
// Structured contact fields (placed above notes)
117117
int row = 1;
118118
gbc.gridwidth = 1;
119119
int globalLabel = com.studentgui.uicomp.PhaseScoreField.getGlobalLabelWidth();
120-
gbc.gridx = 0; gbc.gridy = row; JLabel guardianLabel = new JLabel("Guardian Name:"); guardianLabel.setPreferredSize(new java.awt.Dimension(globalLabel, guardianLabel.getPreferredSize().height)); p.add(guardianLabel, gbc);
120+
gbc.gridx = 0; gbc.gridy = row; JLabel guardianLabel = new JLabel("Guardian Name:"); guardianLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); guardianLabel.setPreferredSize(new java.awt.Dimension(globalLabel, guardianLabel.getPreferredSize().height)); p.add(guardianLabel, gbc);
121121
guardianField = new JTextField(24); guardianField.setName("contactlog_guardian"); gbc.gridx = 1; p.add(guardianField, gbc);
122122
row++;
123-
gbc.gridx = 0; gbc.gridy = row; JLabel methodLabel = new JLabel("Contact Method:"); methodLabel.setPreferredSize(new java.awt.Dimension(globalLabel, methodLabel.getPreferredSize().height)); p.add(methodLabel, gbc);
123+
gbc.gridx = 0; gbc.gridy = row; JLabel methodLabel = new JLabel("Contact Method:"); methodLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); methodLabel.setPreferredSize(new java.awt.Dimension(globalLabel, methodLabel.getPreferredSize().height)); p.add(methodLabel, gbc);
124124
contactMethodCombo = new JComboBox<>(new String[]{"Phone","Email","In Person","Other"}); contactMethodCombo.setName("contactlog_method"); gbc.gridx = 1; p.add(contactMethodCombo, gbc);
125125
row++;
126-
gbc.gridx = 0; gbc.gridy = row; JLabel phoneLabel = new JLabel("Phone Number:"); phoneLabel.setPreferredSize(new java.awt.Dimension(globalLabel, phoneLabel.getPreferredSize().height)); p.add(phoneLabel, gbc);
126+
gbc.gridx = 0; gbc.gridy = row; JLabel phoneLabel = new JLabel("Phone Number:"); phoneLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); phoneLabel.setPreferredSize(new java.awt.Dimension(globalLabel, phoneLabel.getPreferredSize().height)); p.add(phoneLabel, gbc);
127127
phoneField = new JTextField(18); phoneField.setName("contactlog_phone"); gbc.gridx = 1; p.add(phoneField, gbc);
128128
row++;
129-
gbc.gridx = 0; gbc.gridy = row; JLabel emailLabel = new JLabel("Email Address:"); emailLabel.setPreferredSize(new java.awt.Dimension(globalLabel, emailLabel.getPreferredSize().height)); p.add(emailLabel, gbc);
129+
gbc.gridx = 0; gbc.gridy = row; JLabel emailLabel = new JLabel("Email Address:"); emailLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); emailLabel.setPreferredSize(new java.awt.Dimension(globalLabel, emailLabel.getPreferredSize().height)); p.add(emailLabel, gbc);
130130
emailField = new JTextField(24); emailField.setName("contactlog_email"); gbc.gridx = 1; p.add(emailField, gbc);
131131
row++;
132-
gbc.gridx = 0; gbc.gridy = row; JLabel responseLabel = new JLabel("Contact Response:"); responseLabel.setPreferredSize(new java.awt.Dimension(globalLabel, responseLabel.getPreferredSize().height)); p.add(responseLabel, gbc);
132+
gbc.gridx = 0; gbc.gridy = row; JLabel responseLabel = new JLabel("Contact Response:"); responseLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); responseLabel.setPreferredSize(new java.awt.Dimension(globalLabel, responseLabel.getPreferredSize().height)); p.add(responseLabel, gbc);
133133
contactResponseField = new JTextField(24); contactResponseField.setName("contactlog_response"); gbc.gridx = 1; p.add(contactResponseField, gbc);
134134
row++;
135-
gbc.gridx = 0; gbc.gridy = row; JLabel generalLabel = new JLabel("Contact General:"); generalLabel.setPreferredSize(new java.awt.Dimension(globalLabel, generalLabel.getPreferredSize().height)); p.add(generalLabel, gbc);
135+
gbc.gridx = 0; gbc.gridy = row; JLabel generalLabel = new JLabel("Contact General:"); generalLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); generalLabel.setPreferredSize(new java.awt.Dimension(globalLabel, generalLabel.getPreferredSize().height)); p.add(generalLabel, gbc);
136136
contactGeneralField = new JTextField(24); contactGeneralField.setName("contactlog_general"); gbc.gridx = 1; p.add(contactGeneralField, gbc);
137137
row++;
138-
gbc.gridx = 0; gbc.gridy = row; JLabel specificLabel = new JLabel("Contact Specific:"); specificLabel.setPreferredSize(new java.awt.Dimension(globalLabel, specificLabel.getPreferredSize().height)); p.add(specificLabel, gbc);
138+
gbc.gridx = 0; gbc.gridy = row; JLabel specificLabel = new JLabel("Contact Specific:"); specificLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); specificLabel.setPreferredSize(new java.awt.Dimension(globalLabel, specificLabel.getPreferredSize().height)); p.add(specificLabel, gbc);
139139
contactSpecificField = new JTextField(24); contactSpecificField.setName("contactlog_specific"); gbc.gridx = 1; p.add(contactSpecificField, gbc);
140140
row++;
141141

142142
// Notes label + text area with accessibility
143-
gbc.gridx = 0; gbc.gridy = row; gbc.gridwidth = 2; JLabel notesLabel = new JLabel("Notes:"); notesLabel.setPreferredSize(new java.awt.Dimension(globalLabel, notesLabel.getPreferredSize().height)); p.add(notesLabel, gbc);
143+
gbc.gridx = 0; gbc.gridy = row; gbc.gridwidth = 2; JLabel notesLabel = new JLabel("Notes:"); notesLabel.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 24)); notesLabel.setPreferredSize(new java.awt.Dimension(globalLabel, notesLabel.getPreferredSize().height)); p.add(notesLabel, gbc);
144144
row++;
145145

146146
gbc.gridx = 0; gbc.gridy = row; gbc.gridwidth = 2; notesArea = new JTextArea(8,40); notesArea.setLineWrap(true); notesArea.setWrapStyleWord(true); notesArea.setToolTipText("Enter contact notes for the student"); notesArea.getAccessibleContext().setAccessibleName("Contact notes"); JScrollPane notesScroll = new JScrollPane(notesArea); notesScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); p.add(notesScroll, gbc);

0 commit comments

Comments
 (0)