Class ReportingResourceWorkspace.SnapshotUpdater
- java.lang.Object
-
- javax.swing.SwingWorker<java.util.Optional<java.awt.image.BufferedImage>,java.lang.Void>
-
- com.inductiveautomation.reporting.designer.workspace.ReportingResourceWorkspace.SnapshotUpdater
-
- All Implemented Interfaces:
java.lang.Runnable
,java.util.concurrent.Future<java.util.Optional<java.awt.image.BufferedImage>>
,java.util.concurrent.RunnableFuture<java.util.Optional<java.awt.image.BufferedImage>>
- Enclosing class:
- ReportingResourceWorkspace
public static class ReportingResourceWorkspace.SnapshotUpdater extends javax.swing.SwingWorker<java.util.Optional<java.awt.image.BufferedImage>,java.lang.Void>
Background worker that resizes a byte[] to 250x300 for display in thumbnails/preview panels. Provide a callback to actually handle the results.
-
-
Constructor Summary
Constructors Constructor Description SnapshotUpdater(byte[] snapshotBytes, java.util.function.Consumer<java.awt.image.BufferedImage> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.awt.image.BufferedImage>
doInBackground()
protected void
done()
-
-
-
Method Detail
-
doInBackground
protected java.util.Optional<java.awt.image.BufferedImage> doInBackground()
- Specified by:
doInBackground
in classjavax.swing.SwingWorker<java.util.Optional<java.awt.image.BufferedImage>,java.lang.Void>
-
done
protected void done()
- Overrides:
done
in classjavax.swing.SwingWorker<java.util.Optional<java.awt.image.BufferedImage>,java.lang.Void>
-
-