From: <nic...@us...> - 2003-09-02 09:52:18
|
Update of /cvsroot/jcharts/krysalis-jcharts/src/scratchpad/org/krysalis/jcharts/gantt In directory sc8-pr-cvs1:/tmp/cvs-serv20488/src/scratchpad/org/krysalis/jcharts/gantt Modified Files: PlanRenderer.java Log Message: Understandable names for the clips. Index: PlanRenderer.java =================================================================== RCS file: /cvsroot/jcharts/krysalis-jcharts/src/scratchpad/org/krysalis/jcharts/gantt/PlanRenderer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PlanRenderer.java 2 Sep 2003 09:08:47 -0000 1.3 --- PlanRenderer.java 2 Sep 2003 09:52:11 -0000 1.4 *************** *** 93,104 **** float rightEdge; ! Shape clip0 = new Rectangle2D.Float(0, 0, width, height); ! Shape clip1 = new Rectangle2D.Float(0, 0, firstSpaceWidth, height); ! Shape clip2 = new Rectangle2D.Float(firstSpaceWidth, 0, secondSpaceWidth, height); ! Shape clip3 = new Rectangle2D.Float(leftWidth, 0, width - leftWidth, height); ! g2.clip(clip0); g2.setBackground(Color.WHITE); --- 93,104 ---- float rightEdge; ! Shape fullclip = new Rectangle2D.Float(0, 0, width, height); ! Shape leftclip = new Rectangle2D.Float(0, 0, firstSpaceWidth, height); ! Shape middleclip = new Rectangle2D.Float(firstSpaceWidth, 0, secondSpaceWidth, height); ! Shape rightclip = new Rectangle2D.Float(leftWidth, 0, width - leftWidth, height); ! g2.clip(fullclip); g2.setBackground(Color.WHITE); *************** *** 240,248 **** g2.setPaint(Color.BLACK); ! g2.setClip(clip1); g2.drawString(label, 0, currentTopEdge + 12); g2.setClip(null); ! g2.setClip(clip2); g2.drawString(name, firstSpaceWidth, currentTopEdge + 12); g2.setClip(null); --- 240,248 ---- g2.setPaint(Color.BLACK); ! g2.setClip(leftclip); g2.drawString(label, 0, currentTopEdge + 12); g2.setClip(null); ! g2.setClip(middleclip); g2.drawString(name, firstSpaceWidth, currentTopEdge + 12); g2.setClip(null); *************** *** 273,277 **** barHeigth); ! g2.setClip(clip3); g2.setPaint(Color.decode(currentAction.getColor())); g2.fill(taskGraphic); --- 273,277 ---- barHeigth); ! g2.setClip(rightclip); g2.setPaint(Color.decode(currentAction.getColor())); g2.fill(taskGraphic); *************** *** 325,329 **** barHeigth); ! g2.setClip(clip3); g2.setPaint(Color.decode(fragment.getColor())); g2.fill(taskGraphic); --- 325,329 ---- barHeigth); ! g2.setClip(rightclip); g2.setPaint(Color.decode(fragment.getColor())); g2.fill(taskGraphic); *************** *** 373,377 **** PlanRenderer.normalizeMultiplicity4Color(multiplicity); ! g2.setClip(clip3); g2.setPaint(new Color(normMult, 0, 0)); g2.fill(milestoneShape); --- 373,377 ---- PlanRenderer.normalizeMultiplicity4Color(multiplicity); ! g2.setClip(rightclip); g2.setPaint(new Color(normMult, 0, 0)); g2.fill(milestoneShape); *************** *** 400,404 **** barHeigth); ! g2.setClip(clip3); g2.setPaint(Color.BLACK); g2.fill(taskGraphic); --- 400,404 ---- barHeigth); ! g2.setClip(rightclip); g2.setPaint(Color.BLACK); g2.fill(taskGraphic); |