Editable lead color; changed default lead color

This commit is contained in:
bancika
2012-10-10 14:49:39 +00:00
parent 50562ae901
commit 024884d85d
8 changed files with 7 additions and 7 deletions
@@ -83,7 +83,7 @@ public class AxialElectrolyticCapacitor extends
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.rotate(-Math.PI / 4, width / 2, height / 2); g2d.rotate(-Math.PI / 4, width / 2, height / 2);
g2d.setColor(LEAD_COLOR); g2d.setColor(LEAD_COLOR_ICON);
g2d.drawLine(0, height / 2, width, height / 2); g2d.drawLine(0, height / 2, width, height / 2);
g2d.setColor(BODY_COLOR); g2d.setColor(BODY_COLOR);
g2d.fillRect(4, height / 2 - 3, width - 8, 6); g2d.fillRect(4, height / 2 - 3, width - 8, 6);
@@ -76,7 +76,7 @@ public class AxialFilmCapacitor extends AbstractLeadedComponent<Capacitance> {
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.rotate(-Math.PI / 4, width / 2, height / 2); g2d.rotate(-Math.PI / 4, width / 2, height / 2);
g2d.setColor(LEAD_COLOR); g2d.setColor(LEAD_COLOR_ICON);
g2d.drawLine(0, height / 2, width, height / 2); g2d.drawLine(0, height / 2, width, height / 2);
g2d.setColor(BODY_COLOR); g2d.setColor(BODY_COLOR);
g2d.fillRect(4, height / 2 - 3, width - 8, 6); g2d.fillRect(4, height / 2 - 3, width - 8, 6);
@@ -70,7 +70,7 @@ public class RadialCeramicDiskCapacitor extends AbstractRadialComponent<Capacita
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.rotate(-Math.PI / 4, width / 2, height / 2); g2d.rotate(-Math.PI / 4, width / 2, height / 2);
g2d.setColor(LEAD_COLOR); g2d.setColor(LEAD_COLOR_ICON);
g2d.drawLine(0, height / 2, width, height / 2); g2d.drawLine(0, height / 2, width, height / 2);
g2d.setColor(BODY_COLOR); g2d.setColor(BODY_COLOR);
g2d.fillOval(4, height / 2 - 3, width - 8, 6); g2d.fillOval(4, height / 2 - 3, width - 8, 6);
@@ -71,7 +71,7 @@ public class RadialFilmCapacitor extends AbstractRadialComponent<Capacitance> {
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.rotate(-Math.PI / 4, width / 2, height / 2); g2d.rotate(-Math.PI / 4, width / 2, height / 2);
g2d.setColor(LEAD_COLOR); g2d.setColor(LEAD_COLOR_ICON);
g2d.drawLine(0, height / 2, width, height / 2); g2d.drawLine(0, height / 2, width, height / 2);
g2d.setColor(BODY_COLOR); g2d.setColor(BODY_COLOR);
g2d.fillRoundRect(4, height / 2 - 3, width - 8, 6, 5, 5); g2d.fillRoundRect(4, height / 2 - 3, width - 8, 6, 5, 5);
@@ -81,7 +81,7 @@ public class Resistor extends AbstractLeadedComponent<Resistance> {
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.rotate(-Math.PI / 4, width / 2, height / 2); g2d.rotate(-Math.PI / 4, width / 2, height / 2);
g2d.setColor(LEAD_COLOR); g2d.setColor(LEAD_COLOR_ICON);
g2d.drawLine(0, height / 2, width, height / 2); g2d.drawLine(0, height / 2, width, height / 2);
g2d.setColor(BODY_COLOR); g2d.setColor(BODY_COLOR);
g2d.fillRect(4, height / 2 - 3, width - 8, 6); g2d.fillRect(4, height / 2 - 3, width - 8, 6);
@@ -66,7 +66,7 @@ public class DiodePlastic extends AbstractLeadedComponent<String> {
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.rotate(-Math.PI / 4, width / 2, height / 2); g2d.rotate(-Math.PI / 4, width / 2, height / 2);
g2d.setColor(LEAD_COLOR); g2d.setColor(LEAD_COLOR_ICON);
g2d.drawLine(0, height / 2, width, height / 2); g2d.drawLine(0, height / 2, width, height / 2);
g2d.setColor(BODY_COLOR); g2d.setColor(BODY_COLOR);
g2d.fillRect(6, height / 2 - 3, width - 12, 6); g2d.fillRect(6, height / 2 - 3, width - 12, 6);
@@ -45,7 +45,7 @@ public class LED extends AbstractLeadedComponent<String> {
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(1)); g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(1));
g2d.rotate(-Math.PI / 4, width / 2, height / 2); g2d.rotate(-Math.PI / 4, width / 2, height / 2);
g2d.setColor(LEAD_COLOR); g2d.setColor(LEAD_COLOR_ICON);
g2d.drawLine(0, height / 2, width, height / 2); g2d.drawLine(0, height / 2, width, height / 2);
int margin = 4 * width / 32; int margin = 4 * width / 32;