本文整理汇总了Java中gov.nasa.worldwind.layers.Layer.getName方法的典型用法代码示例。如果您正苦于以下问题:Java Layer.getName方法的具体用法?Java Layer.getName怎么用?Java Layer.getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gov.nasa.worldwind.layers.Layer
的用法示例。
在下文中一共展示了Layer.getName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LayerAction
import gov.nasa.worldwind.layers.Layer; //导入方法依赖的package包/类
public LayerAction(Layer layer, WorldWindow wwd, boolean selected) {
super(layer.getName());
this.wwd = wwd;
this.layer = layer;
this.selected = selected;
this.layer.setEnabled(this.selected);
}
示例2: dumpLayer
import gov.nasa.worldwind.layers.Layer; //导入方法依赖的package包/类
static void dumpLayer(final LayerList layers) {
System.out.println(UI.timeStampNano() + " [" + Map3Manager.class.getSimpleName() + "] WW Layers"); //$NON-NLS-1$ //$NON-NLS-2$
// TODO remove SYSTEM.OUT.PRINTLN
for (final Layer layer : layers) {
final String name = layer.getName();
// final double minActiveAltitude = layer.getMinActiveAltitude();
// final double maxActiveAltitude = layer.getMaxActiveAltitude();
// System.out.println();
System.out.println(String.format("\t%-60s %s", layer.getClass().getName(), name)); //$NON-NLS-1$
// System.out.println(" \tMinMax altitude:\t" //$NON-NLS-1$
// + UI.FormatDoubleMinMax(minActiveAltitude)
// + ("\t" + UI.FormatDoubleMinMax(maxActiveAltitude))); //$NON-NLS-1$
// // TODO remove SYSTEM.OUT.PRINTLN
// if (layer instanceof WMSTiledImageLayer) {
//
// final WMSTiledImageLayer wmsLayer = (WMSTiledImageLayer) layer;
//
// System.out.println(" \tLevels\t\t\t" + wmsLayer.getLevels());
// System.out.println(" \tScale\t\t\t" + wmsLayer.getScale());
// }
}
}
示例3: SelectLayerAction
import gov.nasa.worldwind.layers.Layer; //导入方法依赖的package包/类
public SelectLayerAction(LayerEventsListener eventsListener, WorldWindow wwd, Layer layer, boolean selected) {
super(layer.getName());
this.eventsListener = eventsListener;
this.wwd = wwd;
this.layer = layer;
this.selected = selected;
this.layer.setEnabled(this.selected);
}
示例4: SelectLayerAction
import gov.nasa.worldwind.layers.Layer; //导入方法依赖的package包/类
public SelectLayerAction(WorldWindow wwd, Layer layer, boolean selected)
{
super(layer.getName());
this.wwd = wwd;
this.layer = layer;
this.selected = selected;
this.layer.setEnabled(this.selected);
}
示例5: LayerAction
import gov.nasa.worldwind.layers.Layer; //导入方法依赖的package包/类
public LayerAction(Layer layer, WorldWindow wwd, boolean selected) {
super(layer.getName());
this.wwd = wwd;
this.layer = layer;
this.selected = selected;
this.layer.setEnabled(this.selected);
}