1 package jimm.datavision.gui; 2 import jimm.datavision.Section; 3 4 10 public class PreStretchInfo { 11 12 public jimm.datavision.field.Rectangle origBounds; 13 public java.awt.Point startMouseScreenPos; 14 public java.awt.Rectangle sectionBounds; 15 public java.awt.Rectangle screenBounds; 16 17 23 PreStretchInfo(FieldWidget fw, java.awt.Point mouseScreenPos) { 24 jimm.datavision.field.Rectangle b = fw.getField().getBounds(); 25 26 origBounds = 28 new jimm.datavision.field.Rectangle(b.x, b.y, b.width, b.height); 29 30 Section sect = fw.getSectionWidget().getSection(); 32 sectionBounds = new java.awt.Rectangle (0, 0, (int)sect.getWidth(), 33 (int)sect.getMinHeight()); 34 35 java.awt.Point screenPos = fw.getComponent().getLocationOnScreen(); 37 screenBounds = new java.awt.Rectangle (screenPos.x, screenPos.y, 38 (int)b.width, (int)b.height); 39 40 startMouseScreenPos = mouseScreenPos; 41 } 42 } 43 | Popular Tags |