|
@@ -289,13 +289,15 @@ public class DTreeView<N extends DTreeNode<N>> implements DComponent {
|
289
|
289
|
int baseY = (int)(bounds.y + style.padding + index * (fontMetrics.getAscent() + fontMetrics.getDescent() + style.rowSpacing));
|
290
|
290
|
|
291
|
291
|
if (collapseIcon != null) {
|
292
|
|
- collapseIcon.setTransform(DTransform2D.translate(
|
|
292
|
+ collapseIcon.setTransform(DTransform2D.scaleAndTranslate(
|
293
|
293
|
baseX,
|
294
|
|
- baseY + fontMetrics.getAscent() + fontMetrics.getDescent() - icon.getNominalHeight()));
|
|
294
|
+ baseY + fontMetrics.getAscent() + fontMetrics.getDescent() - icon.getNominalHeight(),
|
|
295
|
+ iconScale));
|
295
|
296
|
}
|
296
|
|
- nodeIcon.setTransform(DTransform2D.translate(
|
|
297
|
+ nodeIcon.setTransform(DTransform2D.scaleAndTranslate(
|
297
|
298
|
baseX + icon.getNominalWidth() + style.iconTextSpacing,
|
298
|
|
- baseY + fontMetrics.getAscent() + fontMetrics.getDescent() - icon.getNominalHeight()));
|
|
299
|
+ baseY + fontMetrics.getAscent() + fontMetrics.getDescent() - icon.getNominalHeight(),
|
|
300
|
+ iconScale));
|
299
|
301
|
text.setPosition(
|
300
|
302
|
baseX + style.iconTextSpacing + icon.getNominalWidth() + style.iconTextSpacing + node.getIcon().getNominalWidth(),
|
301
|
303
|
baseY + fontMetrics.getAscent());
|