MCPcopy
hub / github.com/coobird/thumbnailator / Size

Interface Size

src/main/java/net/coobird/thumbnailator/geometry/Size.java:37–50  ·  view source on GitHub ↗

This interface is implemented by classes which calculate the size of an object inside of an enclosing object. @author coobird @since 0.3.4

Source from the content-addressed store, hash-verified

35 *
36 */
37public interface Size {
38 /**
39 * Calculates the size of the object.
40 *
41 * @param width Width of the object which encloses the object
42 * for which the size should be determined.
43 * @param height Height of the object which encloses the object
44 * for which the size should be determined.
45 * @return Calculated size of the object.
46 * @throws IllegalArgumentException If the width and/or height is less than
47 * or equal to {@code 0}.
48 */
49 public Dimension calculate(int width, int height);
50}

Callers 5

calculateMethod · 0.65
applyMethod · 0.65
applyMethod · 0.65
applyMethod · 0.65
calculateSourceRegionMethod · 0.65

Implementers 4

AbsoluteSizesrc/main/java/net/coobird/thumbnailato
RelativeSizesrc/main/java/net/coobird/thumbnailato
Coordinatesrc/main/java/net/coobird/thumbnailato
Regionsrc/main/java/net/coobird/thumbnailato

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…