cleanup component area map on loading

fixed lead area mapping bug
This commit is contained in:
bancika
2011-01-31 22:05:05 +00:00
parent 12ca93e2c9
commit b96bad2688
7 changed files with 28 additions and 5 deletions
@@ -63,6 +63,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
IDrawingObserver drawingObserver) {
double distance = points[0].distance(points[1]);
Shape shape = getBodyShape();
// If there's no body, just draw the line connecting the ending points.
if (shape == null) {
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(getLeadThickness()));
g2d.setColor(shouldShadeLeads() ? getLeadColor(componentState).darker()