Increased padding between schematic symbols and their labels

This commit is contained in:
bancika
2017-05-10 16:23:02 +02:00
parent 0e04d168e7
commit a75c9830e5
4 changed files with 6 additions and 2 deletions
@@ -43,9 +43,9 @@ public abstract class AbstractSchematicLeadedSymbol<T> extends AbstractLeadedCom
@Override
protected int calculateLabelYCoordinate(Rectangle2D shapeRect, Rectangle2D textRect, FontMetrics fontMetrics) {
if (labelPosition == LabelPosition.ABOVE) {
return -1;
return -5;
} else {
return (int) (shapeRect.getHeight() + textRect.getHeight() - 1);
return (int) (shapeRect.getHeight() + textRect.getHeight());
}
}