mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
improve node display for single point componenets
This commit is contained in:
@@ -82,6 +82,8 @@ public class Node implements Comparable<Node> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
if (component.getControlPointCount() == 1)
|
||||||
|
return component.getName();
|
||||||
return component.getName() + "." + getDisplayName() /*+ " @ (" + component.getControlPoint(pointIndex).getX() + ":" + component.getControlPoint(pointIndex).getY() + ")"*/;
|
return component.getName() + "." + getDisplayName() /*+ " @ (" + component.getControlPoint(pointIndex).getX() + ":" + component.getControlPoint(pointIndex).getY() + ")"*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -135,11 +135,11 @@ public class GroundSymbol extends AbstractComponent<Void> {
|
|||||||
public void setControlPoint(Point point, int index) {
|
public void setControlPoint(Point point, int index) {
|
||||||
this.point.setLocation(point);
|
this.point.setLocation(point);
|
||||||
}
|
}
|
||||||
|
//
|
||||||
@Override
|
// @Override
|
||||||
public String getControlPointNodeName(int index) {
|
// public String getControlPointNodeName(int index) {
|
||||||
return getName();
|
// return getName();
|
||||||
}
|
// }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCommonPointName(int pointIndex) {
|
public String getCommonPointName(int pointIndex) {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user