public static Icon narrowToIcon(JSObject element) { return (element == null)?null:new Icon(element); }
/** * * @param zIndex */ public void setZIndex(int zIndex) { IconImpl.setZIndex(getJSObject(), zIndex); }
public void select() { selected = true; getIcon().setUrl(MARKER_IMG_SELECTED); }
public Icon getIcon() { return Icon.narrowToIcon(MarkerImpl.getIcon(getJSObject())); } /**
public Icon getIcon() { return Icon.narrowToIcon(MarkerImpl.getIcon(getJSObject())); }
public static Icon narrowToIcon(JSObject element) { return (element == null)?null:new Icon(element); }
/** * @param url - url for the icon image */ //private in OpenLayers, but it seems it should be public public void setUrl(String url){ IconImpl.setUrl(getJSObject(), url); } }
public void deselect() { selected = false; getIcon().setUrl(MARKER_IMG_UNSELECTED); }
public OpenlayersMarker(Coordinate coords, Timeseries ts) { super(coords); this.timeseries = ts; this.coords = coords; this.setIcon(new Icon(UNMARKED_IMG_RELPATH, new Size(25, 25))); init(); }
/** * @param url - url for the icon image */ //private in OpenLayers, but it seems it should be public public void setUrl(String url){ IconImpl.setUrl(getJSObject(), url); }
public void unlight() { getIcon().setUrl(MARKER_IMG_UNSELECTED); }
@Override public void onHandle(EventObject eventObject) { if (OpenlayersMarker.this.popup != null) { map.removePopup(OpenlayersMarker.this.popup); } Pixel pixel = new Pixel(0, 0); Size size = new Size(300, 200); FramedCloud frame = new FramedCloud("marker-info", OpenlayersMarker.this.coords, size, OpenlayersMarker.this.infoTxt, new Icon("", new Size(0, 0), pixel), true); OpenlayersMarker.this.setPopup(frame); map.addPopup(OpenlayersMarker.this.popup); } };
public String getZIndex() { return IconImpl.getZIndex(getJSObject()); }
public void highlight() { getIcon().setUrl(MARKER_IMG_HOVER); }
private InfoMarker(Coordinate coords, Station station, MapController controller) { super(coords); this.controller = controller; this.id = "infomarker"; setStation(station); setIcon(new Icon(MARKER_IMG_UNSELECTED, new Size(20, 20))); final InfoMarker marker = this; getEvents().register("click", marker, getClickHandler()); // getEvents().register("zoomend", marker, getZoomEndHandler()); // getJSObject().setProperty("class", "n52_sensorweb_client_marker"); }
/** * @param size - size of the icon image */ //this method is private in OpenLayers, but also used // by the OpenLayers markerResize example, it seems it should be public public void setSize(Size size){ IconImpl.setSize(getJSObject(), size.getJSObject()); }
/** * Method: setIcon Change the icon image. icon (Icon) the image of icon */ public void setIcon(Icon icon) { MarkerImpl.setIcon(getJSObject(), icon.getJSObject()); }
/** * Method: setIcon * Change the icon image. * icon (Icon) the image of icon */ public void setIcon(Icon icon){ MarkerImpl.setIcon(getJSObject(),icon.getJSObject()); } /**
/** * @param size - size of the icon image */ //this method is private in OpenLayers, but also used // by the OpenLayers markerResize example, it seems it should be public public void setSize(Size size){ IconImpl.setSize(getJSObject(), size.getJSObject()); }