drawingtoolrenderexception.java

来自「OpenMap是一个基于JavaBeansTM的开发工具包。利用OpenMap你」· Java 代码 · 共 36 行

JAVA
36
字号
/*
 *  File: DrawingToolRenderException.java
 *  OptiMetrics, Inc.
 *  2107 Laurel Bush Road - Suite 209
 *  Bel Air, MD 21015
 *  (410)569 - 6081
 */
package com.bbn.openmap.dataAccess.shape;

import javax.swing.JOptionPane;

/**
 * Used to throw an exception when OMGraphics are not rendered as
 * OMGraphicConstants.RENDERTYPE_LATLON in EsriShapeExport and its
 * subclasses.
 */
public class DrawingToolRenderException extends Exception {

    /**
     * Displays a JOtionPane Message Dialog informing the user that
     * any Drawing Tool graphics not rendered in LAT/LON will not be
     * exported.
     */
    public static void notifyUserOfNonLatLonGraphics(int count) {
        String errMsg = "All Drawing Tool Graphics must be rendered as LAT/LON \nto be exported as ESRI shape files. \n\n"
                + count
                + " graphic"
                + (count > 1 ? "s" : "")
                + " not rendered in LAT/LON will not be exported.";
        String title = "Exporting Error";
        JOptionPane.showMessageDialog(null,
                errMsg,
                title,
                JOptionPane.ERROR_MESSAGE);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?