/** * Create an instance of {@link Icon} * */ public static Icon createIcon() { return new Icon(); }
/** * Create an instance of {@link Icon} * */ public static Icon createIcon() { return new Icon(); }
/** * Creates a new instance of {@link Icon} and set it to icon. * * This method is a short version for: * <code> * Icon icon = new Icon(); * this.setIcon(icon); </code> * * */ public Icon createAndSetIcon() { Icon newValue = new Icon(); this.setIcon(newValue); return newValue; }
/** * Creates a new instance of {@link Icon} and set it to icon. * * This method is a short version for: * <code> * Icon icon = new Icon(); * this.setIcon(icon); </code> * * */ public Icon createAndSetIcon() { Icon newValue = new Icon(); this.setIcon(newValue); return newValue; }
/** * Creates a new instance of {@link Icon} and set it to icon. * * This method is a short version for: * <code> * Icon icon = new Icon(); * this.setIcon(icon); </code> * * */ public Icon createAndSetIcon() { Icon newValue = new Icon(); this.setIcon(newValue); return newValue; }
/** * Creates a new instance of {@link Icon} and set it to icon. * * This method is a short version for: * <code> * Icon icon = new Icon(); * this.setIcon(icon); </code> * * */ public Icon createAndSetIcon() { Icon newValue = new Icon(); this.setIcon(newValue); return newValue; }
public String getKMLStyle(String label, Folder folder) { if (kmlStyles.containsKey(label)) return (String) kmlStyles.get(label); int pushpingLinkCounter = kmlStylesCounter % kmlPushPings.length; int colorCounter = kmlStylesCounter % kmlColors.length; Style style = folder.createAndAddStyle().withId( String.valueOf(kmlStylesCounter)); style.createAndSetIconStyle() .withScale(1.399999976158142) .withIcon( new Icon().withHref(kmlPushPings[pushpingLinkCounter])); style.createAndSetLineStyle().withColor(kmlColors[colorCounter]) .withWidth(2); style.createAndSetPolyStyle().withColor(kmlColors[colorCounter]); kmlStyles.put(label, String.valueOf(kmlStylesCounter)); kmlStylesCounter++; return String.valueOf(kmlStylesCounter - 1); } private String getKMLLabel(SimpleFeature feature) {
Icon icon = new Icon().withHref("http://maps.google.com/mapfiles/kml/shapes/shaded_dot.png"); IconStyle validIconStyle = new IconStyle() .withIcon( icon ) .withColor(RED); Icon trackIcon = new Icon().withHref("http://earth.google.com/images/kml-icons/track-directional/track-0.png"); IconStyle trackIconStyle = new IconStyle() .withIcon( trackIcon )
style.createAndSetIconStyle().withScale(1.399999976158142).withIcon(new Icon().withHref("http://maps.google.com/mapfiles/ms/icons/blue-pushpin.png")); else style.createAndSetIconStyle().withScale(1.399999976158142).withIcon(new Icon().withHref("http://maps.google.com/mapfiles/ms/icons/red-pushpin.png"));