當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。