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 SummaryConstructors Constructor Description SnapshotUpdater(byte[] snapshotBytes, java.util.function.Consumer<java.awt.image.BufferedImage> callback)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.awt.image.BufferedImage>doInBackground()protected voiddone()
 
- 
- 
- 
Method Detail- 
doInBackgroundprotected java.util.Optional<java.awt.image.BufferedImage> doInBackground() - Specified by:
- doInBackgroundin class- javax.swing.SwingWorker<java.util.Optional<java.awt.image.BufferedImage>,java.lang.Void>
 
 - 
doneprotected void done() - Overrides:
- donein class- javax.swing.SwingWorker<java.util.Optional<java.awt.image.BufferedImage>,java.lang.Void>
 
 
- 
 
-