Changeset 2702


Ignore:
Timestamp:
04/27/07 13:52:05 (13 years ago)
Author:
sorber
Message:

Made OverlayArrow width a function of length.

Location:
trunk/loci/visbio
Files:
2 edited

Legend:

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

    r2667 r2702  
    6565  public DataImpl getData() { 
    6666    if (!hasData()) return null; // dont render zero length arrows 
    67     float padding = 0.02f * overlay.getScalingValue(); 
    6867    double xx = x2 - x1; 
    6968    double yy = y2 - y1; 
    7069    double dist = Math.sqrt(xx * xx + yy * yy); 
    71     double mult = padding / dist; 
     70    double mult = 0.1; // something like aspect ratio 
     71 
    7272    float qx = (float) (mult * xx); 
    7373    float qy = (float) (mult * yy); 
  • trunk/loci/visbio/util/OverlayUtil.java

    r2697 r2702  
    113113    float y2 = obj.getY2(); 
    114114    // compute corners of arrow tail 
    115     float padding = 0.02f * overlay.getScalingValue(); 
    116115    double xx = x2 - x1; 
    117116    double yy = y2 - y1; 
    118117    double dist = Math.sqrt(xx * xx + yy * yy); 
    119     double mult = padding / dist; 
     118    double mult = 0.1; // something like aspect ratio 
    120119    float qx = (float) (mult * xx); 
    121120    float qy = (float) (mult * yy); 
Note: See TracChangeset for help on using the changeset viewer.