本文整理汇总了Java中org.meteoinfo.map.MouseTools类的典型用法代码示例。如果您正苦于以下问题:Java MouseTools类的具体用法?Java MouseTools怎么用?Java MouseTools使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MouseTools类属于org.meteoinfo.map包,在下文中一共展示了MouseTools类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: jButton_EditVerticesActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_EditVerticesActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jButton_EditVertices.setSelected(!jButton_EditVertices.isSelected());
if (jButton_EditVertices.isSelected()) {
_mapView.setMouseTool(MouseTools.EditVertices);
_mapDocument.getMapLayout().setMouseMode(MouseMode.EditVertices);
//_isEditingVertices = true;
} else {
this.jButton_SelectElement.doClick();
//_isEditingVertices = false;
}
//setCurrentTool((JButton) evt.getSource());
if (this.jTabbedPane_Main.getSelectedIndex() == 0) {
_mapView.paintLayers();
} else {
_mapDocument.getMapLayout().paintGraphics();
}
}
示例2: jButton_SelectActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_SelectActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
this.mapView.setMouseTool(MouseTools.SelectElements);
if (this.mapLayout != null) {
this.mapLayout.setMouseMode(MouseMode.Select);
}
setCurrentTool((JButton) evt.getSource());
}
示例3: jButton_ZoomInActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_ZoomInActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
this.mapView.setMouseTool(MouseTools.Zoom_In);
if (this.mapLayout != null) {
this.mapLayout.setMouseMode(MouseMode.Map_ZoomIn);
}
setCurrentTool((JButton) evt.getSource());
}
示例4: jButton_ZoomOutActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_ZoomOutActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
this.mapView.setMouseTool(MouseTools.Zoom_Out);
if (this.mapLayout != null) {
this.mapLayout.setMouseMode(MouseMode.Map_ZoomOut);
}
setCurrentTool((JButton) evt.getSource());
}
示例5: jButton_PanActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_PanActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
this.mapView.setMouseTool(MouseTools.Pan);
if (this.mapLayout != null) {
this.mapLayout.setMouseMode(MouseMode.Map_Pan);
}
setCurrentTool((JButton) evt.getSource());
}
示例6: jButton_IdentiferActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_IdentiferActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
this.mapView.setMouseTool(MouseTools.Identifer);
if (this.mapLayout != null) {
this.mapLayout.setMouseMode(MouseMode.Map_Identifer);
}
setCurrentTool((JButton) evt.getSource());
}
示例7: jButton_NewEllipseActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewEllipseActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Ellipse);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Ellipse);
setCurrentTool((JButton) evt.getSource());
}
示例8: jButton_NewCircleActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewCircleActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Circle);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Circle);
setCurrentTool((JButton) evt.getSource());
}
示例9: jButton_NewRectangleActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewRectangleActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Rectangle);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Rectangle);
setCurrentTool((JButton) evt.getSource());
}
示例10: jButton_NewCurvePolygonActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewCurvePolygonActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_CurvePolygon);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_CurvePolygon);
setCurrentTool((JButton) evt.getSource());
}
示例11: jButton_NewPolygonActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewPolygonActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Polygon);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Polygon);
setCurrentTool((JButton) evt.getSource());
}
示例12: jButton_NewCurveActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewCurveActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Curve);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Curve);
setCurrentTool((JButton) evt.getSource());
}
示例13: jButton_NewFreehandActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewFreehandActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Freehand);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Freehand);
setCurrentTool((JButton) evt.getSource());
}
示例14: jButton_NewPolylineActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewPolylineActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Polyline);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Polyline);
setCurrentTool((JButton) evt.getSource());
}
示例15: jButton_NewPointActionPerformed
import org.meteoinfo.map.MouseTools; //导入依赖的package包/类
private void jButton_NewPointActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
_mapView.setMouseTool(MouseTools.New_Point);
_mapDocument.getMapLayout().setMouseMode(MouseMode.New_Point);
setCurrentTool((JButton) evt.getSource());
}