|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.omGraphics.geom.BasicGeometry | +--com.bbn.openmap.omGraphics.OMGraphic | +--com.bbn.openmap.layer.location.Location | +--com.bbn.openmap.layer.location.URLRasterLocation
A Location that takes an URL for an image and creates a Raster for a Location marker. The URL should be the contents of an image file (gif, jpeg) that an ImageIcon object can use to create an Image object. The string for an icon can be a path to a resource, file or URL, and the URLRasterLocation will convert it to a URL.
Field Summary | |
int |
SPACING
The spacing between the label and the outside of the image. |
Fields inherited from class com.bbn.openmap.layer.location.Location |
allowDecluttering, currentFontDescent, DECLUTTER_ANYWHERE, DECLUTTER_LOCALLY, declutterLimit, DEFAULT_SPACING, details, handler, horizontalLabelBuffer, label, lat, location, lon, name, origXLabelOffset, origYLabelOffset, showLocation, showName, x, xOffset, y, yOffset |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphic |
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
URLRasterLocation(float latitude,
float longitude,
int xOffset,
int yOffset,
java.lang.String name,
java.lang.String iconURL)
Create a ByteRasterLocation at a screen x/y location. |
|
URLRasterLocation(float latitude,
float longitude,
int xOffset,
int yOffset,
java.lang.String name,
java.net.URL iconURL)
Create a ByteRasterLocation at a screen x/y location. |
|
URLRasterLocation(float latitude,
float longitude,
java.lang.String name,
java.lang.String iconURL)
Create a ByteRasterLocation at a latitude/longtude location. |
|
URLRasterLocation(float latitude,
float longitude,
java.lang.String name,
java.net.URL iconURL)
Create a ByteRasterLocation at a latitude/longtude location. |
|
URLRasterLocation(int x,
int y,
java.lang.String name,
java.lang.String iconURL)
Create a ByteRasterLocation at a screen x/y location. |
|
URLRasterLocation(int x,
int y,
java.lang.String name,
java.net.URL iconURL)
Create a ByteRasterLocation at a screen x/y location. |
Method Summary | |
static OMRaster |
getIconRaster(float lat,
float lon,
int x,
int y,
java.lang.String iconURL)
Create an OMRaster at a latitude/longitude, from a image URL. |
static OMRaster |
getIconRaster(float lat,
float lon,
int x,
int y,
java.net.URL iconURL)
Create an OMRaster at a latitude/longitude, from a image URL. |
static OMRaster |
getIconRaster(float lat,
float lon,
java.lang.String iconURL)
Create an OMRaster at a latitude/longitude, from a image URL. |
static OMRaster |
getIconRaster(float lat,
float lon,
java.net.URL iconURL)
Create an OMRaster at a latitude/longitude, from a image URL. |
static OMRaster |
getIconRaster(int x,
int y,
java.lang.String iconURL)
Create an OMRaster at a latitude/longitude, from a image URL. |
static OMRaster |
getIconRaster(int x,
int y,
java.net.URL iconURL)
Create an OMRaster at a latitude/longitude, from a image URL. |
static java.net.URL |
getIconRasterURL(java.lang.String iconURL)
Create an ImageIcon from a String to an image URL. |
void |
setGraphicLocations(float latitude,
float longitude)
Given a new latitude/longitude, reposition the graphic and label. |
void |
setGraphicLocations(float latitude,
float longitude,
int offsetX,
int offsetY)
Given a new latitude/longitude with x/y offset points, reposition the graphic and label. |
void |
setGraphicLocations(int x,
int y)
Given a new x/y screen location, reposition the graphic and label. |
Methods inherited from class com.bbn.openmap.layer.location.Location |
convertCoordinateString, declutterLabel, distance, generate, generate, getDeclutterLimit, getDetails, getHorizontalLabelBuffer, getLabel, getLocationHandler, getLocationMarker, getName, isAllowDecluttering, isShowLocation, isShowName, main, render, renderLocation, renderName, setAllowDecluttering, setDeclutterLimit, setDetails, setHorizontalLabelBuffer, setLabel, setLocation, setLocation, setLocation, setLocation, setLocationHandler, setLocationMarker, setLocationPaint, setName, setShowLocation, setShowName, showDetails |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
clearAttributes, contains, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible |
Field Detail |
public int SPACING
Constructor Detail |
public URLRasterLocation(float latitude, float longitude, java.lang.String name, java.lang.String iconURL)
latitude
- latitide in decimal degreeslongitude
- longitude in decimal degrees.name
- the label for the location.iconURL
- a string to a URL for an imagepublic URLRasterLocation(float latitude, float longitude, java.lang.String name, java.net.URL iconURL)
latitude
- latitide in decimal degreeslongitude
- longitude in decimal degrees.name
- the label for the location.iconURL
- a URL for an imagepublic URLRasterLocation(int x, int y, java.lang.String name, java.lang.String iconURL)
x
- horizontal pixel screen location from the the left
side of the map.y
- vertical pixel screen location, from the top of the
map.name
- the label for the location.iconURL
- a String for a URL for an imagepublic URLRasterLocation(int x, int y, java.lang.String name, java.net.URL iconURL)
x
- horizontal pixel screen location from the the left
side of the map.y
- vertical pixel screen location, from the top of the
map.name
- the label for the location.iconURL
- a URL for an imagepublic URLRasterLocation(float latitude, float longitude, int xOffset, int yOffset, java.lang.String name, java.lang.String iconURL)
latitude
- latitide in decimal degreeslongitude
- longitude in decimal degrees.xOffset
- horizontal pixel screen location from the
longitude map point.yOffset
- vertical pixel screen location, from the
latitide map point.name
- the label for the location.iconURL
- a String for a URL for an imagepublic URLRasterLocation(float latitude, float longitude, int xOffset, int yOffset, java.lang.String name, java.net.URL iconURL)
latitude
- latitide in decimal degreeslongitude
- longitude in decimal degrees.xOffset
- horizontal pixel screen location from the
longitude map point.yOffset
- vertical pixel screen location, from the
latitide map point.name
- the label for the location.iconURL
- a URL for an imageMethod Detail |
public static OMRaster getIconRaster(float lat, float lon, java.lang.String iconURL)
lat
- latitide in decimal degreeslon
- longitude in decimal degrees.iconURL
- a URL for an imagepublic static OMRaster getIconRaster(float lat, float lon, java.net.URL iconURL)
lat
- latitide in decimal degreeslon
- longitude in decimal degrees.iconURL
- a URL for an imagepublic static OMRaster getIconRaster(int x, int y, java.lang.String iconURL)
x
- horizontal pixel screen location from the the left
side of the map.y
- vertical pixel screen location, from the top of the
map.iconURL
- a String for a URL for an imagepublic static OMRaster getIconRaster(int x, int y, java.net.URL iconURL)
x
- horizontal pixel screen location from the the left
side of the map.y
- vertical pixel screen location, from the top of the
map.iconURL
- a URL for an imagepublic static OMRaster getIconRaster(float lat, float lon, int x, int y, java.lang.String iconURL)
lat
- latitide in decimal degreeslon
- longitude in decimal degrees.x
- horizontal pixel screen location from the longitude
map point.y
- vertical pixel screen location, from the latitide map
point.iconURL
- a String for URL for an imagepublic static OMRaster getIconRaster(float lat, float lon, int x, int y, java.net.URL iconURL)
lat
- latitide in decimal degreeslon
- longitude in decimal degrees.x
- horizontal pixel screen location from the longitude
map point.y
- vertical pixel screen location, from the latitide map
point.iconURL
- a URL for an imagepublic static java.net.URL getIconRasterURL(java.lang.String iconURL)
iconURL
- can be a path to a resource, file or URL.public void setGraphicLocations(float latitude, float longitude)
setGraphicLocations
in class Location
public void setGraphicLocations(int x, int y)
setGraphicLocations
in class Location
public void setGraphicLocations(float latitude, float longitude, int offsetX, int offsetY)
setGraphicLocations
in class Location
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |