public static class SearchReplaceController.SearchOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
private HashSet<Integer> |
columnsToSearch |
private org.gephi.graph.api.Edge[] |
edgesToSearch |
private boolean |
loopToBeginning |
private org.gephi.graph.api.Node[] |
nodesToSearch |
private boolean |
onlyMatchWholeAttributeValue |
private Pattern |
regexPattern |
private int |
regionStart |
private boolean |
searchNodes |
private Integer |
startingColumn |
private Integer |
startingRow |
private boolean |
useRegexReplaceMode |
| Constructor and Description |
|---|
SearchReplaceController.SearchOptions(org.gephi.graph.api.Edge[] edgesToSearch,
Pattern regexPattern)
Setup options to search on edges with the given pattern.
|
SearchReplaceController.SearchOptions(org.gephi.graph.api.Edge[] edgesToSearch,
Pattern regexPattern,
boolean onlyMatchWholeAttributeValue)
Setup options to search on edges with the given pattern.
|
SearchReplaceController.SearchOptions(org.gephi.graph.api.Node[] nodesToSearch,
Pattern regexPattern)
Setup options to search on nodes with the given pattern.
|
SearchReplaceController.SearchOptions(org.gephi.graph.api.Node[] nodesToSearch,
Pattern regexPattern,
boolean onlyMatchWholeAttributeValue)
Setup options to search on nodes with the given pattern.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
checkEdgesToSearch()
Sets edgesToSearch as all edges in the graph if they are null or empty array.
|
private void |
checkNodesToSearch()
Sets nodesToSearch as all nodes in the graph if they are null or empty array.
|
Set<Integer> |
getColumnsToSearch()
Returns columns indexes to search
|
org.gephi.graph.api.Edge[] |
getEdgesToSearch()
Getters and setters
|
org.gephi.graph.api.Node[] |
getNodesToSearch() |
Pattern |
getRegexPattern() |
int |
getRegionStart() |
Integer |
getStartingColumn() |
Integer |
getStartingRow() |
boolean |
isLoopToBeginning() |
boolean |
isOnlyMatchWholeAttributeValue() |
boolean |
isSearchNodes() |
boolean |
isUseRegexReplaceMode() |
void |
resetStatus() |
void |
setColumnsToSearch(org.gephi.graph.api.Column[] 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(Pattern regexPattern) |
void |
setRegionStart(int regionStart) |
void |
setStartingColumn(Integer startingColumn) |
void |
setStartingRow(Integer startingRow) |
void |
setUseRegexReplaceMode(boolean useRegexReplaceMode) |
private boolean searchNodes
private org.gephi.graph.api.Node[] nodesToSearch
private org.gephi.graph.api.Edge[] edgesToSearch
private Integer startingRow
private Integer startingColumn
private boolean loopToBeginning
private Pattern regexPattern
private boolean useRegexReplaceMode
private int regionStart
private boolean onlyMatchWholeAttributeValue
public SearchReplaceController.SearchOptions(org.gephi.graph.api.Node[] nodesToSearch,
Pattern regexPattern)
nodesToSearch - regexPattern - public SearchReplaceController.SearchOptions(org.gephi.graph.api.Edge[] edgesToSearch,
Pattern regexPattern)
edgesToSearch - regexPattern - public SearchReplaceController.SearchOptions(org.gephi.graph.api.Node[] nodesToSearch,
Pattern regexPattern,
boolean onlyMatchWholeAttributeValue)
nodesToSearch - regexPattern - onlyMatchWholeAttributeValue - public SearchReplaceController.SearchOptions(org.gephi.graph.api.Edge[] edgesToSearch,
Pattern regexPattern,
boolean onlyMatchWholeAttributeValue)
edgesToSearch - regexPattern - onlyMatchWholeAttributeValue - public void resetStatus()
private void checkNodesToSearch()
private void checkEdgesToSearch()
public org.gephi.graph.api.Edge[] getEdgesToSearch()
public org.gephi.graph.api.Node[] getNodesToSearch()
public boolean isOnlyMatchWholeAttributeValue()
public void setOnlyMatchWholeAttributeValue(boolean onlyMatchWholeAttributeValue)
public Pattern getRegexPattern()
public void setRegexPattern(Pattern regexPattern)
public Integer getStartingColumn()
public void setStartingColumn(Integer startingColumn)
public Integer getStartingRow()
public void setStartingRow(Integer startingRow)
public void setColumnsToSearch(int[] columnsToSearch)
columnsToSearch - It is safe to specify invalid columns indexes, they will be ignoredpublic void setColumnsToSearch(org.gephi.graph.api.Column[] columnsToSearch)
columnsToSearch - It is safe to specify invalid columns, they will be ignoredpublic Set<Integer> getColumnsToSearch()
public boolean isSearchNodes()
public int getRegionStart()
public void setRegionStart(int regionStart)
public boolean isUseRegexReplaceMode()
public void setUseRegexReplaceMode(boolean useRegexReplaceMode)
public boolean isLoopToBeginning()
public void setLoopToBeginning(boolean loopToBeginning)
Copyright © 2007–2016 Gephi Consortium. All rights reserved.