📄 pcb.java
字号:
ppinNodes[3].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, ppinNodes[3], new ArcProto [] {SignalArcs[3], PowerArcs[3]}, "power-4", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); ppinNodes[3].setFunction(PrimitiveNode.Function.PIN); ppinNodes[3].setWipeOn1or2(); ppinNodes[3].setSquare(); /** Power-5-Pin */ ppinNodes[4] = PrimitiveNode.newInstance0("Power-5-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(P3_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); ppinNodes[4].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, ppinNodes[4], new ArcProto [] {SignalArcs[4], PowerArcs[4]}, "power-5", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); ppinNodes[4].setFunction(PrimitiveNode.Function.PIN); ppinNodes[4].setWipeOn1or2(); ppinNodes[4].setSquare(); /** Power-6-Pin */ ppinNodes[5] = PrimitiveNode.newInstance0("Power-6-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(P4_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); ppinNodes[5].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, ppinNodes[5], new ArcProto [] {SignalArcs[5], PowerArcs[5]}, "power-6", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); ppinNodes[5].setFunction(PrimitiveNode.Function.PIN); ppinNodes[5].setWipeOn1or2(); ppinNodes[5].setSquare(); /** Power-7-Pin */ ppinNodes[6] = PrimitiveNode.newInstance0("Power-7-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(P5_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); ppinNodes[6].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, ppinNodes[6], new ArcProto [] {SignalArcs[6], PowerArcs[6]}, "power-7", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); ppinNodes[6].setFunction(PrimitiveNode.Function.PIN); ppinNodes[6].setWipeOn1or2(); ppinNodes[6].setSquare(); /** Power-8-Pin */ ppinNodes[7] = PrimitiveNode.newInstance0("Power-8-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(P6_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); ppinNodes[7].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, ppinNodes[7], new ArcProto [] {SignalArcs[7], PowerArcs[7]}, "power-8", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); ppinNodes[7].setFunction(PrimitiveNode.Function.PIN); ppinNodes[7].setWipeOn1or2(); ppinNodes[7].setSquare(); PrimitiveNode[] tspinNodes = new PrimitiveNode[2]; PrimitiveNode[] bspinNodes = new PrimitiveNode[2]; /** Top-Silk-Pin */ tspinNodes[0] = PrimitiveNode.newInstance0("Top-Silk-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(T_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); tspinNodes[0].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, tspinNodes[0], new ArcProto [] {Top_Silk_arc}, "top-silk", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); tspinNodes[0].setFunction(PrimitiveNode.Function.PIN); tspinNodes[0].setWipeOn1or2(); tspinNodes[0].setSquare(); /** Bottom-Silk-Pin */ bspinNodes[0] = PrimitiveNode.newInstance0("Bottom-Silk-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(B_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); bspinNodes[0].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, bspinNodes[0], new ArcProto [] {Bottom_Silk_arc}, "bottom-silk", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); bspinNodes[0].setFunction(PrimitiveNode.Function.PIN); bspinNodes[0].setWipeOn1or2(); bspinNodes[0].setSquare(); /** Top-Solder-Pin */ tspinNodes[1] = PrimitiveNode.newInstance0("Top-Solder-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(T0_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); tspinNodes[1].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, tspinNodes[1], new ArcProto [] {Top_Solder_arc}, "top-solder", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); tspinNodes[1].setFunction(PrimitiveNode.Function.PIN); tspinNodes[1].setWipeOn1or2(); tspinNodes[1].setSquare(); /** Bottom-Solder-Pin */ bspinNodes[1] = PrimitiveNode.newInstance0("Bottom-Solder-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(B0_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); bspinNodes[1].addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, bspinNodes[1], new ArcProto [] {Bottom_Solder_arc}, "bottom-solder", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); bspinNodes[1].setFunction(PrimitiveNode.Function.PIN); bspinNodes[1].setWipeOn1or2(); bspinNodes[1].setSquare(); /** Drill-Pin */ PrimitiveNode dp_node = PrimitiveNode.newInstance0("Drill-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(D_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); dp_node.addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, dp_node, new ArcProto [] {SignalArcs[0], SignalArcs[1], SignalArcs[2], SignalArcs[3], SignalArcs[4], SignalArcs[5], SignalArcs[6], SignalArcs[7]}, "drill", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); dp_node.setFunction(PrimitiveNode.Function.PIN); dp_node.setWipeOn1or2(); dp_node.setSquare(); /** NonPlated-Drill-Pin */ PrimitiveNode ndp_node = PrimitiveNode.newInstance0("NonPlated-Drill-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(D0_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); ndp_node.addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, ndp_node, new ArcProto [] {}, "nondrill", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); ndp_node.setFunction(PrimitiveNode.Function.PIN); ndp_node.setWipeOn1or2(); ndp_node.setSquare(); /** Engineering-Drawing-Pin */ PrimitiveNode edp_node = PrimitiveNode.newInstance0("Engineering-Drawing-Pin", this, 1.25, 1.25, new Technology.NodeLayer [] { new Technology.NodeLayer(D1_lay, 0, Poly.Type.DISC, Technology.NodeLayer.POINTS, box_1) }); edp_node.addPrimitivePorts(new PrimitivePort[] { PrimitivePort.newInstance(this, edp_node, new ArcProto [] {Drawing_arc}, "engineering", 0,180, 0, PortCharacteristic.UNKNOWN, EdgeH.makeCenter(), EdgeV.makeCenter(), EdgeH.makeCenter(), EdgeV.makeCenter()) }); edp_node.setFunction(PrimitiveNode.Function.PIN); edp_node.setWipeOn1or2(); edp_node.setSquare(); PrimitiveNode[] snNodes = new PrimitiveNode[8];// /** Signal-1-Node */// snNodes[0] = PrimitiveNode.newInstance("Signal-1-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[0].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[0], new ArcProto [] {SignalArcs[0], PowerArcs[0]}, "signal-1", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[0].setFunction(PrimitiveNode.Function.NODE);// snNodes[0].setHoldsOutline();// snNodes[0].setSpecialType(PrimitiveNode.POLYGONAL);//// /** Signal-2-Node */// snNodes[1] = PrimitiveNode.newInstance("Signal-2-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S0_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[1].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[1], new ArcProto [] {SignalArcs[1], PowerArcs[1]}, "signal-2", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[1].setFunction(PrimitiveNode.Function.NODE);// snNodes[1].setHoldsOutline();// snNodes[1].setSpecialType(PrimitiveNode.POLYGONAL);//// /** Signal-3-Node */// snNodes[2] = PrimitiveNode.newInstance("Signal-3-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S1_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[2].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[2], new ArcProto [] {SignalArcs[2], PowerArcs[2]}, "signal-3", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[2].setFunction(PrimitiveNode.Function.NODE);// snNodes[2].setHoldsOutline();// snNodes[2].setSpecialType(PrimitiveNode.POLYGONAL);//// /** Signal-4-Node */// snNodes[3] = PrimitiveNode.newInstance("Signal-4-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S2_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[3].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[3], new ArcProto [] {SignalArcs[3], PowerArcs[3]}, "signal-4", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[3].setFunction(PrimitiveNode.Function.NODE);// snNodes[3].setHoldsOutline();// snNodes[3].setSpecialType(PrimitiveNode.POLYGONAL);//// /** Signal-5-Node */// snNodes[4] = PrimitiveNode.newInstance("Signal-5-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S3_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[4].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[4], new ArcProto [] {SignalArcs[4], PowerArcs[4]}, "signal-5", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[4].setFunction(PrimitiveNode.Function.NODE);// snNodes[4].setHoldsOutline();// snNodes[4].setSpecialType(PrimitiveNode.POLYGONAL);//// /** Signal-6-Node */// snNodes[5] = PrimitiveNode.newInstance("Signal-6-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S4_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[5].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[5], new ArcProto [] {SignalArcs[5], PowerArcs[5]}, "signal-6", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[5].setFunction(PrimitiveNode.Function.NODE);// snNodes[5].setHoldsOutline();// snNodes[5].setSpecialType(PrimitiveNode.POLYGONAL);//// /** Signal-7-Node */// snNodes[6] = PrimitiveNode.newInstance("Signal-7-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S5_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[6].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[6], new ArcProto [] {SignalArcs[6], PowerArcs[6]}, "signal-7", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[6].setFunction(PrimitiveNode.Function.NODE);// snNodes[6].setHoldsOutline();// snNodes[6].setSpecialType(PrimitiveNode.POLYGONAL);//// /** Signal-8-Node */// snNodes[7] = PrimitiveNode.newInstance("Signal-8-Node", this, 1.25, 1.25, null,// new Technology.NodeLayer []// {// new Technology.NodeLayer(S6_lay, 0, Poly.Type.FILLED, Technology.NodeLayer.BOX, box_2)// });// snNodes[7].addPrimitivePorts(new PrimitivePort[]// {// PrimitivePort.newInstance(this, snNodes[7], new ArcProto [] {SignalArcs[7], PowerArcs[7]}, "signal-8", 0,180, 0, PortCharacteristic.UNKNOWN,// EdgeH.makeLeftEdge(), EdgeV.makeBottomEdge(), EdgeH.makeRightEdge(), EdgeV.makeTopEdge())// });// snNodes[7].setFunction(PrimitiveNode.Function.NODE);// snNodes[7].setHoldsOutline();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -