Set identity transform for Graphics2D in reDraw function

This commit is contained in:
wyq 2022-03-14 11:44:26 +08:00
parent 2cdea897e2
commit aeccc671d0
2 changed files with 2 additions and 2 deletions

View File

@ -34,6 +34,7 @@ import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.File;
@ -463,6 +464,7 @@ public class MapPlot extends AbstractPlot2D implements IWebMapPanel {
@Override
public void reDraw(Graphics2D graphics2D, int width, int height) {
if (this.parent != null) {
graphics2D.setTransform(new AffineTransform());
this.parent.paintGraphics(graphics2D, width, height);
}
}

View File

@ -22,13 +22,11 @@
<OpenedFile File="D:\Working\MIScript\Jython\mis\plot_types\3d\jogl\plot\traj_3d.py"/>
<OpenedFile File="D:\Working\MIScript\Jython\mis\plot_types\3d\3d_earth\CALIPSO_L1_3d_axis.py"/>
<OpenedFile File="D:\Working\MIScript\Jython\mis\map\webmap\plotweb_1.py"/>
<OpenedFile File="D:\Working\MIScript\Jython\mis\satellite\FY\FY2E_PRE_proj.py"/>
</OpenedFiles>
<RecentFiles>
<RecentFile File="D:\Working\MIScript\Jython\mis\plot_types\3d\jogl\plot\traj_3d.py"/>
<RecentFile File="D:\Working\MIScript\Jython\mis\plot_types\3d\3d_earth\CALIPSO_L1_3d_axis.py"/>
<RecentFile File="D:\Working\MIScript\Jython\mis\map\webmap\plotweb_1.py"/>
<RecentFile File="D:\Working\MIScript\Jython\mis\satellite\FY\FY2E_PRE_proj.py"/>
</RecentFiles>
</File>
<Font>