本文整理匯總了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();
}
示例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);
}
}
}
示例3: addShapeSelectedListener
import org.meteoinfo.global.event.IShapeSelectedListener; //導入依賴的package包/類
public void addShapeSelectedListener(IShapeSelectedListener listener) {
this._listeners.add(IShapeSelectedListener.class, listener);
}
示例4: removeShapeSelectedListener
import org.meteoinfo.global.event.IShapeSelectedListener; //導入依賴的package包/類
public void removeShapeSelectedListener(IShapeSelectedListener listener) {
this._listeners.remove(IShapeSelectedListener.class, listener);
}