|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCRSChooser
public class CRSChooser
Creates a Control for choosing a Coordinate Reference System.
Constructor Summary | |
---|---|
CRSChooser()
|
|
CRSChooser(Controller parentPage)
|
Method Summary | |
---|---|
void |
clearSearch()
|
Control |
createControl(Composite parent)
Creates the CRS PreferencePage root control with no CRS selected |
Control |
createControl(Composite parent,
CoordinateReferenceSystem crs)
Creates the CRS PreferencePage root control with a CRS already selected |
protected CoordinateReferenceSystem |
createCRS(String code)
creates a CRS from a code when the appropriate CRSAuthorityFactory is unknown |
protected void |
fillCodesList()
populates the codes list with a filtered list of CRS names |
protected Set<String> |
filterCRSNames(String[] filter)
filters all CRS Names from all available CRS authorities |
CoordinateReferenceSystem |
getCRS()
returns the selected CRS |
void |
gotoCRS(CoordinateReferenceSystem crs)
Takes in a CRS, finds it in the list and highlights it |
protected boolean |
matchesFilter(String input,
String[] filter)
checks if all keywords in filter array are in input |
void |
setController(Controller controller)
|
void |
setFocus()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRSChooser(Controller parentPage)
public CRSChooser()
Method Detail |
---|
public void setFocus()
public Control createControl(Composite parent, CoordinateReferenceSystem crs)
parent
- PreferencePage for this choosercrs
- current CRS for the associated map
public void clearSearch()
public void gotoCRS(CoordinateReferenceSystem crs)
crs
- public Control createControl(Composite parent)
parent
- PreferencePage for this chooser
protected boolean matchesFilter(String input, String[] filter)
input
- test stringfilter
- array of keywords
protected Set<String> filterCRSNames(String[] filter)
filter
- array of keywords
protected void fillCodesList()
protected CoordinateReferenceSystem createCRS(String code)
code
- CRS code
public CoordinateReferenceSystem getCRS()
public void setController(Controller controller)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |