mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
improve pentode symbol. remove unused code
This commit is contained in:
Binary file not shown.
@@ -198,7 +198,5 @@ public abstract class AbstractTubeSymbol extends AbstractComponent<String> {
|
||||
*/
|
||||
protected abstract Shape[] getBody();
|
||||
|
||||
protected abstract Point getTextLocation();
|
||||
|
||||
protected abstract void updateControlPoints();
|
||||
}
|
||||
|
||||
@@ -151,12 +151,6 @@ public class DiodeSymbol extends AbstractTubeSymbol {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Point getTextLocation() {
|
||||
int pinSpacing = (int) PIN_SPACING.convertToPixels();
|
||||
return new Point(controlPoints[0].x + pinSpacing * 5, controlPoints[0].y + pinSpacing * 2);
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Directly heated")
|
||||
public boolean getDirectlyHeated() {
|
||||
return directlyHeated;
|
||||
|
||||
@@ -103,9 +103,8 @@ public class PentodeSymbol extends AbstractTubeSymbol {
|
||||
polyline.lineTo(x + pinSpacing * 5, y - pinSpacing * 5 / 4);
|
||||
polyline.curveTo(x + pinSpacing * 21 / 4, y - pinSpacing * 5 / 4, x + pinSpacing * 21 / 4, y - pinSpacing * 3
|
||||
/ 4, x + pinSpacing * 5, y - pinSpacing * 3 / 4);
|
||||
polyline.moveTo(x + pinSpacing * 5, y - pinSpacing * 3 / 4);
|
||||
polyline.lineTo(x + pinSpacing * 5, y + pinSpacing * 3 / 8);
|
||||
polyline.lineTo(x + pinSpacing * 4, y + pinSpacing * 3 / 8);
|
||||
polyline.moveTo(x + pinSpacing * 5, y - pinSpacing * 3 / 4);
|
||||
polyline.curveTo(x + pinSpacing * 5, y + pinSpacing * 3 / 8, x + pinSpacing * 5, y + pinSpacing * 3 / 8, x + pinSpacing * 4, y + pinSpacing * 3 / 8);
|
||||
}
|
||||
|
||||
// plate
|
||||
@@ -199,12 +198,6 @@ public class PentodeSymbol extends AbstractTubeSymbol {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Point getTextLocation() {
|
||||
int pinSpacing = (int) PIN_SPACING.convertToPixels();
|
||||
return new Point(controlPoints[0].x + pinSpacing * 5, controlPoints[0].y + pinSpacing);
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Suppressor grid")
|
||||
public boolean getExposeSuppressorGrid() {
|
||||
return exposeSuppressorGrid;
|
||||
|
||||
@@ -167,12 +167,6 @@ public class TriodeSymbol extends AbstractTubeSymbol {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Point getTextLocation() {
|
||||
int pinSpacing = (int) PIN_SPACING.convertToPixels();
|
||||
return new Point(controlPoints[0].x + pinSpacing * 5, controlPoints[0].y + pinSpacing * 2);
|
||||
}
|
||||
|
||||
@EditableProperty(name = "Directly heated")
|
||||
public boolean getDirectlyHeated() {
|
||||
return directlyHeated;
|
||||
|
||||
Reference in New Issue
Block a user