本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}