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


Java LayerList.indexOf方法代码示例

本文整理汇总了Java中gov.nasa.worldwind.layers.LayerList.indexOf方法的典型用法代码示例。如果您正苦于以下问题:Java LayerList.indexOf方法的具体用法?Java LayerList.indexOf怎么用?Java LayerList.indexOf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gov.nasa.worldwind.layers.LayerList的用法示例。


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

示例1: insertBeforePlacenames

import gov.nasa.worldwind.layers.LayerList; //导入方法依赖的package包/类
public static void insertBeforePlacenames(WorldWindow wwd, Layer layer)
{
    // Insert the layer into the layer list just before the placenames.
    int compassPosition = 0;
    LayerList layers = wwd.getModel().getLayers();
    for (Layer l : layers)
    {
        if (l instanceof PlaceNameLayer)
            compassPosition = layers.indexOf(l);
    }
    layers.add(compassPosition, layer);
}
 
开发者ID:ltrr-arizona-edu,项目名称:tellervo,代码行数:13,代码来源:WWJPanel.java

示例2: insertBeforeCompass

import gov.nasa.worldwind.layers.LayerList; //导入方法依赖的package包/类
public static void insertBeforeCompass(WorldWindow wwd, Layer layer)
{
    // Insert the layer into the layer list just before the compass.
    int compassPosition = 0;
    LayerList layers = wwd.getModel().getLayers();
    for (Layer l : layers)
    {
        if (l instanceof CompassLayer)
            compassPosition = layers.indexOf(l);
    }
    layers.add(compassPosition, layer);
}
 
开发者ID:ltrr-arizona-edu,项目名称:tellervo,代码行数:13,代码来源:WWJPanel.java

示例3: insertBeforeCompass

import gov.nasa.worldwind.layers.LayerList; //导入方法依赖的package包/类
/**
 * Insert the layer into the layer list just before the compass.
 * 
 * @param wwd
 * @param newWWLayer
 * @return
 */
private static TVIMap3Layer insertBeforeCompass(final WorldWindow wwd, final TVIMap3Layer newUILayer) {

	/*
	 * update WW model
	 */
	int compassPosition = 0;
	final LayerList wwLayers = wwd.getModel().getLayers();
	for (final Layer wwLayer : wwLayers) {
		if (wwLayer instanceof CompassLayer) {
			compassPosition = wwLayers.indexOf(wwLayer);
		}
	}

	final Layer newWWLayer = newUILayer.wwLayer;

	wwLayers.add(compassPosition, newWWLayer);

	// update ww layer visibility
	newWWLayer.setEnabled(newUILayer.isLayerVisible);

	/*
	 * update UI model
	 */
	final TVIMap3Layer insertedUILayer = insertBeforeCompass_10(_uiRootItem, newUILayer);

	return insertedUILayer;
}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:35,代码来源:Map3Manager.java

示例4: insertBeforePlaceNames

import gov.nasa.worldwind.layers.LayerList; //导入方法依赖的package包/类
/**
 * Insert the layer into the layer list just before the placenames.
 * 
 * @param wwd
 * @param newWWLayer
 * @return
 */
private static TVIMap3Layer insertBeforePlaceNames(final WorldWindow wwd, final TVIMap3Layer newUILayer) {

	/*
	 * update WW model
	 */
	int compassPosition = 0;
	final LayerList wwLayers = wwd.getModel().getLayers();
	for (final Layer wwLayer : wwLayers) {
		if (wwLayer instanceof PlaceNameLayer) {
			compassPosition = wwLayers.indexOf(wwLayer);
		}
	}

	final Layer newWWLayer = newUILayer.wwLayer;

	wwLayers.add(compassPosition, newWWLayer);

	// update ww layer visibility
	newWWLayer.setEnabled(newUILayer.isLayerVisible);

	/*
	 * update UI model
	 */
	final TVIMap3Layer insertedUILayer = insertBeforePlaceNames_10(_uiRootItem, newUILayer);

	return insertedUILayer;
}
 
开发者ID:wolfgang-ch,项目名称:mytourbook,代码行数:35,代码来源:Map3Manager.java

示例5: insertBeforeCompass

import gov.nasa.worldwind.layers.LayerList; //导入方法依赖的package包/类
/**
 * Insert a layer before the compass layer.
 * 
 * @param wwd the {@link WorldWindow}.
 * @param layer the layer to insert.
 */
public static void insertBeforeCompass( WorldWindow wwd, Layer layer ) {
    // Insert the layer into the layer list just before the compass.
    int compassPosition = 0;
    LayerList layers = wwd.getModel().getLayers();
    for( Layer l : layers ) {
        if (l instanceof CompassLayer)
            compassPosition = layers.indexOf(l);
    }
    layers.add(compassPosition, layer);
}
 
开发者ID:TheHortonMachine,项目名称:hortonmachine,代码行数:17,代码来源:NwwUtilities.java

示例6: insertTiledLayer

import gov.nasa.worldwind.layers.LayerList; //导入方法依赖的package包/类
private static void insertTiledLayer(final WorldWindow wwd, final Layer layer) {
    int position = 0;
    final LayerList layers = wwd.getModel().getLayers();
    for (Layer l : layers) {
        if (l instanceof PlaceNameLayer) {
            position = layers.indexOf(l);
            break;
        }
    }
    layers.add(position, layer);
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:12,代码来源:WWAnalysisToolView.java

示例7: insertBeforePlacenames

import gov.nasa.worldwind.layers.LayerList; //导入方法依赖的package包/类
public static void insertBeforePlacenames(WorldWindow wwd, Layer layer){
    // Insert the layer into the layer list just before the placenames.
    int compassPosition = 0;
    LayerList layers = wwd.getModel().getLayers();
    for (Layer l : layers)
    {
        if (l instanceof PlaceNameLayer)
            compassPosition = layers.indexOf(l);
    }
    layers.add(compassPosition, layer);
}
 
开发者ID:eddieburns55,项目名称:RxWorldwind,代码行数:12,代码来源:SimpleShapeDraggingRx.java


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