diff --git a/diylc/diylc-library/lib/diylc-core.jar b/diylc/diylc-library/lib/diylc-core.jar
index b879c9a5..5e8bff35 100644
Binary files a/diylc/diylc-library/lib/diylc-core.jar and b/diylc/diylc-library/lib/diylc-core.jar differ
diff --git a/diylc/diylc-library/src/org/diylc/components/passive/TransformerCoil.java b/diylc/diylc-library/src/org/diylc/components/passive/TransformerCoil.java
index 9acb8e3a..fcd6309c 100644
--- a/diylc/diylc-library/src/org/diylc/components/passive/TransformerCoil.java
+++ b/diylc/diylc-library/src/org/diylc/components/passive/TransformerCoil.java
@@ -24,9 +24,13 @@ import org.diylc.core.measures.Size;
import org.diylc.core.measures.SizeUnit;
import org.diylc.utils.Constants;
-@ComponentDescriptor(name = "Transformer Coil Symbol", author = "Branislav Stojkovic", category = "Schematics",
- instanceNamePrefix = "L", description = "Transformer coil symbol. Use multiple instances together with \"Transformer Core Symbol\"
to draw transformer schematics.", stretchable = false,
- zOrder = IDIYComponent.COMPONENT, rotatable = true, keywordPolicy = KeywordPolicy.SHOW_TAG,
+@ComponentDescriptor(
+ name = "Transformer Coil Symbol",
+ author = "Branislav Stojkovic",
+ category = "Schematics",
+ instanceNamePrefix = "L",
+ description = "Transformer coil symbol. Use multiple instances together with \"Transformer Core Symbol\"
to draw transformer schematics.",
+ stretchable = false, zOrder = IDIYComponent.COMPONENT, rotatable = true, keywordPolicy = KeywordPolicy.SHOW_TAG,
keywordTag = "Schematic")
public class TransformerCoil extends AbstractComponent {
@@ -34,15 +38,15 @@ public class TransformerCoil extends AbstractComponentto draw transformer schematics.",
- stretchable = false, zOrder = IDIYComponent.COMPONENT, rotatable = true, keywordPolicy = KeywordPolicy.SHOW_TAG,
+ stretchable = true, zOrder = IDIYComponent.COMPONENT, rotatable = true, keywordPolicy = KeywordPolicy.SHOW_TAG,
creationMethod = CreationMethod.POINT_BY_POINT, keywordTag = "Schematic")
public class TransformerCore extends AbstractComponent {
private static final long serialVersionUID = 1L;
- public static Size SPACING = new Size(0.03d, SizeUnit.in);
+ public static Size SPACING = new Size(0.025d, SizeUnit.in);
public static Color COLOR = Color.blue;
private Point[] controlPoints = new Point[] {new Point(0, 0), new Point(0, 0)};
@@ -118,10 +118,10 @@ public class TransformerCore extends AbstractComponent {
g2d.setColor(COLOR);
GeneralPath polyline = new GeneralPath();
- polyline.moveTo(width / 8, height / 2);
- polyline.curveTo(width / 8, height / 4, width * 3 / 8, height / 4, width * 3 / 8, height / 2);
- polyline.curveTo(width * 3 / 8, height / 4, width * 5 / 8, height / 4, width * 5 / 8, height / 2);
- polyline.curveTo(width * 5 / 8, height / 4, width * 7 / 8, height / 4, width * 7 / 8, height / 2);
+ polyline.moveTo(0, height * 7 / 16);
+ polyline.lineTo(width, height * 7 / 16);
+ polyline.moveTo(0, height * 9 / 16);
+ polyline.lineTo(width, height * 9 / 16);
g2d.draw(polyline);
}
diff --git a/diylc/diylc-swing/lib/diylc-core.jar b/diylc/diylc-swing/lib/diylc-core.jar
index b879c9a5..5e8bff35 100644
Binary files a/diylc/diylc-swing/lib/diylc-core.jar and b/diylc/diylc-swing/lib/diylc-core.jar differ
diff --git a/diylc/diylc-swing/library/main.jar b/diylc/diylc-swing/library/main.jar
index 0487aa44..cec52432 100644
Binary files a/diylc/diylc-swing/library/main.jar and b/diylc/diylc-swing/library/main.jar differ
diff --git a/diylc/diylc-swing/update.xml b/diylc/diylc-swing/update.xml
index 2abbe69e..4611d662 100644
--- a/diylc/diylc-swing/update.xml
+++ b/diylc/diylc-swing/update.xml
@@ -1342,6 +1342,10 @@
NEW_FEATURE
Project Cloud feature introduced with global project sharing functionality
+
+ NEW_FEATURE
+ Transformer core and coil schematic symbols added that can be used to put together custom transformer symbols
+
NEW_FEATURE
Added Public Announcements feature