fixed measure editing

fixed trace lead color
This commit is contained in:
bancika
2011-01-14 13:57:51 +00:00
parent 628d370019
commit 1f5fa8ae14
8 changed files with 44 additions and 18 deletions
@@ -32,12 +32,16 @@ public class CopperTrace extends AbstractLeadedComponent<Void> {
}
@Override
@EditableProperty(name = "Color")
public Color getLeadColor(ComponentState componentState) {
protected Color getLeadColor(ComponentState componentState) {
return componentState == ComponentState.SELECTED
|| componentState == ComponentState.DRAGGING ? SELECTION_COLOR : leadColor;
}
@EditableProperty(name = "Color")
public Color getLeadColor() {
return leadColor;
}
public void setLeadColor(Color leadColor) {
this.leadColor = leadColor;
}
@@ -55,4 +55,15 @@ public class CurvedTrace extends AbstractCurvedComponent<Void> {
@Override
public void setValue(Void value) {
}
@Deprecated
@Override
public Byte getAlpha() {
return super.getAlpha();
}
@Override
public void setAlpha(Byte alpha) {
super.setAlpha(alpha);
}
}