mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-07 12:24:58 +10:00
add xsmall2
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<project>
|
||||
<fileVersion>
|
||||
<major>5</major>
|
||||
<minor>5</minor>
|
||||
<build>0</build>
|
||||
</fileVersion>
|
||||
<title>New Project</title>
|
||||
<author>branislavstojkovic</author>
|
||||
<width value="29.0" unit="cm"/>
|
||||
<height value="21.0" unit="cm"/>
|
||||
<gridSpacing value="0.1" unit="in"/>
|
||||
<dotSpacing>1</dotSpacing>
|
||||
<components>
|
||||
<diylc.connectivity.CopperTrace>
|
||||
<name>Trace1</name>
|
||||
<alpha>127</alpha>
|
||||
<points>
|
||||
<point x="5.9" y="3.4"/>
|
||||
<point x="6.4" y="3.4"/>
|
||||
<point x="6.15" y="3.4"/>
|
||||
</points>
|
||||
<bodyColor hex="ffffff"/>
|
||||
<borderColor hex="000000"/>
|
||||
<labelColor hex="000000"/>
|
||||
<leadColor hex="000000"/>
|
||||
<display>NAME</display>
|
||||
<flipStanding>false</flipStanding>
|
||||
<labelOriantation>Directional</labelOriantation>
|
||||
<moveLabel>false</moveLabel>
|
||||
<hideShortLeads>false</hideShortLeads>
|
||||
<thickness value="1.0" unit="mm"/>
|
||||
<layer>_1</layer>
|
||||
</diylc.connectivity.CopperTrace>
|
||||
<diylc.connectivity.CopperTrace>
|
||||
<name>Trace2</name>
|
||||
<alpha>127</alpha>
|
||||
<points>
|
||||
<point x="6.005" y="3.45"/>
|
||||
<point x="6.305" y="3.45"/>
|
||||
<point x="6.155" y="3.45"/>
|
||||
</points>
|
||||
<bodyColor hex="ffffff"/>
|
||||
<borderColor hex="000000"/>
|
||||
<labelColor hex="000000"/>
|
||||
<leadColor hex="000000"/>
|
||||
<display>NAME</display>
|
||||
<flipStanding>false</flipStanding>
|
||||
<labelOriantation>Directional</labelOriantation>
|
||||
<moveLabel>false</moveLabel>
|
||||
<hideShortLeads>false</hideShortLeads>
|
||||
<thickness value="1.0" unit="mm"/>
|
||||
<layer>_1</layer>
|
||||
</diylc.connectivity.CopperTrace>
|
||||
<diylc.connectivity.SolderPad>
|
||||
<name>Pad1</name>
|
||||
<alpha>127</alpha>
|
||||
<size value="0.09" unit="in"/>
|
||||
<color hex="000000"/>
|
||||
<point x="5.9" y="3.4"/>
|
||||
<type>ROUND</type>
|
||||
<holeSize value="0.8" unit="mm"/>
|
||||
<layer>_1</layer>
|
||||
<holeType>NTPH</holeType>
|
||||
</diylc.connectivity.SolderPad>
|
||||
<diylc.connectivity.SolderPad>
|
||||
<name>Pad2</name>
|
||||
<alpha>127</alpha>
|
||||
<size value="0.09" unit="in"/>
|
||||
<color hex="000000"/>
|
||||
<point x="6.4" y="3.4"/>
|
||||
<type>ROUND</type>
|
||||
<holeSize value="0.8" unit="mm"/>
|
||||
<layer>_1</layer>
|
||||
<holeType>NTPH</holeType>
|
||||
</diylc.connectivity.SolderPad>
|
||||
</components>
|
||||
<groups/>
|
||||
<lockedLayers/>
|
||||
<lockedComponents/>
|
||||
<hiddenLayers/>
|
||||
<font name="Dialog" size="14" style="0"/>
|
||||
</project>
|
||||
+36
-5
@@ -103,6 +103,12 @@ public class TrimmerPotentiometer extends AbstractPotentiometer {
|
||||
dx2 = 0;
|
||||
dy2 = 2 * spacing;
|
||||
break;
|
||||
case FLAT_XSMALL2:
|
||||
dx1 = spacing;
|
||||
dy1 = spacing;
|
||||
dx2 = 0;
|
||||
dy2 = spacing;
|
||||
break;
|
||||
case FLAT_SMALL2:
|
||||
dx1 = 4 * spacing;
|
||||
dy1 = spacing;
|
||||
@@ -150,6 +156,12 @@ public class TrimmerPotentiometer extends AbstractPotentiometer {
|
||||
dx2 = -2 * spacing;
|
||||
dy2 = 0;
|
||||
break;
|
||||
case FLAT_XSMALL2:
|
||||
dx1 = -spacing;
|
||||
dy1 = spacing;
|
||||
dx2 = -spacing;
|
||||
dy2 = 0;
|
||||
break;
|
||||
case FLAT_SMALL2:
|
||||
dx1 = -spacing;
|
||||
dy1 = 4 * spacing;
|
||||
@@ -197,6 +209,12 @@ public class TrimmerPotentiometer extends AbstractPotentiometer {
|
||||
dx2 = 0;
|
||||
dy2 = -2 * spacing;
|
||||
break;
|
||||
case FLAT_XSMALL2:
|
||||
dx1 = -spacing;
|
||||
dy1 = -spacing;
|
||||
dx2 = 0;
|
||||
dy2 = -spacing;
|
||||
break;
|
||||
case FLAT_SMALL2:
|
||||
dx1 = -4 * spacing;
|
||||
dy1 = -spacing;
|
||||
@@ -244,6 +262,12 @@ public class TrimmerPotentiometer extends AbstractPotentiometer {
|
||||
dx2 = 2 * spacing;
|
||||
dy2 = 0;
|
||||
break;
|
||||
case FLAT_XSMALL2:
|
||||
dx1 = spacing;
|
||||
dy1 = -spacing;
|
||||
dx2 = spacing;
|
||||
dy2 = 0;
|
||||
break;
|
||||
case FLAT_SMALL2:
|
||||
dx1 = spacing;
|
||||
dy1 = -4 * spacing;
|
||||
@@ -309,9 +333,10 @@ public class TrimmerPotentiometer extends AbstractPotentiometer {
|
||||
case FLAT_LARGE:
|
||||
case FLAT_SMALL:
|
||||
case FLAT_XSMALL:
|
||||
case FLAT_XSMALL2:
|
||||
case FLAT_XLARGE:
|
||||
case FLAT_SMALL2:
|
||||
if (getType() == TrimmerType.FLAT_XSMALL)
|
||||
if (getType() == TrimmerType.FLAT_XSMALL || getType() == TrimmerType.FLAT_XSMALL2)
|
||||
length = getClosestOdd(FLAT_SMALL_BODY_SIZE.convertToPixels());
|
||||
else if (getType() == TrimmerType.FLAT_XLARGE)
|
||||
length = getClosestOdd(FLAT_LARGE_BODY_SIZE.convertToPixels());
|
||||
@@ -540,10 +565,16 @@ public class TrimmerPotentiometer extends AbstractPotentiometer {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static enum TrimmerType {
|
||||
FLAT_SMALL("Horizontal Small 1"), FLAT_SMALL2("Horizontal Small 2"), FLAT_XSMALL("Horizontal X-Small"), FLAT_LARGE(
|
||||
"Horizontal Medium"), FLAT_XLARGE("Horizontal Large"), VERTICAL_INLINE("Vertical Inline"), VERTICAL_OFFSET(
|
||||
"Vertical Offset 1"), VERTICAL_OFFSET_BIG_GAP("Vertical Offset 2");
|
||||
public enum TrimmerType {
|
||||
FLAT_SMALL("Horizontal Small 1"),
|
||||
FLAT_SMALL2("Horizontal Small 2"),
|
||||
FLAT_XSMALL("Horizontal X-Small 1"),
|
||||
FLAT_XSMALL2("Horizontal X-Small 2"),
|
||||
FLAT_LARGE("Horizontal Medium"),
|
||||
FLAT_XLARGE("Horizontal Large"),
|
||||
VERTICAL_INLINE("Vertical Inline"),
|
||||
VERTICAL_OFFSET("Vertical Offset 1"),
|
||||
VERTICAL_OFFSET_BIG_GAP("Vertical Offset 2");
|
||||
|
||||
String label;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user