/** * fluent setter * @see #setFeature(Feature) * * @param feature * required parameter */ public Kml withFeature(final Feature feature) { this.setFeature(feature); return this; }
/** * fluent setter * @see #setFeature(Feature) * * @param feature * required parameter */ public Kml withFeature(final Feature feature) { this.setFeature(feature); return this; }
/** * Creates a new instance of {@link ScreenOverlay} and set it to feature. * * This method is a short version for: * <code> * ScreenOverlay screenOverlay = new ScreenOverlay(); * this.setFeature(screenOverlay); </code> * * */ public ScreenOverlay createAndSetScreenOverlay() { ScreenOverlay newValue = new ScreenOverlay(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link NetworkLink} and set it to feature. * * This method is a short version for: * <code> * NetworkLink networkLink = new NetworkLink(); * this.setFeature(networkLink); </code> * * */ public NetworkLink createAndSetNetworkLink() { NetworkLink newValue = new NetworkLink(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link PhotoOverlay} and set it to feature. * * This method is a short version for: * <code> * PhotoOverlay photoOverlay = new PhotoOverlay(); * this.setFeature(photoOverlay); </code> * * */ public PhotoOverlay createAndSetPhotoOverlay() { PhotoOverlay newValue = new PhotoOverlay(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Folder} and set it to feature. * * This method is a short version for: * <code> * Folder folder = new Folder(); * this.setFeature(folder); </code> * * */ public Folder createAndSetFolder() { Folder newValue = new Folder(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Document} and set it to feature. * * This method is a short version for: * <code> * Document document = new Document(); * this.setFeature(document); </code> * * */ public Document createAndSetDocument() { Document newValue = new Document(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link ScreenOverlay} and set it to feature. * * This method is a short version for: * <code> * ScreenOverlay screenOverlay = new ScreenOverlay(); * this.setFeature(screenOverlay); </code> * * */ public ScreenOverlay createAndSetScreenOverlay() { ScreenOverlay newValue = new ScreenOverlay(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link GroundOverlay} and set it to feature. * * This method is a short version for: * <code> * GroundOverlay groundOverlay = new GroundOverlay(); * this.setFeature(groundOverlay); </code> * * */ public GroundOverlay createAndSetGroundOverlay() { GroundOverlay newValue = new GroundOverlay(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Folder} and set it to feature. * * This method is a short version for: * <code> * Folder folder = new Folder(); * this.setFeature(folder); </code> * * */ public Folder createAndSetFolder() { Folder newValue = new Folder(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Document} and set it to feature. * * This method is a short version for: * <code> * Document document = new Document(); * this.setFeature(document); </code> * * */ public Document createAndSetDocument() { Document newValue = new Document(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link NetworkLink} and set it to feature. * * This method is a short version for: * <code> * NetworkLink networkLink = new NetworkLink(); * this.setFeature(networkLink); </code> * * */ public NetworkLink createAndSetNetworkLink() { NetworkLink newValue = new NetworkLink(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Placemark} and set it to feature. * * This method is a short version for: * <code> * Placemark placemark = new Placemark(); * this.setFeature(placemark); </code> * * */ public Placemark createAndSetPlacemark() { Placemark newValue = new Placemark(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Tour} and set it to feature. * * This method is a short version for: * <code> * Tour tour = new Tour(); * this.setFeature(tour); </code> * * */ public Tour createAndSetTour() { Tour newValue = new Tour(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link PhotoOverlay} and set it to feature. * * This method is a short version for: * <code> * PhotoOverlay photoOverlay = new PhotoOverlay(); * this.setFeature(photoOverlay); </code> * * */ public PhotoOverlay createAndSetPhotoOverlay() { PhotoOverlay newValue = new PhotoOverlay(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link GroundOverlay} and set it to feature. * * This method is a short version for: * <code> * GroundOverlay groundOverlay = new GroundOverlay(); * this.setFeature(groundOverlay); </code> * * */ public GroundOverlay createAndSetGroundOverlay() { GroundOverlay newValue = new GroundOverlay(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Placemark} and set it to feature. * * This method is a short version for: * <code> * Placemark placemark = new Placemark(); * this.setFeature(placemark); </code> * * */ public Placemark createAndSetPlacemark() { Placemark newValue = new Placemark(); this.setFeature(newValue); return newValue; }
/** * Creates a new instance of {@link Tour} and set it to feature. * * This method is a short version for: * <code> * Tour tour = new Tour(); * this.setFeature(tour); </code> * * */ public Tour createAndSetTour() { Tour newValue = new Tour(); this.setFeature(newValue); return newValue; }
final Kml kml = new Kml(); Document document = kml.createAndSetDocument(); listForms = formDAO.getAll(); for (Form list : listForms){ document.createAndAddPlacemark() .withName(String.valueOf(list.getId())) .withDescription(list.toStringKML()) .createAndSetPoint().addToCoordinates(-20.3978398, -43.5146653); } kml.setFeature(document); kml.marshal(new File("test.kml"));
final Kml kml = new Kml(); final Folder folder = new Folder(); kml.setFeature(folder); folder.setName("Folder.kml"); folder.setOpen(true); final Placemark placemark1 = new Placemark().withId("1") .withName("Folder object 1 (Placemark)"); folder.getFeature().add(placemark1); final Placemark placemark2 = new Placemark().withId("2") .withName("Folder object 2 (Placemark)"); folder.getFeature().add(placemark2); List<Feature> features = folder.getFeature(); System.out.println(features); // dumps two features for(int i=features.size()-1; i >= 0; i--) { Feature f = features.get(i); if("1".equals(f.getId())) { // this removes feature with id = "1" features.remove(i); break; } } System.out.println(features); // folder now only has one item