当前位置: 首页>>代码示例>>Java>>正文


Java MouseTools类代码示例

本文整理汇总了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();
    }
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:20,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:10,代码来源:MainToolBar.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:10,代码来源:MainToolBar.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:10,代码来源:MainToolBar.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:10,代码来源:MainToolBar.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoLib,代码行数:10,代码来源:MainToolBar.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java

示例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());
}
 
开发者ID:meteoinfo,项目名称:MeteoInfoMap,代码行数:8,代码来源:FrmMain.java


注:本文中的org.meteoinfo.map.MouseTools类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。