<arguments>\r
</arguments>\r
</buildCommand>\r
- <buildCommand>\r
- <name>org.eclipse.m2e.core.maven2Builder</name>\r
- <arguments>\r
- </arguments>\r
- </buildCommand>\r
</buildSpec>\r
<natures>\r
- <nature>org.eclipse.m2e.core.maven2Nature</nature>\r
<nature>org.eclipse.pde.PluginNature</nature>\r
<nature>org.eclipse.jdt.core.javanature</nature>\r
</natures>\r
import java.util.function.ToIntFunction;
import org.simantics.district.network.ui.styles.DistrictNetworkHoverInfoStyle;
-import org.simantics.maps.MapScalingTransform;
import org.simantics.scenegraph.INode;
import org.simantics.scenegraph.NodeException;
import org.simantics.scenegraph.ParentNode;
private List<Tuple3> labels;
- private Font font = new Font(
- Font.SANS_SERIF,
- Font.PLAIN,
- (int)(DPIUtil.upscale(9) * MapScalingTransform.getScaleY() + 0.5));
+ private Font font = new Font(Font.SANS_SERIF, Font.PLAIN, DPIUtil.upscale(14));
@SuppressWarnings("unused")
private Point2D origin;
g.translate(mousePosition.getX(), mousePosition.getY());
//g.translate(origin.getX(), origin.getY());
- double scale = DPIUtil.upscale( 1.25 / GeometryUtils.getScale(g.getTransform()) );
+ double scale = 1.0 / GeometryUtils.getScale(g.getTransform());
g.scale(scale, scale);
-
g.setFont(font);
FontMetrics fm = g.getFontMetrics();