• R/O
  • SSH
  • HTTPS

freegantt: Commit


Commit MetaInfo

Révision136 (tree)
l'heure2012-09-19 21:19:53
Auteurmonolith52

Message de Log

稲妻線描画時にグループタスクを無視するように修正

Change Summary

Modification

--- trunk/src/jp/sourceforge/freegantt/swing/TaskLineDataPane.java (revision 135)
+++ trunk/src/jp/sourceforge/freegantt/swing/TaskLineDataPane.java (revision 136)
@@ -1243,7 +1243,9 @@
12431243 path.lineTo(dateOffset * getCellWidth(), row * getCellHeight());
12441244
12451245 Task task = project.getTaskAtRow(row);
1246- if (task != null && task.getStartDate() != null &&
1246+ if (task.isGroup()) {
1247+ // スルー
1248+ } else if (task != null && task.getStartDate() != null &&
12471249 CalendarUtil.subDate(task.getStartDate(), now) > 0 &&
12481250 task.getCompletion() == 0) {
12491251 // スルー
@@ -1261,8 +1263,8 @@
12611263 }
12621264 path.lineTo(dateOffset * getCellWidth(), drawableHeight - 0.75);
12631265 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
1266+ g2d.setStroke(new BasicStroke(2.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER));
12641267 g2d.setColor(progressLineColor);
1265- g2d.setStroke(new BasicStroke(1.5f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER));
12661268 g2d.draw(path);
12671269 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_DEFAULT);
12681270 }
--- trunk/src/jp/sourceforge/freegantt/data/Project.java (revision 135)
+++ trunk/src/jp/sourceforge/freegantt/data/Project.java (revision 136)
@@ -282,6 +282,11 @@
282282 }
283283
284284 public void update() {
285+
286+ // グループフラグを更新する
287+ for (Task task: tasks) {
288+ getController().setTaskGroup(!getChildTasks(task).isEmpty(), getIndexByTask(task));
289+ }
285290
286291 // タスクをlevelの降順にソートする
287292 List<Task> sortedTasks = new ArrayList<Task>(tasks);
Afficher sur ancien navigateur de dépôt.