|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.plugin.AbstractPlugIn
com.bbn.openmap.plugin.WebImagePlugIn
public abstract class WebImagePlugIn
This class asks for an image from a web server. How it asks for that image is what is abstract.
Field Summary | |
---|---|
protected Projection |
currentProjection
The last projection object received. |
protected PlugInLayer |
layer
For convenience. |
static java.util.logging.Logger |
logger
|
protected javax.swing.JOptionPane |
messageWindow
|
protected javax.swing.JButton |
redrawButton
|
Fields inherited from class com.bbn.openmap.plugin.AbstractPlugIn |
---|
addToBeanContext, component, mml, name, prefix, removable, RemovableProperty |
Fields inherited from interface com.bbn.openmap.image.ImageServerConstants |
---|
AZIMUTH, LAT, LAYERMASK, LAYERS, LON, PAN, PROJTYPE, QUERY, RECENTER, SCALE, X, Y |
Fields inherited from interface com.bbn.openmap.image.WMTConstants |
---|
BBOX, BGCOLOR, CAPABILITIES, CRS, EXCEPTIONS, FORMAT, GETCAPABILITIES, GETFEATUREINFO, GETLEGENDGRAPHIC, GETMAP, HEIGHT, IMAGEFORMAT_GEOTIFF, IMAGEFORMAT_GIF, IMAGEFORMAT_JPEG, IMAGEFORMAT_PNG, IMAGEFORMAT_PPM, IMAGEFORMAT_SVG, IMAGEFORMAT_TIFF, IMAGEFORMAT_WBMP, INFO_FORMAT, LAYER, MAP, QUERY_LAYERS, REQUEST, SERVICE, SRS, STYLE, STYLES, TRANSPARENT, VERSION, WIDTH, WMTVER |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
WebImagePlugIn()
|
Method Summary | |
---|---|
abstract java.lang.String |
createQueryString(Projection p)
Create the query to be sent to the server, based on current settings. |
protected void |
fetchImageAndAddToList(Projection p,
OMGraphicList list)
Image fetching code, where the query is created based on the provided projection. |
java.awt.Component |
getGUI()
Gives the PlugIn a chance to present components that control its attributes. |
OMGraphicList |
getRectangle(Projection p)
The getRectangle call is the main call into the PlugIn module. |
abstract java.lang.String |
getServerName()
|
protected void |
handleMessage(java.lang.String message)
|
void |
setComponent(java.awt.Component comp)
Set the component that this PlugIn uses as a grip to the map. |
Methods inherited from class com.bbn.openmap.plugin.AbstractPlugIn |
---|
dispose, doPrepare, getAddToBeanContext, getComponent, getMapMouseListener, getMouseModeServiceList, getName, getProperties, getPropertyInfo, getPropertyPrefix, isRemovable, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased, removed, repaint, setAddToBeanContext, setMapMouseListener, setName, setProperties, setProperties, setPropertyPrefix, setRemovable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PlugInLayer layer
protected Projection currentProjection
public static java.util.logging.Logger logger
protected javax.swing.JButton redrawButton
protected javax.swing.JOptionPane messageWindow
Constructor Detail |
---|
public WebImagePlugIn()
Method Detail |
---|
public abstract java.lang.String createQueryString(Projection p)
public OMGraphicList getRectangle(Projection p)
getRectangle
in interface PlugIn
getRectangle
in class AbstractPlugIn
p
- projection of the screen, holding scale, center coords, height,
width.
Projection
,
OMGraphicList
protected void fetchImageAndAddToList(Projection p, OMGraphicList list)
p
- projection that image needs to coverlist
- the OMGraphicList that any new image OMGraphics need to be
added to for the mapprotected void handleMessage(java.lang.String message)
public abstract java.lang.String getServerName()
public java.awt.Component getGUI()
PlugIn
getGUI
in interface PlugIn
getGUI
in class AbstractPlugIn
public void setComponent(java.awt.Component comp)
setComponent
in interface PlugIn
setComponent
in class AbstractPlugIn
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |