mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 23:45:17 -04:00
added small switch icons to the fet shapes
This commit is contained in:
parent
aa6cefabed
commit
48d566fdc4
@ -66,7 +66,7 @@ public class Style {
|
||||
/**
|
||||
* Used to draw the pin description text
|
||||
*/
|
||||
public static final Style SHAPE_PIN = new Style(LINETHICK, false, Color.GRAY, 18, null);
|
||||
public static final Style SHAPE_PIN = new Style(LINETHIN, false, Color.GRAY, 18, null);
|
||||
/**
|
||||
* Used to draw the pin description text
|
||||
*/
|
||||
|
@ -96,13 +96,13 @@ public class NFETShape implements Shape {
|
||||
public static void drawSwitch(Graphic graphic, Relay fet) {
|
||||
boolean closed = fet.isClosed();
|
||||
if (closed) {
|
||||
graphic.drawLine(new Vector(SIZE + SIZE2, 0), new Vector(SIZE + SIZE2, SIZE), Style.THIN);
|
||||
graphic.drawLine(new Vector(SIZE + SIZE2, 0), new Vector(SIZE + SIZE2, SIZE), Style.SHAPE_PIN);
|
||||
} else {
|
||||
graphic.drawLine(new Vector(SIZE + SIZE2, 0), new Vector(SIZE + SIZE2, SIZE2 / 2), Style.THIN);
|
||||
graphic.drawLine(new Vector(SIZE + SIZE2, 0), new Vector(SIZE + SIZE2, SIZE2 / 2), Style.SHAPE_PIN);
|
||||
graphic.drawPolygon(new Polygon(false)
|
||||
.add(SIZE + SIZE2 / 2, SIZE2 / 2)
|
||||
.add(SIZE + SIZE2, SIZE - SIZE2 / 2)
|
||||
.add(SIZE + SIZE2, SIZE), Style.THIN);
|
||||
.add(SIZE + SIZE2, SIZE), Style.SHAPE_PIN);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user