/** * Return the binary filename. * * @return */ default String getFileName() { return property(BINARY_FILENAME_PROPERTY_KEY); }
/** * Set the location latitude. * * @param lat */ default void setLocationLatitude(Double lat) { property(BINARY_LAT_KEY, lat); }
/** * Set the location longitude. * * @param lon */ default void setLocationLongitude(Double lon) { property(BINARY_LON_KEY, lon); }
/** * Return the binary mime type of the node. * * @return */ default String getMimeType() { return property(BINARY_CONTENT_TYPE_PROPERTY_KEY); }
/** * Set the binary mime type of the node. * * @param mimeType * @return Fluent API */ default BinaryGraphField setMimeType(String mimeType) { property(BINARY_CONTENT_TYPE_PROPERTY_KEY, mimeType); return this; }
/** * Return the location latitude. * * @return */ default Double getLocationLatitude() { return property(BINARY_LAT_KEY); }
/** * Return the location longitude. * * @return */ default Double getLocationLongitude() { return property(BINARY_LON_KEY); }
/** * Set the binary filename. * * @param fileName * @return Fluent API */ default BinaryGraphField setFileName(String fileName) { property(BINARY_FILENAME_PROPERTY_KEY, fileName); return this; }
/** * Set the binary image dominant color. * * @param dominantColor * @return Fluent API */ default BinaryGraphField setImageDominantColor(String dominantColor) { property(BINARY_IMAGE_DOMINANT_COLOR_PROPERTY_KEY, dominantColor); return this; }
/** * Return the binary image dominant color. * * @return */ default String getImageDominantColor() { return property(BINARY_IMAGE_DOMINANT_COLOR_PROPERTY_KEY); }
/** * Return the location altitude. * * @return */ default Integer getLocationAltitude() { return property(BINARY_ALT_KEY); }
/** * Set the location altitude. * * @param alt */ default void setLocationAltitude(Integer alt) { property(BINARY_ALT_KEY, alt); }
/** * Return the stored focal point of the image. * * @return Focal point or null if no focal point has been set */ default FocalPoint getImageFocalPoint() { Float x = property(BINARY_IMAGE_FOCAL_POINT_X); Float y = property(BINARY_IMAGE_FOCAL_POINT_Y); if (x == null || y == null) { return null; } return new FocalPoint(x, y); }