/** * Returns the index inside the specified TextNode of the * specified text, or -1 if not found. * * @param node the graphics node to check * @param text the text use to match * @param index the index from which to start */ protected int match(GraphicsNode node, String text, int index) { if (!(node instanceof TextNode) || !node.isVisible() || text == null || text.length() == 0) { return -1; } String s = ((TextNode)node).getText(); if (!caseSensitive.isSelected()) { s = s.toLowerCase(); text = text.toLowerCase(); } return s.indexOf(text, index); }
/** * Returns the index inside the specified TextNode of the * specified text, or -1 if not found. * * @param node the graphics node to check * @param text the text use to match * @param index the index from which to start */ protected int match(GraphicsNode node, String text, int index) { if (!(node instanceof TextNode) || !node.isVisible() || text == null || text.length() == 0) { return -1; } String s = ((TextNode)node).getText(); if (!caseSensitive.isSelected()) { s = s.toLowerCase(); text = text.toLowerCase(); } return s.indexOf(text, index); }
String text = textNode.getText(); String pattern = search.getText(); if (!caseSensitive.isSelected()) {
String text = textNode.getText(); String pattern = search.getText(); if (!caseSensitive.isSelected()) {