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