if (!last_center_pos.equals(getMapCenter()) || !is_touched) { pan_event_delay_timer.cancel(); pan_event_delay_timer = new Timer();
/** Write a PlanetObject to a stream. * @param outputStream is the output stream. * @param object is the object to write. */ public static void writePlanetObject(final OutputStream outputStream, final PlanetObject object) throws IOException { object.getPlanetModel().write(outputStream); writeObject(outputStream, object); }
@Override public void write(final OutputStream outputStream) throws IOException { writePointsList(outputStream, pointsList); testPoint1.write(outputStream); SerializableObject.writeBoolean(outputStream, testPoint1InSet); }
@Override public void write(final OutputStream outputStream) throws IOException { SerializableObject.writeDouble(outputStream, getLatitude()); SerializableObject.writeDouble(outputStream, getLongitude()); }
@Override public String toString() { if (this.longitude == Double.NEGATIVE_INFINITY) { return super.toString(); } return "[lat="+getLatitude()+", lon="+getLongitude()+"("+super.toString()+")]"; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + minXPlane.hashCode(); result = 31 * result + maxXPlane.hashCode(); result = 31 * result + minYPlane.hashCode(); result = 31 * result + maxYPlane.hashCode(); result = 31 * result + zPlane.hashCode(); return result; }
@Override public void reset(double x, double y, double radiusDEG) { shape = GeoCircleFactory.makeGeoCircle(shape.getPlanetModel(), y * DistanceUtils.DEGREES_TO_RADIANS, x * DistanceUtils.DEGREES_TO_RADIANS, radiusDEG * DistanceUtils.DEGREES_TO_RADIANS); center = null; boundingBox = null; }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds.noLongitudeBound() .addHorizontalPlane(planetModel, latitude, plane); }
@Override public boolean isWithin(final double x, final double y, final double z) { return plane.evaluateIsZero(x, y, z) && boundingPlane.isWithin(x, y, z); }
@Override public void getBounds(Bounds bounds) { super.getBounds(bounds); bounds .addHorizontalPlane(planetModel, bottomLat, bottomPlane); }
@Override public boolean isWithin(final double x, final double y, final double z) { return minXPlane.isWithin(x, y, z) && maxXPlane.isWithin(x, y, z) && yPlane.evaluateIsZero(x, y, z) && minZPlane.isWithin(x, y, z) && maxZPlane.isWithin(x, y, z); }
@Override public boolean isWithin(final double x, final double y, final double z) { return plane.evaluateIsZero(x, y, z) && leftPlane.isWithin(x, y, z) && rightPlane.isWithin(x, y, z); }
@Override public boolean isWithin(final double x, final double y, final double z) { return xPlane.evaluateIsZero(x, y, z) && minYPlane.isWithin(x, y, z) && maxYPlane.isWithin(x, y, z) && minZPlane.isWithin(x, y, z) && maxZPlane.isWithin(x, y, z); }