#2 setMaxX, setMinY etc

closed
Dr JTS
None
5
2012-04-03
2009-03-30
Anonymous
No

public class Envelope extends com.vividsolutions.jts.geom.Envelope {

public Envelope() { super(); }
public Envelope(double x1, double x2, double y1, double y2) {
super(x1, x2, y1, y2);
}

public void setMaxX( double maxX ) {
if( maxX > this.maxx )
this.maxx = maxX;
}

public void setMaxY( double maxY ) {
if( maxY > this.maxy )
this.maxy = maxY;
}

public void setMinX( double minX ) {
if( minX < this.minx )
this.minx = minX;
}

public void setMinY( double minY ) {
if( minY < this.miny )
this.miny = minY;
}
}

Discussion

  • Dr JTS
    Dr JTS
    2012-04-03

    This feature is not consistent with the design goals

     
  • Dr JTS
    Dr JTS
    2012-04-03

    • assigned_to: nobody --> dr_jts
    • status: open --> closed
     
  • Dr JTS
    Dr JTS
    2012-04-03

    Envelope is intended to be an immutable value class