float
coordinates instead of int
coordinatesorg.mdiutil.geom.Polygon2D
except that the figure is not closed. This kind of class does not exist in the Java2D APItrue
argument)AffineTransform tr = AffineTransform.getScaleInstance(scale, scale); Graphics2DWrapper wrapper = new Graphics2DWrapper(g2d, tr);or:
Graphics2DWrapper wrapper = new Graphics2DWrapper(g2d, scale);or even:
Graphics2DWrapper wrapper = new Graphics2DWrapper(g2d); wrapper.setScale(scale);
Copyright 2006-2024 Herve Girod. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences