Changeset 2123


Ignore:
Timestamp:
01/18/07 11:50:32 (13 years ago)
Author:
sorber
Message:

Removed auto-padding feature. Zero-area objects now disappear on mouseUp.

Location:
trunk/loci/visbio/overlays
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/overlays/BoxTool.java

    r2095 r2123  
    6161    if (box == null) return; 
    6262    box.setDrawing(false); 
     63 
     64    if (box.getX() == box.getX2() || box.getY() == box.getY2()) { 
     65      overlay.removeObject(box); 
     66    } 
     67 
    6368    box = null; 
    6469    overlay.notifyListeners(new TransformEvent(overlay)); 
  • trunk/loci/visbio/overlays/LineTool.java

    r2095 r2123  
    5959    if (line == null) return; 
    6060    line.setDrawing(false); 
     61    if (line.getX() == line.getX2() && line.getY() == line.getY2()) { 
     62      overlay.removeObject(line); 
     63    } 
    6164    line = null; 
    6265    overlay.notifyListeners(new TransformEvent(overlay)); 
  • trunk/loci/visbio/overlays/OvalTool.java

    r2095 r2123  
    6161    if (oval == null) return; 
    6262    oval.setDrawing(false); 
     63 
     64    if (oval.getX() == oval.getX2() || oval.getY() == oval.getY2()) { 
     65      overlay.removeObject(oval); 
     66    } 
     67 
    6368    oval = null; 
    6469    overlay.notifyListeners(new TransformEvent(overlay)); 
  • trunk/loci/visbio/overlays/OverlayObject.java

    r2096 r2123  
    255255    } 
    256256    computeGridParameters(); 
    257   } 
    258  
    259   // TEMP // TEMP // TEMP 
    260   public float[] getGridParameters() { 
    261     float[] retvals = { 
    262       xGrid1, yGrid1, xGrid2, yGrid2, xGrid3, yGrid3, xGrid4, yGrid4 
    263     }; 
    264     return retvals; 
    265257  } 
    266258 
Note: See TracChangeset for help on using the changeset viewer.