本文整理汇总了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);
}
示例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);
}
示例3: OpenStreetMap
import ika.gui.MapComponent; //导入依赖的package包/类
public OpenStreetMap(MapComponent mapComponent) {
init();
setMapComponent(mapComponent);
}
示例4: setMapComponent
import ika.gui.MapComponent; //导入依赖的package包/类
public final void setMapComponent(MapComponent mapComponent) {
this.mapComponent = mapComponent;
mapComponent.addScaleChangePropertyChangeListener(scaleChangeListener);
}
示例5: PolygonTool
import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of PolygonTool */
public PolygonTool(MapComponent mapComponent) {
super(mapComponent);
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例10: SelectionEditingTool
import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionEditingTool
* @param mapComponent */
public SelectionEditingTool(MapComponent mapComponent) {
super(mapComponent);
}
示例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);
}
示例12: RotateTool
import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionMoveScaleTool */
public RotateTool(MapComponent mapComponent) {
super(mapComponent);
}
示例13: ScaleTool
import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionMoveScaleTool */
public ScaleTool(MapComponent mapComponent) {
super(mapComponent);
}
示例14: SelectionEditingTool
import ika.gui.MapComponent; //导入依赖的package包/类
/** Creates a new instance of SelectionEditingTool */
public SelectionEditingTool(MapComponent mapComponent) {
super(mapComponent);
}
示例15: getMapComponent
import ika.gui.MapComponent; //导入依赖的package包/类
public MapComponent getMapComponent() {
return mapComponent;
}