public class InfoDisplayEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
information
The requester may send information along with the event if the
event represents an information display request from the layer,
this variable contains the information needed to process the
event.
|
protected int |
preferredLocation
A preferred location index for which info line, if there is
more than one, should display the requested information.
|
Constructor and Description |
---|
InfoDisplayEvent(java.lang.Object source)
Construct an InfoDisplayEvent.
|
InfoDisplayEvent(java.lang.Object source,
java.lang.String info)
Construct an InfoDisplayEvent.
|
InfoDisplayEvent(java.lang.Object source,
java.lang.String info,
int loc)
Construct an InfoDisplayEvent.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInformation()
Get the information.
|
Layer |
getLayer()
Get the associated Layer or null.
|
int |
getPreferredLocation()
Get the preferred location index where the information should
be displayed.
|
void |
setInformation(java.lang.String info)
Set the information.
|
void |
setPreferredLocation(int pl)
Set the preferred location index where the information should
be displayed.
|
protected java.lang.String information
protected int preferredLocation
public InfoDisplayEvent(java.lang.Object source)
source
- Objectpublic InfoDisplayEvent(java.lang.Object source, java.lang.String info)
source
- Objectinfo
- String informationpublic InfoDisplayEvent(java.lang.Object source, java.lang.String info, int loc)
source
- Objectinfo
- String informationloc
- the location index for which info line should
display the information.public Layer getLayer()
public java.lang.String getInformation()
public void setInformation(java.lang.String info)
info
- Stringpublic int getPreferredLocation()
public void setPreferredLocation(int pl)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details