@Override public void setActive(boolean active) { super.setActive(active); for (DeletedCoordinateListener listener : listeners) { listener.activated(active); } }
/** * Broadcast to all the listeners the current event and the point where it was clicked on the map. * * @param point Click point in the map. * @param event Input event. */ private void broadcastCoordinate(Point point, InputEvent event) { if (point == null) { return; } for (DeletedCoordinateListener listener : listeners) { listener.deletedCoordinate(point, event); } }