public static Projection makeProjection(int projType, float centerLat, float centerLon, float scale, int width, int height) {  Class projClass = null; switch (projType) { case CADRG.CADRGType: projClass = com.bbn.openmap.proj.CADRG.class; break; case Mercator.MercatorType: projClass = com.bbn.openmap.proj.Mercator.class; break; case MercatorView.MercatorViewType: projClass = com.bbn.openmap.proj.MercatorView.class; break; case LLXY.LLXYType: projClass = com.bbn.openmap.proj.LLXY.class; break; case LLXYView.LLXYViewType: projClass = com.bbn.openmap.proj.LLXYView.class; break; case Orthographic.OrthographicType: projClass = com.bbn.openmap.proj.Orthographic.class; break; case OrthographicView.OrthographicViewType: projClass = com.bbn.openmap.proj.OrthographicView.class; break; case Gnomonic.GnomonicType: projClass = com.bbn.openmap.proj.Gnomonic.class; break; default: System.err.println("Unknown projection type " + projType + " in ProjectionFactory.create()"); }  return makeProjection(projClass, centerLat, centerLon, scale, width, height);
public static Projection makeProjection(int newProjType, Projection p) { LatLonPoint ctr = p.getCenter(); return makeProjection(newProjType, ctr.getLatitude(), ctr.getLongitude(), p.getScale(), p.getWidth(), p.getHeight());
    public static Projection makeProjection(int projType, float centerLat,                                            float centerLon, float scale,                                            int width, int height) {        Class projClass = null;        switch (projType) {        case CADRG.CADRGType:            projClass = com.bbn.openmap.proj.CADRG.class;            break;        case Mercator.MercatorType:            projClass = com.bbn.openmap.proj.Mercator.class;            break;        case MercatorView.MercatorViewType:            projClass = com.bbn.openmap.proj.MercatorView.class;            break;        case LLXY.LLXYType:            projClass = com.bbn.openmap.proj.LLXY.class;            break;        case LLXYView.LLXYViewType:            projClass = com.bbn.openmap.proj.LLXYView.class;            break;        case Orthographic.OrthographicType:            projClass = com.bbn.openmap.proj.Orthographic.class;            break;        case OrthographicView.OrthographicViewType:            projClass = com.bbn.openmap.proj.OrthographicView.class;            break;        case Gnomonic.GnomonicType:            projClass = com.bbn.openmap.proj.Gnomonic.class;            break;        default:            System.err.println("Unknown projection type " + projType                    + " in ProjectionFactory.create()");        }        return makeProjection(projClass,                centerLat,                centerLon,                scale,                width,                height);    }