本文整理了Java中org.slf4j.Marker.remove()
方法的一些代码示例,展示了Marker.remove()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Marker.remove()
方法的具体详情如下:
包路径:org.slf4j.Marker
类名称:Marker
方法名:remove
[英]Remove a marker reference.
[中]删除标记引用。
代码示例来源:origin: stackoverflow.com
private ArrayList<Marker> mMarkers;
...
private void removeMarkers() {
for (Marker marker: mMarkers) {
marker.remove();
}
mMarkers.clear();
}
代码示例来源:origin: stackoverflow.com
Marker marker;
MAP.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {
@Override
public void onMapLongClick(LatLng arg0) {
if (marker != null) {
marker.remove();
}
marker = MAP.addMarker(new MarkerOptions()
.position(
new LatLng(arg0.latitude,
arg0.longitude))
.draggable(true).visible(true));
}
});
代码示例来源:origin: stackoverflow.com
currLocationMarker.remove();
代码示例来源:origin: stackoverflow.com
mCurrLocationMarker.remove();
代码示例来源:origin: naver/ngrinder
/** Package scope for unit tests. */
void setTestLogMarker(Marker marker) {
if (m_testMarker != null) {
m_threadMarker.remove(m_testMarker);
}
m_testMarker = marker;
if (marker != null) {
m_threadMarker.add(marker);
}
}
代码示例来源:origin: stackoverflow.com
@Override
public void run() {
marker.remove();
marker = map.addMarker(new MarkerOptions().position(location));
代码示例来源:origin: naver/ngrinder
@Override
public void setCurrentRunNumber(int run) {
if (m_runMarker != null) {
m_threadMarker.remove(m_runMarker);
MarkerFactory.getIMarkerFactory().detachMarker(
m_runMarker.getName());
}
if (run != -1) {
m_runMarker = MarkerFactory.getMarker("run-" + run);
m_threadMarker.add(m_runMarker);
}
m_runNumber = run;
}
代码示例来源:origin: stackoverflow.com
marker.remove();
代码示例来源:origin: stackoverflow.com
@Override
public void onMarkerDragStart(Marker marker) {
marker.remove();
MarkerOptions options = createBasedOnMarker(marker);
this.googleMap.addMarker(options);
}
代码示例来源:origin: stackoverflow.com
private ArrayList<Marker> mMarkers;
...
private void removeMarkers() {
for (Marker marker: mMarkers) {
marker.remove();
}
mMarkers.clear();
代码示例来源:origin: stackoverflow.com
for (Marker marker : hm.keySet()) {
if (hm.get(marker).equals(deadline)) {
marker.remove();
hm.remove(marker);
}
}
代码示例来源:origin: stackoverflow.com
Marker marker = hashMap.get(id);
if (marker!= null) {
marker.remove();
hashMap.remove(id);
}
代码示例来源:origin: stackoverflow.com
private void removeMarkers() {
for (Marker marker: mMarkers) {
marker.remove();
}
mMarkers.clear();
}
代码示例来源:origin: stackoverflow.com
private ArrayList<Marker> mMarkers;
...
private void removeMarkers() {
for (Marker marker: mMarkers) {
marker.remove();
}
mMarkers.clear();
}
代码示例来源:origin: stackoverflow.com
Marker marker;
if(marker!=null) {
marker.remove();
marker=mMap.addMarker(options);
}
代码示例来源:origin: stackoverflow.com
mCurrLocation.remove();
代码示例来源:origin: net.sf.grinder/grinder-core
/** Package scope for unit tests. */
void setTestLogMarker(Marker marker) {
if (m_testMarker != null) {
m_threadMarker.remove(m_testMarker);
}
m_testMarker = marker;
if (marker != null) {
m_threadMarker.add(marker);
}
}
代码示例来源:origin: stackoverflow.com
@Override
public boolean onMarkerClick(final Marker marker) {
if (marker.equals(myMarker)) {
//handle click here
marker.remove();
}
}
代码示例来源:origin: com.atlassian.selenium/atlassian-performance
public void endTest(Test test) {
System.out.println("Removing marker for " + test);
Marker perfMarker = MarkerFactory.getMarker(PERF_MARKER_TOKEN);
perfMarker.remove(MarkerFactory.getMarker(test.getClass().toString()));
}
代码示例来源:origin: net.sf.grinder/grinder-core
@Override
public void setCurrentRunNumber(int run) {
if (m_runMarker != null) {
m_threadMarker.remove(m_runMarker);
MarkerFactory.getIMarkerFactory().detachMarker(m_runMarker.getName());
}
if (run != -1) {
m_runMarker = MarkerFactory.getMarker("run-" + run);
m_threadMarker.add(m_runMarker);
}
m_runNumber = run;
}
内容来源于网络,如有侵权,请联系作者删除!