/** * 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 Orthographic)) { return false; } Orthographic oo = (Orthographic) proj; return ((this.getOriginLat() == oo.getOriginLat()) && (this.getOriginLon() == oo.getOriginLon()) && this.defaultMapArea.equals(oo.defaultMapArea)); }
/** copy constructor - avoid clone !! */ public ProjectionImpl constructCopy() { return new Orthographic( getOriginLat(), getOriginLon(), R); }
/** * Clone this projection. * * @return Clone of this */ public Object clone() { Orthographic cl = (Orthographic) super.clone(); cl.origin = new LatLonPointImpl(getOriginLat(), getOriginLon()); return cl; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Orthographic(getOriginLat(), getOriginLon(), R); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Orthographic(getOriginLat(), getOriginLon(), R); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }
@Override public ProjectionImpl constructCopy() { ProjectionImpl result = new Orthographic(getOriginLat(), getOriginLon(), R); result.setDefaultMapArea(defaultMapArea); result.setName(name); return result; }