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


Java IShapeSelectedListener类代码示例

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


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

示例1: FrmChart

import org.meteoinfo.global.event.IShapeSelectedListener; //导入依赖的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.IShapeSelectedListener; //导入依赖的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

示例3: addShapeSelectedListener

import org.meteoinfo.global.event.IShapeSelectedListener; //导入依赖的package包/类
public void addShapeSelectedListener(IShapeSelectedListener listener) {
    this._listeners.add(IShapeSelectedListener.class, listener);
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:4,代码来源:MapView.java

示例4: removeShapeSelectedListener

import org.meteoinfo.global.event.IShapeSelectedListener; //导入依赖的package包/类
public void removeShapeSelectedListener(IShapeSelectedListener listener) {
    this._listeners.remove(IShapeSelectedListener.class, listener);
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:4,代码来源:MapView.java


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