Gephi Toolkit Javadoc

org.gephi.datalab.api
Class SearchReplaceController.SearchOptions

java.lang.Object
  extended by org.gephi.datalab.api.SearchReplaceController.SearchOptions
Enclosing interface:
SearchReplaceController

public static class SearchReplaceController.SearchOptions
extends java.lang.Object

Class that wraps the different possible options of search and provides various useful constructors.


Constructor Summary
SearchReplaceController.SearchOptions(Edge[] edgesToSearch, java.util.regex.Pattern regexPattern)
          Setup options to search on edges with the given pattern.
SearchReplaceController.SearchOptions(Edge[] edgesToSearch, java.util.regex.Pattern regexPattern, boolean onlyMatchWholeAttributeValue)
          Setup options to search on edges with the given pattern.
SearchReplaceController.SearchOptions(Node[] nodesToSearch, java.util.regex.Pattern regexPattern)
          Setup options to search on nodes with the given pattern.
SearchReplaceController.SearchOptions(Node[] nodesToSearch, java.util.regex.Pattern regexPattern, boolean onlyMatchWholeAttributeValue)
          Setup options to search on nodes with the given pattern.
 
Method Summary
 java.util.Set<java.lang.Integer> getColumnsToSearch()
          Returns columns indexes to search
 Edge[] getEdgesToSearch()
          Getters and setters
 Node[] getNodesToSearch()
           
 java.util.regex.Pattern getRegexPattern()
           
 int getRegionStart()
           
 java.lang.Integer getStartingColumn()
           
 java.lang.Integer getStartingRow()
           
 boolean isLoopToBeginning()
           
 boolean isOnlyMatchWholeAttributeValue()
           
 boolean isSearchNodes()
           
 boolean isUseRegexReplaceMode()
           
 void resetStatus()
           
 void setColumnsToSearch(AttributeColumn[] columnsToSearch)
          Set column that should be used to search with the current options.
 void setColumnsToSearch(int[] columnsToSearch)
          Set column indexes that should be used to search with the current options.
 void setLoopToBeginning(boolean loopToBeginning)
           
 void setOnlyMatchWholeAttributeValue(boolean onlyMatchWholeAttributeValue)
           
 void setRegexPattern(java.util.regex.Pattern regexPattern)
           
 void setRegionStart(int regionStart)
           
 void setStartingColumn(java.lang.Integer startingColumn)
           
 void setStartingRow(java.lang.Integer startingRow)
           
 void setUseRegexReplaceMode(boolean useRegexReplaceMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchReplaceController.SearchOptions

public SearchReplaceController.SearchOptions(Node[] nodesToSearch,
                                             java.util.regex.Pattern regexPattern)
Setup options to search on nodes with the given pattern. If nodesToSearch is null, all nodes of the graph will be used.

Parameters:
nodesToSearch -
regexPattern -

SearchReplaceController.SearchOptions

public SearchReplaceController.SearchOptions(Edge[] edgesToSearch,
                                             java.util.regex.Pattern regexPattern)
Setup options to search on edges with the given pattern. If edgesToSearch is null, all edges of the graph will be used.

Parameters:
edgesToSearch -
regexPattern -

SearchReplaceController.SearchOptions

public SearchReplaceController.SearchOptions(Node[] nodesToSearch,
                                             java.util.regex.Pattern regexPattern,
                                             boolean onlyMatchWholeAttributeValue)
Setup options to search on nodes with the given pattern. If nodesToSearch is null, all nodes of the graph will be used.

Parameters:
nodesToSearch -
regexPattern -
onlyMatchWholeAttributeValue -

SearchReplaceController.SearchOptions

public SearchReplaceController.SearchOptions(Edge[] edgesToSearch,
                                             java.util.regex.Pattern regexPattern,
                                             boolean onlyMatchWholeAttributeValue)
Setup options to search on edges with the given pattern. If edgesToSearch is null, all edges of the graph will be used.

Parameters:
edgesToSearch -
regexPattern -
onlyMatchWholeAttributeValue -
Method Detail

resetStatus

public void resetStatus()

getEdgesToSearch

public Edge[] getEdgesToSearch()
Getters and setters


getNodesToSearch

public Node[] getNodesToSearch()

isOnlyMatchWholeAttributeValue

public boolean isOnlyMatchWholeAttributeValue()

setOnlyMatchWholeAttributeValue

public void setOnlyMatchWholeAttributeValue(boolean onlyMatchWholeAttributeValue)

getRegexPattern

public java.util.regex.Pattern getRegexPattern()

setRegexPattern

public void setRegexPattern(java.util.regex.Pattern regexPattern)

getStartingColumn

public java.lang.Integer getStartingColumn()

setStartingColumn

public void setStartingColumn(java.lang.Integer startingColumn)

getStartingRow

public java.lang.Integer getStartingRow()

setStartingRow

public void setStartingRow(java.lang.Integer startingRow)

setColumnsToSearch

public void setColumnsToSearch(int[] columnsToSearch)
Set column indexes that should be used to search with the current options. If columnsToSearch is empty, all columns will be used to search.

Parameters:
columnsToSearch - It is safe to specify invalid columns indexes, they will be ignored

setColumnsToSearch

public void setColumnsToSearch(AttributeColumn[] columnsToSearch)
Set column that should be used to search with the current options. If columnsToSearch is empty, all columns will be used to search.

Parameters:
columnsToSearch - It is safe to specify invalid columns, they will be ignored

getColumnsToSearch

public java.util.Set<java.lang.Integer> getColumnsToSearch()
Returns columns indexes to search

Returns:
Set with columns indexes to search

isSearchNodes

public boolean isSearchNodes()

getRegionStart

public int getRegionStart()

setRegionStart

public void setRegionStart(int regionStart)

isUseRegexReplaceMode

public boolean isUseRegexReplaceMode()

setUseRegexReplaceMode

public void setUseRegexReplaceMode(boolean useRegexReplaceMode)

isLoopToBeginning

public boolean isLoopToBeginning()

setLoopToBeginning

public void setLoopToBeginning(boolean loopToBeginning)

Gephi Toolkit Javadoc