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


Java MapComponent类代码示例

本文整理汇总了Java中ika.gui.MapComponent的典型用法代码示例。如果您正苦于以下问题:Java MapComponent类的具体用法?Java MapComponent怎么用?Java MapComponent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MapComponent类属于ika.gui包,在下文中一共展示了MapComponent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RotateScaleMoveSelectionTool

import ika.gui.MapComponent; //导入依赖的package包/类
/**
 * Creates a new instance of RotateScaleMoveSelectionTool
 */
public RotateScaleMoveSelectionTool(MapComponent mapComponent) {
    super(mapComponent, "Select - Move - Scale");
    
    SelectionTool selectionTool = new SelectionTool(this.mapComponent);
    MoverTool moveTool = new MoverTool(this.mapComponent);
    moveTool.setSelectOnDragStart(true);
    ScaleTool scaleTool = new ScaleTool(this.mapComponent);     
    RotateTool rotateTool = new RotateTool(this.mapComponent);
    
    this.addMapTool(scaleTool);
    this.addMapTool(rotateTool);
    this.addMapTool(moveTool);
    // selection tool must be last added tool
    this.addMapTool(selectionTool);
}
 
开发者ID:OSUCartography,项目名称:ScreePainter,代码行数:19,代码来源:RotateScaleMoveSelectionTool.java

示例2: ScaleMoveSelectionTool

import ika.gui.MapComponent; //导入依赖的package包/类
/**
 * Creates a new instance of RotateScaleMoveSelectionTool
 */
public ScaleMoveSelectionTool(MapComponent mapComponent) {
    super(mapComponent, "Select - Move - Scale");
    
    SelectionTool selectionTool = new SelectionTool(this.mapComponent);
    MoverTool moveTool = new MoverTool(this.mapComponent);
    moveTool.setSelectOnDragStart(true);
    ScaleTool scaleTool = new ScaleTool(this.mapComponent);     
    
    this.addMapTool(scaleTool);
    this.addMapTool(moveTool);
    // selection tool must be added last
    this.addMapTool(selectionTool);
}
 
开发者ID:OSUCartography,项目名称:ScreePainter,代码行数:17,代码来源:ScaleMoveSelectionTool.java

示例3: OpenStreetMap

import ika.gui.MapComponent; //导入依赖的package包/类
public OpenStreetMap(MapComponent mapComponent) {
    init();
    setMapComponent(mapComponent);
}
 
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:5,代码来源:OpenStreetMap.java

示例4: setMapComponent

import ika.gui.MapComponent; //导入依赖的package包/类
public final void setMapComponent(MapComponent mapComponent) {
    this.mapComponent = mapComponent;
    mapComponent.addScaleChangePropertyChangeListener(scaleChangeListener);
}
 
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:5,代码来源:OpenStreetMap.java

示例5: PolygonTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of PolygonTool */
public PolygonTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:5,代码来源:PolygonTool.java

示例6: DoubleBufferedTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of DoubleBufferedTool 
  * @param mapComponent The MapComponent for which this MapTool provides its services.
 */
protected DoubleBufferedTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:7,代码来源:DoubleBufferedTool.java

示例7: PointSetterTool

import ika.gui.MapComponent; //导入依赖的package包/类
/**
 * Create a new instance.
 * @param mapComponent The MapComponent for which this MapTool provides its services.
 * @param pointSymbol The PointSymbol used to draw newly created points.
 */
public PointSetterTool(MapComponent mapComponent,
        PointSymbol pointSymbol) {
    super(mapComponent);
    this.pointSymbol = pointSymbol;
}
 
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:11,代码来源:PointSetterTool.java

示例8: PanTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionTool
  * @param mapComponent The MapComponent for which this MapTool provides its services.
 */
public PanTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:berniejenny,项目名称:MapAnalyst,代码行数:7,代码来源:PanTool.java

示例9: FalllineTool

import ika.gui.MapComponent; //导入依赖的package包/类
/**
 * Create a new instance.
 * @param mapComponent The MapComponent for which this MapTool provides its services.
 * @param pointSymbol The PointSymbol used to draw newly created points.
 */
public FalllineTool(MapComponent mapComponent,
        PointSymbol pointSymbol) {
    super(mapComponent);
    this.pointSymbol = pointSymbol;
}
 
开发者ID:OSUCartography,项目名称:ScreePainter,代码行数:11,代码来源:FalllineTool.java

示例10: SelectionEditingTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionEditingTool
 * @param mapComponent */
public SelectionEditingTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:OSUCartography,项目名称:ScreePainter,代码行数:6,代码来源:SelectionEditingTool.java

示例11: DoubleBufferedTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of DoubleBufferedTool
 * @param mapComponent The MapComponent for which this MapTool provides its services.
 */
protected DoubleBufferedTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:OSUCartography,项目名称:ScreePainter,代码行数:7,代码来源:DoubleBufferedTool.java

示例12: RotateTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionMoveScaleTool */
public RotateTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:OSUCartography,项目名称:ScreePainter,代码行数:5,代码来源:RotateTool.java

示例13: ScaleTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionMoveScaleTool */
public ScaleTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:OSUCartography,项目名称:ScreePainter,代码行数:5,代码来源:ScaleTool.java

示例14: SelectionEditingTool

import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionEditingTool */
public SelectionEditingTool(MapComponent mapComponent) {
    super(mapComponent);
}
 
开发者ID:OSUCartography,项目名称:FlexProjector,代码行数:5,代码来源:SelectionEditingTool.java

示例15: getMapComponent

import ika.gui.MapComponent; //导入依赖的package包/类
public MapComponent getMapComponent() {
    return mapComponent;
}
 
开发者ID:OSUCartography,项目名称:FlexProjector,代码行数:4,代码来源:OldImageImporter.java


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