|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
schmitzm.geotools.gui.CRSSelectionDialog
public class CRSSelectionDialog
Dieser Dialog stellt verschiedene CoordinateReferenceSystem
(CRS)
zur Auswahl. Neben einer Auswahl von vordefinierten CRS, wird WGS-84, sowie
(optional) ein beliebiges Standard-CRS dargestellt. Zudem kann in einem
Text-Feld die WKT-Spezifikation manuell eingegeben oder editiert werden.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected SelectionInputOption.Combo<String> |
authoritySelect
Auswahl-Feld fuer die Authority. |
protected ButtonGroup |
buttonGroup
Gruppe der Auswahl-Buttons. |
protected JButton |
cancelButton
Der Abbrechen-Button des Dialogs. |
protected JPanel |
contentPane
Panel (mit GridBagLayout ), in dem die Meldung und Radio-Buttons
angezeigt werden. |
protected SelectionInputOption.Combo<CoordinateReferenceSystem> |
crsSelect
Auswahl-Feld fuer das Authority-CRS. |
protected JRadioButton |
defaultButton
Radio-Button fuer das Standard-CRS. |
protected CoordinateReferenceSystem |
defaultCRS
Das als "Standard" angebotene CRS. |
protected JTextArea |
messageLabel
Label in dem die Meldung angezeigt wird. |
protected JButton |
okButton
Der OK-Button des Dialogs. |
protected Component |
parent
Dem Dialog uebergeordnete Komponente. |
protected JRadioButton |
predefinedButton
Radio-Button fuer ein vordefiniertes CRS. |
protected static SortedMap<String,SortedMap<String,CoordinateReferenceSystem>> |
predefinedCRS
Beinhaltet die vordefinierten CRS. |
protected JCheckBox |
rememberCheckbox
Die Checkbox "Immer diese Auswahl treffen" des Dialogs. |
protected CoordinateReferenceSystem |
selectedCRS
Das ausgewaehlte CRS. |
protected JRadioButton |
userButton
Radio-Button fuer ein benutzerdefiniertes CRS. |
protected JRadioButton |
wgs84Button
Radio-Button fuer das WGS84-CRS. |
protected JScrollPane |
wktScrollPane
ScrollPane, in dem sich die TextArea fuer die WKT-Definition befinden. |
protected JTextArea |
wktTextArea
Bereich, in dem das CRS als WKT angezeigt wird. |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CRSSelectionDialog(Component parent,
String message,
boolean cancelAllowed,
boolean rememberOption,
CoordinateReferenceSystem defaultCRS)
Erzeugt einen neuen Fehler-Dialog. |
Method Summary | |
---|---|
protected JRadioButton |
createRadioButton(String label)
Erzeugt einen neuen Radio-Button und fuegt diesen in die buttonGroup ein. |
CoordinateReferenceSystem |
getCRS()
Liefert das ausgewaehlte CRS. |
String |
getMessage()
Liefert die angezeigte Meldung. |
AbstractButton |
getSelectedButton()
Liefert den ausgewaehlen Radio-Button. |
protected void |
initPredefinedCRS()
Initialisiert die zur Verfuegung stehenden CRS. |
boolean |
isCanceled()
Prueft, ob der Dialog abgebrochen wurde. |
boolean |
isConfirmed()
Prueft, ob der Dialog via OK beendet wurde. |
boolean |
isRememberOptionSet()
Prueft, ob die "Immer diese Auswahl treffen" Option im Dialog angewaehlt ist. |
protected void |
performButton(AbstractButton button)
Fuehrt die Aktion eines Buttons aus (Radio- oder Dialog-Button). |
protected void |
resetWKT(CoordinateReferenceSystem crs)
Belegt das WKT-Feld neu. |
static CoordinateReferenceSystem |
show(Component parent,
String message,
boolean cancelAllowed,
boolean alwaysOption,
CoordinateReferenceSystem defaultCRS)
Zeigt einen CRS-Auswahl-Dialog an. |
static CoordinateReferenceSystem |
show(Component parent,
String message,
CoordinateReferenceSystem defaultCRS)
Zeigt einen CRS-Auswahl-Dialog an, der abgebrochen werden kann. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static SortedMap<String,SortedMap<String,CoordinateReferenceSystem>> predefinedCRS
protected JTextArea messageLabel
protected JRadioButton wgs84Button
protected JRadioButton defaultButton
protected JRadioButton predefinedButton
protected SelectionInputOption.Combo<String> authoritySelect
protected SelectionInputOption.Combo<CoordinateReferenceSystem> crsSelect
protected JRadioButton userButton
protected ButtonGroup buttonGroup
protected JTextArea wktTextArea
protected JScrollPane wktScrollPane
protected JCheckBox rememberCheckbox
protected JButton okButton
protected JButton cancelButton
protected CoordinateReferenceSystem defaultCRS
protected CoordinateReferenceSystem selectedCRS
protected JPanel contentPane
GridBagLayout
), in dem die Meldung und Radio-Buttons
angezeigt werden.
protected Component parent
Constructor Detail |
---|
public CRSSelectionDialog(Component parent, String message, boolean cancelAllowed, boolean rememberOption, CoordinateReferenceSystem defaultCRS)
parent
- uebergeordnetes Fenster (kann null
sein!)message
- einleitende Meldung (kann null
sein!)cancelAllowed
- wenn false
, kann der Dialog nicht abgebrochen werdenrememberOption
- wenn true
wird eine Checkbox "Immer diese Auswahl treffen"
angezeigtdefaultCRS
- das als Standard angebotene CRS (kann null
sein)Method Detail |
---|
protected void initPredefinedCRS()
protected void performButton(AbstractButton button)
button
- der aktivierte Buttonprotected JRadioButton createRadioButton(String label)
buttonGroup
ein.
label
- Label fuer den Radio-Buttonprotected void resetWKT(CoordinateReferenceSystem crs)
crs
- darzustellendes CRSpublic String getMessage()
public AbstractButton getSelectedButton()
public boolean isCanceled()
public boolean isConfirmed()
public boolean isRememberOptionSet()
false
solange der OK-Button noch nicht betaetigt wurdepublic CoordinateReferenceSystem getCRS()
null
solange der OK-Button noch nicht betaetigt wurdepublic static CoordinateReferenceSystem show(Component parent, String message, boolean cancelAllowed, boolean alwaysOption, CoordinateReferenceSystem defaultCRS)
parent
- uebergeordnetes Fenster (kann null
sein!)message
- einleitende Meldung (kann null
sein!)cancelAllowed
- wenn false
, kann der Dialog nicht abgebrochen werdenrememberOption
- wenn true
wird eine Checkbox "Immer diese Auswahl treffen"
angezeigtdefaultCRS
- das als Standard angebotene CRS (kann null
sein)public static CoordinateReferenceSystem show(Component parent, String message, CoordinateReferenceSystem defaultCRS)
parent
- uebergeordnetes Fenster (kann null
sein!)message
- einleitende Meldung (kann null
sein!)defaultCRS
- das als Standard angebotene CRS (kann null
sein)CRS#decode(String, boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |