Lines Matching defs:photo

212     // Look for photo links.
213 Photo photo = Photo.matchURL(url, text);
214 if (photo != null) {
215 return photo;
218 // Look for photo links.
952 /** Represents a link to a Picasa photo or album. */
954 /** Pattern for an album or photo URL. */
958 "http://picasaweb.google.com/([^/?#&]+)/+((?!searchbrowse)[^/?#&]+)(?:/|/photo)?(?:\\?[^#]*)?(?:#(.*))?");
962 private String photo; // null for albums
964 public Photo(String user, String album, String photo, String text) {
968 this.photo = photo;
973 public String getPhoto() { return photo; }
978 /** Returns a Photo object if the given url is to a photo or album. */
1011 /** Returns the URL for a particular photo. */
1012 public static String getPhotoURL(String user, String album, String photo) {
1013 return "http://picasaweb.google.com/" + user + "/" + album + "/photo#"
1014 + photo;
1018 /** Represents a link to a Flickr photo or album. */
1020 /** Pattern for a user album or photo URL. */
1031 private String photo; // null for user album
1035 public FlickrPhoto(String user, String photo, String grouping,
1042 // Don't consider slide show URL a photo
1043 this.photo = (!"show".equals(photo) ? photo : null);
1048 this.photo = null;
1050 this.groupingId = photo;
1055 public String getPhoto() { return photo; }
1063 * Returns a FlickrPhoto object if the given url is to a photo or Flickr
1099 } else if (photo != null) {
1100 return getPhotoURL(user, photo);
1121 /** Returns the URL for a particular photo. */
1122 public static String getPhotoURL(String user, String photo) {
1123 return "http://flickr.com/photos/" + user + "/" + photo;
1126 /** Returns the URL for a user tag photo set. */