|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ilog.views.maps.beans.IlvJCoordinateSystemEditorPanel
public class IlvJCoordinateSystemEditorPanel
This class defines a panel to view and edit coordinate systems.
This component is packaged as a Bean and is designed to be used very easily
in a JAVA development environment supporting visual programming with Beans.
setCoordinateSystem(IlvCoordinateSystem),
getCoordinateSystem(),
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
CANCEL_DIALOG_COMMAND
Command used when the user cancels the selection dialog returned in createDialog(JComponent, String, ActionListener) |
static String |
COORDINATE_SYSTEM_CHANGED
Event type thrown when coordinate system is changed. |
static String |
DATUM_CHANGED
Event type thrown when datum class is changed. |
static String |
ELLIPSOID_CHANGED
Event type thrown when ellipsoid class is changed. |
static String |
OK_DIALOG_COMMAND
Command used when the user accepts the selection dialog returned in createDialog(JComponent, String, ActionListener) |
static String |
PROJECTION_CHANGED
Event type thrown when projection class is changed. |
static String |
PROJECTION_PROPERTY_CHANGED
Event type thrown when projection properties are changed. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvJCoordinateSystemEditorPanel()
Creates an instance of the Projection Editor Panel. |
|
| Method Summary | |
|---|---|
void |
addCoordinateSystemChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
JDialog |
createDialog(JComponent parentComponent,
String title,
ActionListener listener)
Creates a dialog containing an IlvCoordinateSystemEditorPanel that will invoke the specified action listener when "OK" or "CANCEL" actions are performed. |
IlvProjectionDictionary |
createProjectionDictionary()
Creates the IlvProjectionDictionary used by this editor. |
void |
fireCoordSysChanged(String reason)
Fires a PropertyChangeEvent event when the projection changes. |
IlvCoordinateSystem |
getCoordinateSystem()
Returns the currently edited coordinate system. |
IlvHorizontalDatum |
getDatum()
Returns The currently selected datum. |
JButton |
getDatumInformationButton()
Returns the datum information button. |
JComboBox |
getDatumList()
Returns The datum selection list. |
IlvEllipsoid |
getEllipsoid()
Returns The currently selected ellipsoid. |
JButton |
getEllipsoidInformationButton()
Returns the ellipsoid information button. |
JComboBox |
getEllipsoidList()
Returns The ellipsoid selection list. |
IlvProjection |
getProjection()
Returns The currently selected projection. |
JComboBox |
getProjectionList()
Returns The projection selection list. |
boolean |
isAdvancedCheckBoxVisible()
Returns true if the "advanced" check box of the editor is visible. |
boolean |
isAdvancedPanelsVisible()
Returns the visibility of the advanced panels of the editor. |
boolean |
isDatumPanelVisible()
Returns true if the datum panel of the editor is visible. |
boolean |
isEllipsoidPanelVisible()
Returns true if the ellipsoid panel of the editor is visible. |
boolean |
isProjectionPropertySheetVisible()
Returns true if the projection property sheet of the editor is visible. |
void |
removeCoordinateSystemChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
setAdvancedCheckBoxVisible(boolean boxVisible)
Sets the visibility of the "advanced" check box of the editor. |
void |
setAdvancedPanelsVisible(boolean advancedPanelVisible)
Sets the visibility of the advanced panels of the editor. |
void |
setCoordinateSystem(IlvCoordinateSystem cs)
Sets the coordinate system displayed in the panel. |
void |
setDatumPanelVisible(boolean datumPanelVisible)
Sets the visibility of the datum panel of the editor. |
void |
setEllipsoidPanelVisible(boolean ellipsoidPanelVisible)
Sets the visibility of the ellipsoid panel of the editor. |
void |
setEnabled(boolean enabled)
Sets whether or not this component is enabled. |
void |
setProjectionPropertySheetVisible(boolean sheetVisible)
Sets the visibility of the projection property sheet of the editor. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CANCEL_DIALOG_COMMAND
createDialog(JComponent, String, ActionListener)
public static final String OK_DIALOG_COMMAND
createDialog(JComponent, String, ActionListener)
public static final String PROJECTION_CHANGED
public static final String ELLIPSOID_CHANGED
public static final String DATUM_CHANGED
public static final String COORDINATE_SYSTEM_CHANGED
public static final String PROJECTION_PROPERTY_CHANGED
| Constructor Detail |
|---|
public IlvJCoordinateSystemEditorPanel()
| Method Detail |
|---|
public JButton getDatumInformationButton()
public JButton getEllipsoidInformationButton()
public IlvCoordinateSystem getCoordinateSystem()
public void setCoordinateSystem(IlvCoordinateSystem cs)
cs - Initial coordinate system.public void setEnabled(boolean enabled)
setEnabled in class JComponentJComponent.setEnabled(boolean)public IlvHorizontalDatum getDatum()
public JComboBox getDatumList()
public IlvEllipsoid getEllipsoid()
public JComboBox getEllipsoidList()
public IlvProjection getProjection()
public JComboBox getProjectionList()
public void fireCoordSysChanged(String reason)
PropertyChangeEvent event when the projection changes.
reason - Reason for the event.public void addCoordinateSystemChangeListener(PropertyChangeListener listener)
PropertyChangeListener to the listener list. PROJECTION_CHANGED
DATUM_CHANGED
ELLIPSOID_CHANGED
PROJECTION_PROPERTY_CHANGED
COORDINATE_SYSTEM_CHANGED
listener - The PropertyChangeListener to be added.public void removeCoordinateSystemChangeListener(PropertyChangeListener listener)
PropertyChangeListener from the listener list.
listener - The PropertyChangeListener to be removed.public boolean isDatumPanelVisible()
true if the datum panel of the editor is visible.
true if the datum panel is visible, else false.public void setDatumPanelVisible(boolean datumPanelVisible)
datumPanelVisible - A boolean value -- true to make the panel visible, false to
hide it.public boolean isEllipsoidPanelVisible()
true if the ellipsoid panel of the editor is visible.
true if the ellipsoid panel is visible, else false.public void setEllipsoidPanelVisible(boolean ellipsoidPanelVisible)
ellipsoidPanelVisible - a boolean value -- true to make the panel visible, false to
hide it.public boolean isProjectionPropertySheetVisible()
true if the projection property sheet of the editor is visible.
true if the projection property sheet is visible, else false.public void setAdvancedCheckBoxVisible(boolean boxVisible)
boxVisible - a boolean value -- true to make the check box visible, false
to hide it.public boolean isAdvancedCheckBoxVisible()
true if the "advanced" check box of the editor is visible.
true if the check box is visible, else false.public void setProjectionPropertySheetVisible(boolean sheetVisible)
sheetVisible - a boolean value -- true to make the sheet visible, false to
hide it.public void setAdvancedPanelsVisible(boolean advancedPanelVisible)
advancedPanelVisible - a boolean value -- true to make the panels visible, false to
hide it.setProjectionPropertySheetVisible(boolean),
setEllipsoidPanelVisible(boolean),
setDatumPanelVisible(boolean)public boolean isAdvancedPanelsVisible()
true
is returned.
public JDialog createDialog(JComponent parentComponent,
String title,
ActionListener listener)
IlvCoordinateSystemEditorPanel that will invoke the specified action listener when "OK" or "CANCEL" actions are performed.
parentComponent - Determines the frame in which the dialog is displayed.title - Title of the dialog.listener - Listener to be invoked when the dialog closes.
JDialog.CANCEL_DIALOG_COMMAND,
OK_DIALOG_COMMANDpublic IlvProjectionDictionary createProjectionDictionary()
IlvProjectionDictionary used by this editor.
This default implementation returns a new IlvProjectionDictionary.
IlvProjectionDictionary used by this editor.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||