本文整理汇总了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);
}