Module is.codion.swing.common.ui
Interface ImagePanel.ImageValue
- All Superinterfaces:
Observable<BufferedImage>,Observer<BufferedImage>,Value<BufferedImage>
- Enclosing class:
ImagePanel
Controls the image displayed in an
ImagePanel-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.common.reactive.value.Value
Value.Builder<T,B extends Value.Builder<T, B>>, Value.BuilderFactory, Value.Notify, Value.Validator<T> -
Method Summary
Methods inherited from interface is.codion.common.reactive.observer.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, get, getOrThrow, getOrThrow, is, isNot, isNull, isNullable, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListenerMethods inherited from interface is.codion.common.reactive.value.Value
addValidator, clear, link, link, map, observable, removeValidator, set, unlink, unlink, validate
-
Method Details
-
set
void set(byte[] imageBytes) - Parameters:
imageBytes- the image bytes
-
set
- Parameters:
imagePath- the path from which to load the image- Throws:
IOException- in case image loading failed
-
set
- Parameters:
image- the imageformat- the format- Throws:
IOException- in case of an exceptionIllegalArgumentException- in case no writer was found for the given format
-