org.icepdf.ri.common.fonts
Class FindFontsTask

java.lang.Object
  extended by org.icepdf.ri.common.fonts.FindFontsTask

public class FindFontsTask
extends java.lang.Object

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. FontDialog

Since:
6.1.3

Constructor Summary
FindFontsTask(FontDialog fontDialog, SwingController controller, java.util.ResourceBundle messageBundle)
          Creates a new instance of the SearchTextTask.
 
Method Summary
 int getCurrent()
          Gets the page that is currently being searched by this task.
 java.lang.String getMessage()
          Returns the most recent dialog message, or null if there is no current dialog message.
 void go()
          Start the task, start searching the document for the pattern.
 boolean isCurrentlySearching()
           
 boolean isDone()
          Find out if the task has completed.
 void stop()
          Stop the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindFontsTask

public FindFontsTask(FontDialog fontDialog,
                     SwingController controller,
                     java.util.ResourceBundle messageBundle)
Creates a new instance of the SearchTextTask.

Parameters:
fontDialog - parent search panel that start this task via an action
controller - root controller object
messageBundle - message bundle used for dialog text.
Method Detail

go

public void go()
Start the task, start searching the document for the pattern.


getCurrent

public int getCurrent()
Gets the page that is currently being searched by this task.

Returns:
current page being processed.

stop

public void stop()
Stop the task.


isDone

public boolean isDone()
Find out if the task has completed.

Returns:
true if task is done, false otherwise.

isCurrentlySearching

public boolean isCurrentlySearching()

getMessage

public java.lang.String getMessage()
Returns the most recent dialog message, or null if there is no current dialog message.

Returns:
current message dialog text.