mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 16:34:47 -04:00
minor changes to ieee shapes
This commit is contained in:
parent
e14b44bfeb
commit
ac34655662
@ -21,11 +21,11 @@ public class IEEEAndShape extends IEEEGenericShape {
|
||||
private static Polygon createPoly() {
|
||||
return new Polygon(true)
|
||||
.add(SIZE + SIZE2, SIZE * 2 + SIZE2)
|
||||
.add(0, SIZE * 2 + SIZE2)
|
||||
.add(0, -SIZE2)
|
||||
.add(1, SIZE * 2 + SIZE2)
|
||||
.add(1, -SIZE2)
|
||||
.add(SIZE + SIZE2, -SIZE2)
|
||||
.add(new Vector(SIZE*2, -SIZE2),new Vector(SIZE*3, 0),new Vector(SIZE*3, SIZE))
|
||||
.add(new Vector(SIZE*3, SIZE*2),new Vector(SIZE*2, SIZE*2+SIZE2),new Vector(SIZE+SIZE2, SIZE*2+SIZE2));
|
||||
.add(new Vector(SIZE*2, -SIZE2),new Vector(SIZE*3, 0),new Vector(SIZE*3-1, SIZE))
|
||||
.add(new Vector(SIZE*3-1, SIZE*2),new Vector(SIZE*2, SIZE*2+SIZE2),new Vector(SIZE+SIZE2, SIZE*2+SIZE2));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -59,9 +59,9 @@ public abstract class IEEEGenericShape implements Shape {
|
||||
drawIEEE(new GraphicTransform(graphic, v -> v.add(0, offs)));
|
||||
|
||||
if (offs > 0) {
|
||||
graphic.drawLine(new Vector(0, 0), new Vector(0, offs - SIZE2), Style.NORMAL);
|
||||
graphic.drawLine(new Vector(1, 0), new Vector(1, offs - SIZE2 - 1), Style.NORMAL);
|
||||
int h = (inputs.length / 2) * SIZE * 2;
|
||||
graphic.drawLine(new Vector(0, h), new Vector(0, h - offs + SIZE2), Style.NORMAL);
|
||||
graphic.drawLine(new Vector(1, h), new Vector(1, h - offs + SIZE2 + 1), Style.NORMAL);
|
||||
}
|
||||
|
||||
if (invert) {
|
||||
|
@ -28,7 +28,7 @@ public class IEEEOrShape extends IEEEGenericShape {
|
||||
.add(SIZE2, -SIZE2)
|
||||
.add(new Vector(SIZE, -SIZE2),
|
||||
new Vector(SIZE * 2, 0),
|
||||
new Vector(SIZE * 3, SIZE))
|
||||
new Vector(SIZE * 3-1, SIZE))
|
||||
.add(new Vector(SIZE * 2, SIZE * 2),
|
||||
new Vector(SIZE, SIZE * 2 + SIZE2),
|
||||
new Vector(SIZE2, SIZE * 2 + SIZE2));
|
||||
|
@ -21,16 +21,16 @@ public class IEEEXOrShape extends IEEEGenericShape {
|
||||
|
||||
private static Polygon createPoly() {
|
||||
return new Polygon(true)
|
||||
.add(SIZE2, SIZE * 2 + SIZE2)
|
||||
.add(SIZE2+1, SIZE * 2 + SIZE2)
|
||||
.add(new Vector(SIZE, SIZE * 2),
|
||||
new Vector(SIZE, 0),
|
||||
new Vector(SIZE2, -SIZE2))
|
||||
.add(new Vector(SIZE, -SIZE2),
|
||||
new Vector(SIZE * 2, 0),
|
||||
new Vector(SIZE * 3, SIZE))
|
||||
new Vector(SIZE * 3-1, SIZE))
|
||||
.add(new Vector(SIZE * 2, SIZE * 2),
|
||||
new Vector(SIZE, SIZE * 2 + SIZE2),
|
||||
new Vector(SIZE2, SIZE * 2 + SIZE2));
|
||||
new Vector(SIZE2+1, SIZE * 2 + SIZE2));
|
||||
}
|
||||
|
||||
private static Polygon createPoly2() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user