mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
better d&d of control points
doc
This commit is contained in:
+2
-1
@@ -127,7 +127,7 @@ public abstract class AbstractLeadedDIYComponent<T> implements IDIYComponent<T>
|
||||
(int) (shapeRect.height - textRect.getHeight()) / 2 + fontMetrics.getAscent());
|
||||
}
|
||||
|
||||
@EditableProperty
|
||||
@EditableProperty(defaultable = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -162,6 +162,7 @@ public abstract class AbstractLeadedDIYComponent<T> implements IDIYComponent<T>
|
||||
return result;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ public class DIL_IC implements IDIYComponent<String> {
|
||||
new Point((int) (3 * Constants.GRID), (int) (2 * Constants.GRID)),
|
||||
new Point((int) (3 * Constants.GRID), (int) (3 * Constants.GRID)) };
|
||||
|
||||
@EditableProperty
|
||||
@EditableProperty(defaultable = false)
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@ import org.diylc.core.measures.Size;
|
||||
import org.diylc.core.measures.SizeUnit;
|
||||
|
||||
@ComponentDescriptor(name = "Mock", author = "bancika", category = "Sample", instanceNamePrefix = "M", desciption = "test")
|
||||
public class MockDIYComponent implements IDIYComponent<Object> {
|
||||
public class MockDIYComponent implements IDIYComponent<Capacitance> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@@ -82,7 +82,7 @@ public class MockDIYComponent implements IDIYComponent<Object> {
|
||||
return c;
|
||||
}
|
||||
|
||||
public void setC(Capacitance c) {
|
||||
public void setValue(Capacitance c) {
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user