From: SourceForge.net <no...@so...> - 2009-03-14 11:04:11
|
Patches item #2686872, was opened at 2009-03-14 12:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315494&aid=2686872&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Peter Kolb (paradoxoff) Assigned to: Nobody/Anonymous (nobody) Summary: Fixes for PaintScaleLegend Initial Comment: I have noted a few issues with the current PaintScaleLegend: - changes in the ValueAxis of the PaintScaleLegend do no trigger a redraw since the PaintScaleLegend is not registered as an AxisChangeListener for the axis. - the stripOutlineVisible flag has no effect. A rectangle around the color strip is always drawn. - Most importantly: for some combinations of position of the PaintScaleLegend, the axisLocation, the padding of the legend, and the subdivisions count, the color strip is frequently interrupted, and the background shines through! I have changed the source and made a new file LinePaintScaleLegend. The LinePaintScaleLegend is registered as AxisChangeListener on the ValueAxis and takes the stripOutlineVisible flag into account. The drawing principle has changed. The drawing is now performed by determining the size of the area of the color strip in java2D space, stepping through the area from the start to the end with an increment of 1 (i.e. pixel by pixel) and drawing a line for each step. The subdivisions are no longer necessary. The new class has been briefly tested with a couple of combinations of legend position and axis lcoations and has been found to be stable. After further testing, it could replace the original PaintScaleLegend. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315494&aid=2686872&group_id=15494 |