[#1533] Fix latency of freeform finset shape editor
This commit is contained in:
		
							parent
							
								
									641dafa3c1
								
							
						
					
					
						commit
						7136df5635
					
				@ -81,6 +81,7 @@ public class FreeformFinSetConfig extends FinSetConfig {
 | 
				
			|||||||
	private Point dragPoint = null;
 | 
						private Point dragPoint = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	private FinPointFigure figure = null;
 | 
						private FinPointFigure figure = null;
 | 
				
			||||||
 | 
						private ScaleScrollPane figurePane = null;
 | 
				
			||||||
	private ScaleSelector selector;
 | 
						private ScaleSelector selector;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public FreeformFinSetConfig(OpenRocketDocument d, RocketComponent component, JDialog parent) {
 | 
						public FreeformFinSetConfig(OpenRocketDocument d, RocketComponent component, JDialog parent) {
 | 
				
			||||||
@ -219,7 +220,7 @@ public class FreeformFinSetConfig extends FinSetConfig {
 | 
				
			|||||||
		
 | 
							
 | 
				
			||||||
		// Create the figure
 | 
							// Create the figure
 | 
				
			||||||
		figure = new FinPointFigure(finset);
 | 
							figure = new FinPointFigure(finset);
 | 
				
			||||||
		ScaleScrollPane figurePane = new FinPointScrollPane( figure);
 | 
							figurePane = new FinPointScrollPane( figure);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// Create the table
 | 
							// Create the table
 | 
				
			||||||
		tableModel = new FinPointTableModel();
 | 
							tableModel = new FinPointTableModel();
 | 
				
			||||||
@ -393,8 +394,9 @@ public class FreeformFinSetConfig extends FinSetConfig {
 | 
				
			|||||||
            figure.updateFigure();
 | 
					            figure.updateFigure();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		revalidate();
 | 
							if (figurePane != null) {
 | 
				
			||||||
		repaint();
 | 
								figurePane.revalidate();
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	private class FinPointScrollPane extends ScaleScrollPane {
 | 
						private class FinPointScrollPane extends ScaleScrollPane {
 | 
				
			||||||
@ -408,8 +410,6 @@ public class FreeformFinSetConfig extends FinSetConfig {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		@Override
 | 
							@Override
 | 
				
			||||||
		public void mousePressed(MouseEvent event) {
 | 
							public void mousePressed(MouseEvent event) {
 | 
				
			||||||
			int mods = event.getModifiersEx();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			final FreeformFinSet finset = (FreeformFinSet) component;
 | 
								final FreeformFinSet finset = (FreeformFinSet) component;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			final int pressIndex = getPoint(event);
 | 
								final int pressIndex = getPoint(event);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user