/** * A position associated with the object that indicates its aggregate geographic position. For a Label, this is * simply it's position property. * * @return {@link Label#getPosition()} */ @Override public Position getReferencePosition() { return this.getPosition(); }
/** * Moves the shape over the globe's surface. For a Label, this simply calls {@link Label#setPosition(Position)}. * * @param globe not used. * @param position the new position of the shape's reference position. */ @Override public void moveTo(Globe globe, Position position) { this.setPosition(position); }
String[] fields = line.split(","); Label label = new Label( Position.fromDegrees(Double.parseDouble(fields[LAT]), Double.parseDouble(fields[LON]), 0), fields[NAM], fields[NAM].contains("Lake") ? lakeAttrs : placeAttrs); label.setDisplayName(label.getText());
Label label = new Label(new Position(38.8977, -77.0365, 0), "The White House"); layer.addRenderable(label); attrs.setOutlineColor(new Color(1, 1, 1, 1)); // white outline via r,g,b,a attrs.setOutlineWidth(5); // thicken the white outline label = new Label(new Position(38.881389, -77.036944, 0), "Thomas Jefferson Memorial", attrs); layer.addRenderable(label); label = new Label(new Position(38.8893, -77.050111, 0), "Lincoln Memorial", attrs); layer.addRenderable(label); label = new Label(new Position(38.889803, -77.009114, 0), "United States Capitol", attrs); layer.addRenderable(label); label = new Label(new Position(38.907192, -77.036871, 0), "Washington", attrs); layer.addRenderable(label); label = new Label(new Position(38.89, -77.023611, 0), "National Mall"); label.setRotationMode(WorldWind.RELATIVE_TO_GLOBE); layer.addRenderable(label);
this.determineActiveAttributes(rc); if (this.activeAttributes == null) { return; this.makeDrawable(rc);