Ability to flip standing diodes

This commit is contained in:
bancika
2012-09-13 15:05:15 +00:00
parent a6731fd284
commit f7a73f2bcb
2 changed files with 5 additions and 1 deletions
@@ -83,7 +83,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f * alpha g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f * alpha
/ MAX_ALPHA)); / MAX_ALPHA));
} }
g2d.setColor(outlineMode ? Constants.TRANSPARENT_COLOR : bodyColor); g2d.setColor(outlineMode ? Constants.TRANSPARENT_COLOR : getStandingBodyColor());
g2d.fill(body); g2d.fill(body);
g2d.setComposite(oldComposite); g2d.setComposite(oldComposite);
Color finalBorderColor; Color finalBorderColor;
@@ -348,6 +348,10 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
this.bodyColor = bodyColor; this.bodyColor = bodyColor;
} }
public Color getStandingBodyColor() {
return bodyColor;
}
@EditableProperty(name = "Border") @EditableProperty(name = "Border")
public Color getBorderColor() { public Color getBorderColor() {
return borderColor; return borderColor;