- java.lang.Object
-
- javax.swing.SwingWorker<T,V>
-
- org.icepdf.ri.common.AbstractTask<Void,Font>
-
- org.icepdf.ri.common.fonts.FindFontsTask
-
- All Implemented Interfaces:
Runnable,Future<Void>,RunnableFuture<Void>
public class FindFontsTask extends AbstractTask<Void,Font>
This class is a utility for finding and reporting all font types in a document. Each page in the document is checked for valid font resources, if found the fonts are added to the calling FontDialog for addition to a JTree of know document fonts.- Since:
- 6.1.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue
-
-
Field Summary
-
Fields inherited from class org.icepdf.ri.common.AbstractTask
controller, lengthOfTask, messageBundle, taskProgress, taskStatusMessage, workerPanel
-
-
Constructor Summary
Constructors Constructor Description FindFontsTask(FontHandlerPanel fontHandlerPanel, Controller controller, ResourceBundle messageBundle)Creates a new instance of the SearchTextTask.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VoiddoInBackground()protected voiddone()protected voidprocess(List<Font> fonts)-
Methods inherited from class org.icepdf.ri.common.AbstractTask
getMessage
-
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
-
-
-
-
Constructor Detail
-
FindFontsTask
public FindFontsTask(FontHandlerPanel fontHandlerPanel, Controller controller, ResourceBundle messageBundle)
Creates a new instance of the SearchTextTask.- Parameters:
fontHandlerPanel- parent search panel that start this task via an actioncontroller- root controller objectmessageBundle- message bundle used for dialog text.
-
-
Method Detail
-
doInBackground
protected Void doInBackground()
- Specified by:
doInBackgroundin classSwingWorker<Void,Font>
-
process
protected void process(List<Font> fonts)
- Overrides:
processin classSwingWorker<Void,Font>
-
done
protected void done()
- Overrides:
donein classSwingWorker<Void,Font>
-
-