/** * Clone this projection. * * @return Clone of this */ public Object clone() { VerticalPerspectiveView cl = (VerticalPerspectiveView) super.clone(); cl.origin = new LatLonPointImpl(getOriginLat(), getOriginLon()); return cl; }
/** * Check for equality with the Object in question * * @param proj object to check * @return true if they are equal */ public boolean equals(Object proj) { if ( !(proj instanceof VerticalPerspectiveView)) { return false; } VerticalPerspectiveView oo = (VerticalPerspectiveView) proj; return (this.getOriginLat() == oo.getOriginLat()) && (this.getOriginLon() == oo.getOriginLon()) && (this.getHeight() == oo.getHeight()) && (this.defaultMapArea.equals(oo.defaultMapArea)); }
/** copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new VerticalPerspectiveView( getOriginLat(), getOriginLon(), R, getHeight(), false_east, false_north); }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new VerticalPerspectiveView(getOriginLat(), getOriginLon(), R, getHeight(), false_east, false_north); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new VerticalPerspectiveView(getOriginLat(), getOriginLon(), R, getHeight(), false_east, false_north); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new VerticalPerspectiveView(getOriginLat(), getOriginLon(), R, getHeight(), false_east, false_north); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }