当前位置: 首页>>代码示例>>Java>>正文


Java ShapeSelectedEvent类代码示例

本文整理汇总了Java中org.meteoinfo.global.event.ShapeSelectedEvent的典型用法代码示例。如果您正苦于以下问题:Java ShapeSelectedEvent类的具体用法?Java ShapeSelectedEvent怎么用?Java ShapeSelectedEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ShapeSelectedEvent类属于org.meteoinfo.global.event包,在下文中一共展示了ShapeSelectedEvent类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FrmChart

import org.meteoinfo.global.event.ShapeSelectedEvent; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param parent
 * @param modal
 */
public FrmChart(java.awt.Frame parent, boolean modal) {
    super(parent, modal);
    initComponents();

    this.app = (IApplication) parent;
    app.getMapDocument().getActiveMapFrame().getMapView().addShapeSelectedListener(new IShapeSelectedListener() {
        @Override
        public void shapeSelectedEvent(ShapeSelectedEvent event) {
            onShapeSelected();
        }
    });
    this.setTitle("Pressure profile plot");

    //Set icon image
    BufferedImage image = null;
    try {
        image = ImageIO.read(this.getClass().getResource("/trajstat/resources/TrajStat_Logo.png"));
    } catch (Exception e) {
    }
    this.setIconImage(image);
    
    this.button_Sel.doClick();
}
 
开发者ID:Yaqiang,项目名称:TrajStat,代码行数:30,代码来源:FrmChart.java

示例2: fireShapeSelectedEvent

import org.meteoinfo.global.event.ShapeSelectedEvent; //导入依赖的package包/类
private void fireShapeSelectedEvent(ShapeSelectedEvent event) {
    Object[] listeners = _listeners.getListenerList();
    for (int i = 0; i < listeners.length; i = i + 2) {
        if (listeners[i] == IShapeSelectedListener.class) {
            ((IShapeSelectedListener) listeners[i + 1]).shapeSelectedEvent(event);
        }
    }
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:9,代码来源:MapView.java


注:本文中的org.meteoinfo.global.event.ShapeSelectedEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。