|
||||||||||
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.OMGraphicAdapter com.bbn.openmap.layer.location.Location com.bbn.openmap.layer.location.BasicLocation
public class BasicLocation
A BasicLocation the standard Location - dot for the marker, text to the right of the dot. Other graphics can be substituted for the dot, but you should modify the setGraphicLocations methods accordingly.
Field Summary |
---|
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, logger, lon, name, origXLabelOffset, origYLabelOffset, showLocation, showName, x, xOffset, y, yOffset |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphicAdapter |
---|
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
attributes, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
---|---|
BasicLocation()
A plain constructor if you are planning on setting everything yourself. |
|
BasicLocation(double latitude,
double longitude,
int xOffset,
int yOffset,
java.lang.String name,
OMGraphic locationMarker)
Create a location at a pixel offset from a latitude/longitude. |
|
BasicLocation(double latitude,
double longitude,
java.lang.String name,
OMGraphic locationMarker)
Create a location at a latitude/longitude. |
|
BasicLocation(int x,
int y,
java.lang.String name,
OMGraphic locationMarker)
Create a location at a map location. |
Method Summary | |
---|---|
void |
setGraphicLocations(double latitude,
double longitude)
Called by setLocations(). |
void |
setGraphicLocations(double latitude,
double longitude,
int offsetX,
int offsetY)
Called by setLocations(). |
void |
setGraphicLocations(int x,
int y)
Called by setLocations(). |
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, shouldRenderLocation, shouldRenderName, showDetails |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, 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, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
Constructor Detail |
---|
public BasicLocation()
public BasicLocation(double latitude, double longitude, java.lang.String name, OMGraphic locationMarker)
latitude
- the latitude, in decimal degrees, of the location.longitude
- the longitude, in decimal degrees, of the location.name
- the name of the location, also used in the label.locationMarker
- the OMGraphic to use for the location mark.public BasicLocation(int x, int y, java.lang.String name, OMGraphic locationMarker)
x
- the pixel location of the object from the let of the map.y
- the pixel location of the object from the top of the mapname
- the name of the location, also used in the label.locationMarker
- the OMGraphic to use for the location mark.public BasicLocation(double latitude, double longitude, int xOffset, int yOffset, java.lang.String name, OMGraphic locationMarker)
latitude
- the latitude, in decimal degrees, of the location.longitude
- the longitude, in decimal degrees, of the location.xOffset
- the pixel location of the object from the longitude.yOffset
- the pixel location of the object from the latitude.name
- the name of the location, also used in the label.locationMarker
- the OMGraphic to use for the location mark.Method Detail |
---|
public void setGraphicLocations(double latitude, double longitude)
setGraphicLocations
in class Location
public void setGraphicLocations(int x, int y)
setGraphicLocations
in class Location
public void setGraphicLocations(double latitude, double 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 |