Method Summary |
|
public IAbstractContext | copy() Makes a deep copy of this object, if necessary.
This is an alternative to clone since I hate clone, it is too hard to implement.
a new copy of this object. |
ReferencedEnvelope | getBoundingBox(Point screenLocation, int scalefactor) Returns a world bounding box the scalefactor * (size of a pixel) at the location
corresponding to the point on the screen. |
CoordinateReferenceSystem | getCRS() CoordinateReferenceSystem of the map. |
IEditManager | getEditManager() The map's edit manager. |
FeatureCollection | getFeaturesInBbox(ILayer layer, Envelope bbox) Returns all the features that intersect with the bounding box.
Parameters: source - The featuresource to get features from. Parameters: bbox - The bounding box that acts as a filter. |
IMap | getMap() The context's map. |
IMapDisplay | getMapDisplay() The map's display object. |
List<ILayer> | getMapLayers() Returns the list of layers in the current map. |
Envelope | getPixelBoundingBox(Point screenLocation) Returns a world bounding box the size of a pixel at the location corresponding to the point
on the screen. |
Coordinate | getPixelSize() Returns the size of a pixel in world units. |
IProject | getProject() The map's containing Project. |
IRenderManager | getRenderManager() The map's render manager
Convenience for getMap().getRenderManager(). |
public ILayer | getSelectedLayer() |
IViewportModel | getViewportModel() The map's viewport model. |
Coordinate | pixelToWorld(int x, int y) Converts a coordinate expressed on the device space back to real world coordinates A
convenience method. |
Shape | toShape(ReferencedEnvelope envelope) Transform the provided envelope to a java 2d shape (in screen coordiantes). |
Shape | toShape(Geometry geometry, CoordinateReferenceSystem crs) Transform the provided geometry to a java 2d shape (in screen coordiantes). |
Point | tranformCoordinate(Envelope bbox, Dimension displaySize, Coordinate coordinate) Transforms the coordinate from the bounding box (bbox) to the area defined by the rectangle it starts at 0,0. |
public ReferencedEnvelope | worldBounds(Rectangle rectangle) Creates an Envelope that is close, error to slightly larger, to the Rectangle when it is
transformed into world coordinates. |
Point | worldToPixel(Coordinate coord) Returns the pixel on the screen for a given coordinate in world space. |
public MathTransform2D | worldToScreenMathTransform() Creates a MathTransform that will transform from the screen CRS to the world CRS. |
AffineTransform | worldToScreenTransform() Gets up the affine transform that will transform from the world to screen. |