From: SourceForge.net <no...@so...> - 2008-01-26 00:59:38
|
Bugs item #1880114, was opened at 2008-01-25 16:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1880114&group_id=15494 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: VectorRenderer + PlotOrientation.Horizontal = not working Initial Comment: VectorRenderer does not properly draw the head of the arrow when the PlotOrientation is set to horizontal. It draws it as if it were vertical. The fix is very simple: In VectorRender.drawItem(): Replace GeneralPath p = new GeneralPath(); p.moveTo((float) xx1, (float) yy1); p.lineTo((float) rightx, (float) righty); p.lineTo((float) bx, (float) by); p.lineTo((float) leftx, (float) lefty); p.closePath(); g2.draw(p); with GeneralPath p = new GeneralPath(); if (orientation.equals(PlotOrientation.HORIZONTAL)) p.moveTo((float) yy1, (float) xx1); p.lineTo((float) righty, (float) rightx); p.lineTo((float) by, (float) bx); p.lineTo((float) lefty, (float) leftx); } else { p.moveTo((float) xx1, (float) yy1); p.lineTo((float) rightx, (float) righty); p.lineTo((float) bx, (float) by); p.lineTo((float) leftx, (float) lefty); } p.closePath(); g2.draw(p); Very simple, just mimicked what was being done when the line was being drawn. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=1880114&group_id=15494 |