org.apache.batik.apps.svgbrowser
public class FindDialog extends JDialog implements ActionMap
| Nested Class Summary | |
|---|---|
| protected class | FindDialog.ClearButtonAction
The action associated to the 'clear' button. |
| protected class | FindDialog.CloseButtonAction
The action associated to the 'close' button. |
| protected class | FindDialog.FindButtonAction
The action associated to the 'find' button. |
| Field Summary | |
|---|---|
| protected static ResourceBundle | bundle
The resource bundle |
| protected ButtonFactory | buttonFactory The button factory |
| protected JCheckBox | caseSensitive The case sensitive button. |
| protected JButton | clearButton The next button. |
| protected JButton | closeButton The cancel button. |
| protected int | currentIndex The current index in the TextNode's string. |
| static String | CLEAR_ACTION |
| static String | CLOSE_ACTION |
| protected JButton | findButton The next button. |
| static String | FIND_ACTION |
| protected GraphicsNode | gvtRoot The GVT root into which text is searched. |
| protected JRadioButton | highlightButton The highlight button. |
| protected JRadioButton | highlightCenterButton The highlight and center button. |
| protected JRadioButton | highlightCenterZoomButton The highlight center and zoom button. |
| protected Map | listeners
The map that contains the listeners |
| protected static ResourceManager | resources
The resource manager |
| protected static String | RESOURCES
The resource file name |
| protected JTextField | search The TextField that owns the text to search. |
| protected JSVGCanvas | svgCanvas The canvas. |
| protected GVTTreeWalker | walker The GVTTreeWalker used to scan the GVT Tree. |
| Constructor Summary | |
|---|---|
| FindDialog(JSVGCanvas svgCanvas)
Constructs a new FindDialog. | |
| FindDialog(Frame owner, JSVGCanvas svgCanvas)
Constructs a new FindDialog. | |
| Method Summary | |
|---|---|
| protected JPanel | createButtonsPanel()
Creates the buttons panel |
| protected JPanel | createFindPanel()
Creates the Find panel. |
| protected JPanel | createShowResultPanel() |
| Action | getAction(String key)
Returns the action associated with the given string
or null on error |
| protected GraphicsNode | getNext(String text)
Returns the next GraphicsNode that matches the specified string or null
if any.
|
| protected int | match(GraphicsNode node, String text, int index)
Returns the index inside the specified TextNode of the
specified text, or -1 if not found.
|
| void | setGraphicsNode(GraphicsNode gvtRoot)
Sets the graphics node into which text is searched. |
| protected void | showSelectedGraphicsNode()
Shows the current selected TextNode. |
Parameters: key the key mapped with the action to get
Throws: MissingListenerException if the action is not found
Parameters: text the text to match
Parameters: node the graphics node to check text the text use to match index the index from which to start
Parameters: gvtRoot the GVT root node