From: <nic...@us...> - 2003-09-05 12:45:25
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/scratchpad/org/krysalis/jcharts/gantt In directory sc8-pr-cvs1:/tmp/cvs-serv24180/src/scratchpad/org/krysalis/jcharts/gantt Modified Files: PlanRenderer.java Log Message: Calculate and real height ofchar. Index: PlanRenderer.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/scratchpad/org/krysalis/jcharts/gantt/PlanRenderer.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** PlanRenderer.java 4 Sep 2003 11:45:16 -0000 1.10 --- PlanRenderer.java 5 Sep 2003 12:45:16 -0000 1.11 *************** *** 79,86 **** HashMap hints) { - //@todo - int height = 6000; - int width = leftWidth + barspaceWidth; - String[] colours; String[] darkcolours; --- 79,82 ---- *************** *** 103,106 **** --- 99,106 ---- float rightEdge; + //@todo + int height = (int) (data.size() * barspaceHeight + currentTopEdge); + int width = leftWidth + barspaceWidth; + Rectangle oldClipBounds = g2.getClipBounds(); if (oldClipBounds == null) { |