1 package com.lamatek.tags.google; 2 3 import java.io.Serializable ; 4 5 import javax.servlet.jsp.tagext.Tag ; 6 import javax.servlet.jsp.tagext.TagSupport ; 7 8 9 public class GoogleMapImageOverlayTag extends TagSupport implements Serializable { 10 11 String url = null; 12 String link = null; 13 int x = 0; 14 int y = 0; 15 float opacity = 0.50f; 16 String id = null; 17 21 public int doStartTag() { 22 Tag tag = this; 23 while (tag.getParent() != null) { 24 if (tag.getParent() instanceof GoogleMapTag) { 25 ((GoogleMapTag) tag.getParent()).addImageOverlay(this); 26 return SKIP_BODY; 27 } 28 tag = tag.getParent(); 29 } 30 return SKIP_BODY; 31 } 32 38 public float getOpacity() { 39 return opacity; 40 } 41 47 public void setOpacity(float opacity) { 48 this.opacity = opacity; 49 } 50 57 public int getX() { 58 return x; 59 } 60 67 public int getY() { 68 return y; 69 } 70 77 public void setX(int x) { 78 this.x = x; 79 } 80 87 public void setY(int y) { 88 this.y = y; 89 } 90 95 public String getUrl() { 96 return url; 97 } 98 104 public void setUrl(String url) { 105 this.url = url; 106 } 107 112 public String getId() { 113 return id; 114 } 115 120 public void setId(String id) { 121 this.id = id; 122 } 123 128 public String getLink() { 129 return link; 130 } 131 136 public void setLink(String link) { 137 this.link = link; 138 } 139 } 140 | Popular Tags |