code cleanup

This commit is contained in:
bancika
2011-01-30 23:45:25 +00:00
parent 8ea53b6876
commit fa02280292
12 changed files with 3 additions and 62 deletions
@@ -1,36 +0,0 @@
package org.diylc.components;
import java.awt.Point;
public abstract class AbstractSinglePointComponent extends AbstractComponent<Void> {
private static final long serialVersionUID = 1L;
protected Point point = new Point(0, 0);
@Override
public int getControlPointCount() {
return 1;
}
@Override
public Point getControlPoint(int index) {
return point;
}
@Override
public void setControlPoint(Point point, int index) {
this.point.setLocation(point);
}
@Deprecated
@Override
public Void getValue() {
return null;
}
@Deprecated
@Override
public void setValue(Void value) {
}
}
@@ -72,43 +72,36 @@ public class CopperTrace extends AbstractLeadedComponent<Void> {
return false; return false;
} }
@Deprecated
public Color getBodyColor() { public Color getBodyColor() {
return super.getBodyColor(); return super.getBodyColor();
} }
@Deprecated
@Override @Override
public Color getBorderColor() { public Color getBorderColor() {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return super.getBorderColor(); return super.getBorderColor();
} }
@Deprecated
@Override @Override
public Byte getAlpha() { public Byte getAlpha() {
return super.getAlpha(); return super.getAlpha();
} }
@Deprecated
@Override @Override
public Size getLength() { public Size getLength() {
return super.getLength(); return super.getLength();
} }
@Deprecated
@Override @Override
public Size getWidth() { public Size getWidth() {
return super.getWidth(); return super.getWidth();
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
} }
@Deprecated
@Override @Override
public void setValue(Void value) { public void setValue(Void value) {
} }
@@ -46,7 +46,6 @@ public class CurvedTrace extends AbstractCurvedComponent<Void> {
this.size = size; this.size = size;
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
@@ -56,7 +55,6 @@ public class CurvedTrace extends AbstractCurvedComponent<Void> {
public void setValue(Void value) { public void setValue(Void value) {
} }
@Deprecated
@Override @Override
public Byte getAlpha() { public Byte getAlpha() {
return super.getAlpha(); return super.getAlpha();
@@ -22,6 +22,9 @@ public class Jumper extends AbstractLeadedComponent<Void> {
@Override @Override
public void drawIcon(Graphics2D g2d, int width, int height) { public void drawIcon(Graphics2D g2d, int width, int height) {
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(3));
g2d.setColor(COLOR.darker());
g2d.drawLine(1, height - 2, width - 2, 1);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(1)); g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(1));
g2d.setColor(COLOR); g2d.setColor(COLOR);
g2d.drawLine(1, height - 2, width - 2, 1); g2d.drawLine(1, height - 2, width - 2, 1);
@@ -34,42 +37,35 @@ public class Jumper extends AbstractLeadedComponent<Void> {
|| componentState == ComponentState.DRAGGING ? SELECTION_COLOR : COLOR; || componentState == ComponentState.DRAGGING ? SELECTION_COLOR : COLOR;
} }
@Deprecated
public Color getBodyColor() { public Color getBodyColor() {
return super.getBodyColor(); return super.getBodyColor();
} }
@Deprecated
@Override @Override
public Color getBorderColor() { public Color getBorderColor() {
return super.getBorderColor(); return super.getBorderColor();
} }
@Deprecated
@Override @Override
public Byte getAlpha() { public Byte getAlpha() {
return super.getAlpha(); return super.getAlpha();
} }
@Deprecated
@Override @Override
public Size getLength() { public Size getLength() {
return super.getLength(); return super.getLength();
} }
@Deprecated
@Override @Override
public Size getWidth() { public Size getWidth() {
return super.getWidth(); return super.getWidth();
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
} }
@Deprecated
@Override @Override
public void setValue(Void value) { public void setValue(Void value) {
} }
@@ -67,7 +67,6 @@ public class SolderPad extends AbstractComponent<Void> {
this.size = size; this.size = size;
} }
@Deprecated
@Override @Override
public String getName() { public String getName() {
return super.getName(); return super.getName();
@@ -116,7 +115,6 @@ public class SolderPad extends AbstractComponent<Void> {
this.type = type; this.type = type;
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
@@ -86,13 +86,11 @@ public class TraceCut extends AbstractComponent<Void> {
this.point.setLocation(point); this.point.setLocation(point);
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
} }
@Deprecated
@Override @Override
public void setValue(Void value) { public void setValue(Void value) {
} }
@@ -124,7 +122,6 @@ public class TraceCut extends AbstractComponent<Void> {
this.borderColor = borderColor; this.borderColor = borderColor;
} }
@Deprecated
@Override @Override
public String getName() { public String getName() {
return super.getName(); return super.getName();
@@ -159,7 +159,6 @@ public class BOM extends AbstractComponent<Void> {
this.size = size; this.size = size;
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
@@ -112,7 +112,6 @@ public class Image extends AbstractTransparentComponent<Void> {
return super.getName(); return super.getName();
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
@@ -128,7 +128,6 @@ public class Label extends AbstractComponent<Void> {
return super.getName(); return super.getName();
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
@@ -96,7 +96,6 @@ public class ProjectInformation extends AbstractComponent<Void> {
this.point.setLocation(point); this.point.setLocation(point);
} }
@Deprecated
@Override @Override
public Void getValue() { public Void getValue() {
return null; return null;
@@ -118,7 +118,6 @@ public class RadialElectrolytic extends AbstractLeadedComponent<Capacitance> {
return null; return null;
} }
@Deprecated
@Override @Override
public Size getWidth() { public Size getWidth() {
return super.getWidth(); return super.getWidth();