|
||||||||||
| 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.JLabel
ilog.views.maps.beans.IlvJMouseCoordinateViewer
public class IlvJMouseCoordinateViewer
This class defines a Swing text field that can display the coordinates of the
mouse when it is on top of an IlvManagerView displaying a map.
You can change the way the coordinates and altitudes are displayed by setting
a IlvDisplayPreferencesPropertyon the view manager.
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.
IlvCoordinateSystemProperty,
IlvAltitudeProviderProperty,
IlvDisplayPreferencesProperty,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JLabel |
|---|
JLabel.AccessibleJLabel |
| 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 |
|---|
| Fields inherited from class javax.swing.JLabel |
|---|
labelFor |
| 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 javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvJMouseCoordinateViewer()
Creates a new coordinate viewer. |
|
| Method Summary | |
|---|---|
String |
getCoordinateText(int x,
int y)
Displays the coordinates of the mouse position. |
String |
getHtmlTableProperties()
Returns the html table Properties. |
IlvManagerView |
getView()
Returns the IlvManagerView view that controls the |
boolean |
isShowingAltitudes()
Returns whether altitudes should be displayed or not. |
boolean |
isVertical()
Returns the orientation of the display. |
void |
setHtmlTableProperties(String htmlTableProperties)
The coordinates are displayed in the label using an HTML TABLE tag. |
void |
setShowingAltitudes(boolean showingAltitudes)
Indicates whether altitudes should be displayed or not. |
void |
setVertical(boolean vertical)
Sets the orientation of the display. |
void |
setView(IlvManagerView view)
Sets the view for which coordinates are to be displayed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvJMouseCoordinateViewer()
IlvManagerView view.
setView(ilog.views.IlvManagerView)| Method Detail |
|---|
public boolean isShowingAltitudes()
public void setShowingAltitudes(boolean showingAltitudes)
showingAltitudes - Indicates whether altitudes should be displayed or not.public void setView(IlvManagerView view)
view - the view to set.public IlvManagerView getView()
IlvManagerView view that controls the
IlvManagerView view that controls the
coordinate viewer.public void setVertical(boolean vertical)
vertical - If set to true the northing value is displayed
under the easting value. If set to false, the
northing value is displayed to the right of the easting value.public boolean isVertical()
setVertical(boolean)
public String getCoordinateText(int x,
int y)
x - Mouse x coordinate on the attached view.y - Mouse y coordinate on the attached view.
public String getHtmlTableProperties()
public void setHtmlTableProperties(String htmlTableProperties)
setHtmlTableProperties("border=1 cellpadding=2 cellspacing=2");
htmlTableProperties - The html table Properties String.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||