|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.ShapeGISMap.Layer
public static class ShapeGISMap.Layer
Class which stores GIS map layer information
| Constructor Summary | |
|---|---|
ShapeGISMap.Layer(java.lang.String shapeFileName,
java.lang.String dbfFileName,
java.awt.Color lineColor,
java.awt.Color fillColor,
int objectNameColumnIndex)
Creates new Layer descriptor |
|
| Method Summary | |
|---|---|
com.bbn.openmap.layer.shape.areas.PoliticalArea |
findPoliticalArea(double longitude,
double latitude)
Returns (if there are several objects at the same point, returns one of them) |
com.bbn.openmap.layer.shape.areas.PoliticalArea |
findPoliticalArea(java.lang.String identifier)
Finds political area by its string identifier |
com.bbn.openmap.layer.shape.areas.PoliticalArea[] |
findPoliticalAreas(double longitude,
double latitude)
Returns PoliticalArea objects of this layer located at the
given coordinates |
com.bbn.openmap.layer.shape.areas.AreaShapeLayer |
getLayerObject()
Returns OpenMap layer object associated with this Layer |
com.bbn.openmap.omGraphics.OMGraphicList |
getObjects(double longitude,
double latitude)
Returns new OMGraphicsList with objects of this layer located at the given coordinates |
com.bbn.openmap.omGraphics.OMGraphicList |
getObjects(java.lang.String objectName)
Returns new OMGraphicsList with objects of this layer having name objectName |
java.util.Collection<com.bbn.openmap.layer.shape.areas.PoliticalArea> |
getPoliticalAreas()
Returns the collection of all political areas located in this layer Political areas are usually defined in DBF file Each PoliticalArea has its identifier and human-readable name
and may contain several shapes on the map (e.g. islands)PoliticalArea has methods for tuning its presentation on the
map, e.g. changing fill color. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeGISMap.Layer(java.lang.String shapeFileName,
java.lang.String dbfFileName,
java.awt.Color lineColor,
java.awt.Color fillColor,
int objectNameColumnIndex)
shapeFileName - GIS Map Shape file name (.shp) with shapes of the layerdbfFileName - DBF file name with descriptions of GIS Map Shape file
objectslineColor - default line color for objects in this layerfillColor - default fill color for objects in this layerobjectNameColumnIndex - the index of the object-name column in .dbf file| Method Detail |
|---|
public java.util.Collection<com.bbn.openmap.layer.shape.areas.PoliticalArea> getPoliticalAreas()
PoliticalArea has its identifier and human-readable name
and may contain several shapes on the map (e.g. islands)PoliticalArea has methods for tuning its presentation on the
map, e.g. changing fill color.
public com.bbn.openmap.layer.shape.areas.PoliticalArea findPoliticalArea(java.lang.String identifier)
identifier - the identifier of political area
null
public com.bbn.openmap.layer.shape.areas.PoliticalArea[] findPoliticalAreas(double longitude,
double latitude)
PoliticalArea objects of this layer located at the
given coordinates
longitude - the longitude of point, measured in degrees (-180 ...
(West) ... 0 ... (East) ... +180)latitude - the latitude of point, measured in degrees (-90 ...
(South) ... 0 ... (North) ... +90)
PoliticalArea objects of this layer
located at the given coordinates (empty array if no political
areas were found)
public com.bbn.openmap.layer.shape.areas.PoliticalArea findPoliticalArea(double longitude,
double latitude)
longitude - the longitude of point, measured in degrees (-180 ...
(West) ... 0 ... (East) ... +180)latitude - the latitude of point, measured in degrees (-90 ...
(South) ... 0 ... (North) ... +90)
PoliticalArea object of this layer located at the
given coordinates (null if no political areas
were found)
public com.bbn.openmap.omGraphics.OMGraphicList getObjects(double longitude,
double latitude)
longitude - the longitude of point, measured in degrees (-180 ...
(West) ... 0 ... (East) ... +180)latitude - the latitude of point, measured in degrees (-90 ...
(South) ... 0 ... (North) ... +90)
public com.bbn.openmap.omGraphics.OMGraphicList getObjects(java.lang.String objectName)
objectName
objectName - the name of objects to be returned
objectNamepublic com.bbn.openmap.layer.shape.areas.AreaShapeLayer getLayerObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||